Is it possible for filebeat to pick up only certain log entries?
For ex, if my log entry contains the following:
[2019-07-21:00:00:00] [INFO] [log message]
[2019-07-21:00:00:01] [ERROR] [log message]
Can I tell filebeat to pick up only the "ERROR" event?
Any help is appreciated!
Thanks
Don't know how performand it is but there is a n include_lines option in the configuration of the log input
include_lines
see https://www.elastic.co/guide/en/beats/filebeat/current/filebeat-input-log.html#filebeat-input-log-include-lines
Thanks! I'll try this out.
© 2020. All Rights Reserved - Elasticsearch
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant logo are trademarks of the Apache Software Foundation in the United States and/or other countries.