i have a log file that contains INFO,WARN and ERROR like :
[17:37:17.103] [ERROR] [...] [.....]
these are log4j logs.
Using filebeat, I want to filter out only those logs with log level ERROR and send them to logstash, can anybody tell me how to do this?
Thank you for any help.
But isn't that solution for logs that start with the word ERROR INFO or DEBUG? What do I do if there is a timestamp in the beginning?
It's a regex what you can use there. You can pretty much do everything with it (including working around the timestamp)
This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.