1
response

Hello all,

I'm using the im_file module to send log files to my logging server (graylog).  I'd like it to always skip the firts few lines of newly opened files.  Is this possible?  I couldn't find anything in the documentation.

AskedSeptember 25, 2017 - 2:31pm

Answer (1)

If there is a header you could skip those lines with a regular expression and `drop()`.

The NXLog EE beta has a function called record_number() that could be used as well to skip the first few lines.