Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for FIX protocol #21

Open
jmakov opened this issue Aug 30, 2019 · 0 comments
Open

Add support for FIX protocol #21

jmakov opened this issue Aug 30, 2019 · 0 comments

Comments

@jmakov
Copy link

jmakov commented Aug 30, 2019

ngrep currently doesn't search FIX msgs one by one but TCP packet by packet (one TCP packet can contain multiple FIX msgs). The resulting pcap file thus contains not only the filtered FIX msg, but also all the msgs that were in that TCP packet.

Example (filtering by FIX MsgType (e.g. we want only ticks msges (35=W)):

$ ngrep -I network_traffic_from_multiple_FIX_connections_dump.pcap -o only_ticks.pcap -q "35=W" > /dev/null

only_ticks.pcap will contain also quotes messages (35=X). Note that in FIX protocol the MsgType field (in the protocol serialized as "35=[char]") is unique per FIX msg i.e. there is only one instance per FIX msg. So expected result of the ngrep command above would be a pcap file containing only FIX messages with "35=X".

$ ngrep -V
ngrep: V1.47.1-git, libpcap version 1.8.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant