logstash-plugins / logstash-patterns-core

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

logstash pattern for logstash log file?

mnikhil-git opened this issue · comments

Hi,

Is there a pattern file available for the logstash itself? I am htinking of reading logstash logfiles via logstash and was hoping if there is an already available pattern for grok that could help.

In Logstash 5.0 there is an option to emit logs in a nicely structured JSON format. I recommend you use that and then ingest this log with whatever tooling (logstash, etc) to parse it as JSON.

Given Logstash 5 has json logging as an option, I'm content not to have any grok patterns for the format. If you want to have a machine read Logstash's logs, JSON format is the way to go.