Filebeat excluding lines

Hello,

what would be correct setting for "exclude_lines". I would like to exclude every line that begins with "#". Currently I'm using "exclude_lines: ["^#"]". Is this ok?

Thank you and kind regards,

Uros

This looks ok. Not sure if # is a special char and perhaps '..' should be used. Did you try it out and it didn't work?

Hello,

yeah, it is working. At least it looks like it. :slight_smile: I just wanted a second opinion...

Thanks and kind regards,

Uros

This topic was automatically closed after 21 days. New replies are no longer allowed.