I am just getting started using graylog, and am honing my logging.
I have a large dump from an external tool im using in my data pipeline that 
I want so send as a Debug-level single log item.
I'm interfacing with graylog with nc, piping a formatted string, of GELF 
format, to it (ip address obfuscated below, of course):

echo "{\"version\": 
\"$GRAYLOG_VERSION\",\"host\":\"$APP_HOST\",\"short_message\":\"$SHORT_MESSAGE\",\"full_message\":\"$j\",\"level\":$LOG_LEVEL,\"log_type\":\"$LOG_TYPE\"}"
 
| nc -w 3 -u 00.00.00.00 12201


I see in the docs there is a direction, and further info about a structure 
to prepend, but I'm not clear WHERE this should go, like directly before 
the { or what, any separators?  An example would be really helpful:

You can define chunks of messages by prepending a byte header to a GELF 
message including a message ID and sequence count/number to reassemble the 
message later


-- 
You received this message because you are subscribed to the Google Groups 
"Graylog Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/graylog2/9e6a983b-089b-4e31-abd3-13a77add9d52%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to