Hi Everyone,
I would like to report the amount of TCP-resets per second on the host.
The command I would like to use is
sudo tcpdump -i eth0 -n -vv 'tcp[tcpflags] & (tcp-rst) != 0' | pv --line-mode --rate >/dev/null
Which outputs the monut of RST per second.
I found this command to be useful to set messages into graylog via netcat
echo -e '{"version": "1.1","host":"example.org","short_message":"Short message","full_message":"Backtrace here\n\nmore stuff","level":1,"_user_id":9001,"_some_info":"foo","_some_env_var":"bar"}\0' | nc -w 1 my.graylog.server 12201
but I struggle to build a pipe to compine it with the data source from a stream.
Can anyone assist?
Thanks a alot!!!