Hello there!

I am using nxlog for tailing specific files (im_file) and output them via GELF_TCP to Graylog which goes good except 1 thing > short_messages get truncated to 64 chars which, if I understand right, is related to this directive (or I might be wrong):

ShortMessageLength >This optional directive can be used to specify the length of the short_message field. This defaults to 64 if the directive is not explicitly specified. If the field short_message or ShortMessage is present, it will not be truncated.

The question might be fairly simple (to someone who knows): how to use this directive? could someone please write an example how to use it so short_messages do not get truncated?

Many thanks in advance!

P.S. Same problem here > https://groups.google.com/forum/#!topic/graylog2/wUQIaFdUlZs

AskedAugust 24, 2015 - 7:02pm

Answer (1)

The ShortMessageLength directive should be used as follows:

<Extension gelf>
    Module      xm_gelf
    ShortMessageLength 42


AnsweredAugust 25, 2015 - 10:18am

Comments (1)