Jeff -
I'm having a hard time understanding this myself. Instead of chunking you
could try to gzip it. Graylog should decode a gzip'd string automatically.
I think it would be something like:
echo <your gelf> | gzip -cf | nc .... etc...
On Thursday, September 17, 2015 at 10:27:11 AM UTC-4, Jeffrey Newell wrote:
>
> 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/8b66648b-6dcd-4ca0-b161-21c7ea19261a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.