Skip to content

Instantly share code, notes, and snippets.

@chrisxaustin
Last active October 9, 2024 23:05
Show Gist options
  • 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 -i eth0 -q -d udp.port==514,syslog -T fields -E separator=" " -e ip.src -e syslog.msg
@nhed
Copy link

nhed commented Oct 9, 2024

thanks!

@chrisxaustin
Copy link
Author

Fixed!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment