[graylog2] Re: Searching for fields inside JSON field

2016-07-29 Thread Jochen Schalanda
Hi Alexandre, many Java logging frameworks support setting variables (e. g. for the MDC/ThreadContext) via OS environment variables. This way you could include the container ID, image ID and other interesting information in your log entries: -

[graylog2] Re: Searching for fields inside JSON field

2016-07-28 Thread Alexandre Verri
Hi Jochen, your suggestion is the best alternative to have all GELF fields ready without any parsing/transformation on the server side. The downside is that it is cumbersome to get the Docker container name using the appender. Using the Docker GELF driver, it includes the container name

[graylog2] Re: Searching for fields inside JSON field

2016-07-28 Thread Jochen Schalanda
Hi Alexandre, you could use the JSON extractor in Graylog to expand the content of the message field into the Graylog message. But I would recommend using a proper GELF appender for your logging framework in the