It is possible to use if statement in filebeat?

Hi,
i want to collect 2 different files with filebeat , only in first one use "Multiline options".
Can i use if for this situation ?
thanks

You can use a different input for each file:

filebeat.inputs:
 - type: log
   paths: 
      - fileA
   multiline.pattern: xxx

 - type: log
   paths:
      - fileB 

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.