Skip to content

Instantly share code, notes, and snippets.

@chrisxaustin
Last active October 5, 2023 14:35
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save chrisxaustin/007bdb500702c1bb44524261776743eb to your computer and use it in GitHub Desktop.
Save chrisxaustin/007bdb500702c1bb44524261776743eb to your computer and use it in GitHub Desktop.
tshark - extract src and syslog message
# To read foo.pcap
tshark -ln -r foo.pcap -q -d udp.port==514,syslog -T fields -E separator=" " -e ip.src -e syslog.msg
# To listen on eth0
tshark -ln - eth0 -q -d udp.port==514,syslog -T fields -E separator=" " -e ip.src -e syslog.msg
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment