Skip to content

Instantly share code, notes, and snippets.

@luizrobertofreitas
Last active October 24, 2017 01:20
Show Gist options
  • Save luizrobertofreitas/c758684e3439f96607c5e0496e32cde0 to your computer and use it in GitHub Desktop.
Save luizrobertofreitas/c758684e3439f96607c5e0496e32cde0 to your computer and use it in GitHub Desktop.
Graylog linux shell command
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