https://blog.csdn.net/qq_29384639/article/details/107083915
新建测试配置文件
vim test.conf input { stdin {} } filter{ grok{ match => {"message" => "%{IP:ip_address}\ -\ -\ \[%{HTTPDATE:timestamp}\]\ %{QS:referrer}\ %{NUMBER:status}\ %{NUMBER:bytes}"} } date{ match => ["timestamp","dd/MMM/yyyy:HH:mm:ss Z"] } mutate{ remove_field => ["message","@timestamp"] } } output { stdout {} }
filter中grok详细写法教程参阅 https://www.elastic.co/guide/en/logstash/7.7/plugins-filters-grok.html