graylog message tester
Taegu Kang
1 min read
- outline
tcp and udp message tester for graylog
- requirement (linux NC)
yum install -y nc
- tcp
for i in `seq 20`; do echo -n '{ "version": "1.1", "host": "example.org", "short_message": "A short message", "level": 5, "_some_info": "foo" }' | nc -w0.1 <graylog-input.example.com> 12201; done
- udp
for i in `seq 20`; do echo -n '{ "version": "1.1", "host": "example.org", "short_message": "A short message", "level": 5, "_some_info": "foo" }' | nc -w0.1 -u <graylog-input.example.com> 12201; done
1
Subscribe to my newsletter
Read articles from Taegu Kang directly inside your inbox. Subscribe to the newsletter, and don't miss out.
Written by