Skip to content

Instantly share code, notes, and snippets.

View asomov's full-sized avatar

Andrey Somov asomov

  • UAE
  • 01:43 (UTC -12:00)
View GitHub Profile
@asomov
asomov / gelfsender.sh
Created December 12, 2016 13:48 — forked from gm3dmo/gelfsender.sh
Send a log message to a gelf server using the shell.
# This script can be used to raise a graylog2/gelf message
# gzip it and send it to a graylog server using netcat (nc)
hostname='gelftester'
short_message='test message short version'
full_message='longer test message. dont\n worry be happy'
level=1
facility='gelftester'
# gnu date
date=$(date +'%s.%N')