Filter logs

HI,

Iam using filebeat as logshipper with Elk , example of my logs are shown below how to filter logs so that i need to receive only logs which contains REQUEST XML.

image

Thanks
GR.

You want to use the include_lines directive in filebeat prospector:

filebeat.prospectors:
- paths:
    - /var/log/myapp/*.log
  include_lines: 'Request XML :'

See https://www.elastic.co/guide/en/beats/filebeat/current/configuration-filebeat-options.html#include-lines

Thanks Adrian for your reply.

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