Filebeat running a .bat file

Can i somehow execute a bat file if my filebeat gets a log line which has a string "Error" in it ? Or can i output only those log lines to elasticsearch which has a string "Error"?

Please help me on this one...

Using some thing like below in your filebeat prospector. This will exclude the lines which have Debug and Info and add what ever level like WARN , this should do the trick

  • type: log
    enabled: true
    • /logfilepath
      exclude_lines: ['.?(DEBUG|INFO).']
1 Like

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