# How can i push the tomcat logs into elasticsearch it is showing grokparsefailure

**URL:** <https://discuss.elastic.co/t/how-can-i-push-the-tomcat-logs-into-elasticsearch-it-is-showing-grokparsefailure/37764>\
**Category:** Logstash\
**Created:** [December 22, 2015, 2:44pm UTC](https://discuss.elastic.co/t/how-can-i-push-the-tomcat-logs-into-elasticsearch-it-is-showing-grokparsefailure/37764 "2015-12-22T14:44:01Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Akash\_Katakam](https://avatars.discourse-cdn.com/v4/letter/a/e68b1a/32.png) [@Akash\_Katakam](https://discuss.elastic.co/u/Akash_Katakam)\
**Post date:** [December 22, 2015, 2:44pm UTC](https://discuss.elastic.co/t/how-can-i-push-the-tomcat-logs-into-elasticsearch-it-is-showing-grokparsefailure/37764/1 "2015-12-22T14:44:01Z")

</div>

input {  
file {  
path =\> "E:\wo\examples\xxxxxx.log.2015-12-19.log"

```
    start_position => "beginning"
    sincedb_path => "C:\Users\Akash katakam\null"

}

```

}  
filter {  
grok {  
match =\> { "message" =\> "%{TOMCATLOG %{TOMCAT\_DATESTAMP:timestamp} | %{LOGLEVEL:level} | %{JAVACLASS:class} - %{JAVALOGMESSAGE:logmessage}}"}  
}

}

output {  
elasticsearch {

index =\> "splog"  
}  
stdout {}  
}

this is my conf file.

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [December 23, 2015, 1:15am UTC](https://discuss.elastic.co/t/how-can-i-push-the-tomcat-logs-into-elasticsearch-it-is-showing-grokparsefailure/37764/2 "2015-12-23T01:15:21Z")

</div>

That grok pattern does not look valid, where did you get it from?

---

<div class="post-metadata">

**Author:** ![Akash\_Katakam](https://avatars.discourse-cdn.com/v4/letter/a/e68b1a/32.png) [@Akash\_Katakam](https://discuss.elastic.co/u/Akash_Katakam)\
**Post date:** [December 23, 2015, 6:27am UTC](https://discuss.elastic.co/t/how-can-i-push-the-tomcat-logs-into-elasticsearch-it-is-showing-grokparsefailure/37764/4 "2015-12-23T06:27:55Z")

</div>

> **[Logstash Multiline Tomcat and Apache Log Parsing – Michael Lanyon's Blog](https://blog.lanyonm.org/articles/2014/01/12/logstash-multiline-tomcat-log-parsing.html)**
>
> How to Parse Apache and Tomcat Logs using Logstash's Multiline Filter and Kibana for Analysis

I followed this blog post.

---

<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:** [July 6, 2017, 5:17am UTC](https://discuss.elastic.co/t/how-can-i-push-the-tomcat-logs-into-elasticsearch-it-is-showing-grokparsefailure/37764/5 "2017-07-06T05:17:29Z")

</div>


