Cant parse rails logs


(Jon Arthur Louize Garcia) #1

I, [2018-05-03 02:02:06#1433] INFO -- : {"method":"GET","path":"/api/v2/product_categories/main","format":"json","controller":"Api::V2::ProductCategoriesController","action":"main","status":401,"duration":4.07,"view":0.09,"db":1.2,"params":{},"time":"2018-05-03 02:02:06 +0000","exception":null,"exception_object":null}

this is my filter setup:
filter {
grok {
match => { "message" =>"[DFEWI], [%{TIMESTAMP_ISO8601:timestamp} #%{POSINT:pid}] *%{RUBY_LOGLEVEL:loglevel} -- +%{DATA:progname}: %{GREEDYDATA:message}" }
}
}

And every time i run the logstash, it returns this error
"path" => "/home/fsg-tech/Documents/Kibana/jolo.log",
"@version" => "1",
"message" => "I, [2018-05-03 02:02:06#1433] INFO -- : {"method":"GET","path":"/api/v2/product_categories/main","format":"json","controller":"Api::V2::ProductCategoriesController","action":"main","status":401,"duration":4.07,"view":0.09,"db":1.2,"params":{},"time":"2018-05-03 02:02:06 +0000","exception":null,"exception_object":null}",
"tags" => [
[0] "_grokparsefailure"

Thanks for the help in advance


(system) #2

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.