Logstash, how to use grok patterns coming from event data Logstash, how to use grok patterns coming from event data kubernetes kubernetes

Logstash, how to use grok patterns coming from event data


If you don't wish to use this pattern in other places, why not just use it in the match like this?

grok {  match => { "log" => "%{IP:client} %{WORD:method} %{URIPATHPARAM:request} %{NUMBER:status} %{NUMBER:response_time}" }}

If you want to use it later in other filters, check out this page on pattern creation:
https://www.elastic.co/guide/en/logstash/current/plugins-filters-grok.html#setting_patterns_dir