# Cant parse rails logs

**URL:** https://discuss.elastic.co/t/cant-parse-rails-logs/153095
**Category:** Logstash
**Created:** [October 19, 2018, 3:26am UTC](https://discuss.elastic.co/t/cant-parse-rails-logs/153095 "2018-10-19T03:26:10Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![JonArthur](https://avatars.discourse-cdn.com/v4/letter/j/ea666f/32.png) [@JonArthur](https://discuss.elastic.co/u/JonArthur)
#### Post date: [October 19, 2018, 3:26am UTC](https://discuss.elastic.co/t/cant-parse-rails-logs/153095/1 "2018-10-19T03:26:11Z")

</div>

`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

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)
#### Post date: [November 16, 2018, 3:39am UTC](https://discuss.elastic.co/t/cant-parse-rails-logs/153095/2 "2018-11-16T03:39:38Z")

</div>

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