Last active
October 24, 2017 01:20
-
-
Save luizrobertofreitas/c758684e3439f96607c5e0496e32cde0 to your computer and use it in GitHub Desktop.
Graylog linux shell command
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
echo "Hello Graylog, let's be friends." | nc -w 1 -u 127.0.0.1 9000 | |
echo '{"version": "1.1","host":"example.org","short_message":"A short message that helps you identify what is going on","full_message":"Backtrace here\n\nmore stuff","level":1,"_user_id":9001,"_some_info":"foo","_some_env_var":"bar"}' | gzip | nc -u -w 1 commons-graylog001.azure.zup.com.br 12379 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment