# Parse Java logs

**URL:** <https://discuss.elastic.co/t/parse-java-logs/82469>\
**Category:** Logstash\
**Created:** [April 15, 2017, 11:32am UTC](https://discuss.elastic.co/t/parse-java-logs/82469 "2017-04-15T11:32:54Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ItsMeSurajR](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/itsmesurajr/32/17395_2.png) [@ItsMeSurajR](https://discuss.elastic.co/u/ItsMeSurajR)\
**Post date:** [April 15, 2017, 11:32am UTC](https://discuss.elastic.co/t/parse-java-logs/82469/1 "2017-04-15T11:32:54Z")

</div>

Hello all,

I'm new to this framework. I'm trying to parse java log files (which is not in JSON) lookin for errors in the build. Trying to add statistics for the kind of failure over time. Is this possible to achieve?

Please advice ☹

```
[04-08 16:57:35] Server supplied invocation method name: dequeued, invocation parameters: 
[04-09 03:29:54] Test case assertion error
org.junit.ComparisonFailure: at org.junit.Assert.assertEquals(Assert.java:115)
```

---

<div class="post-metadata">

**Author:** ![eperry](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/eperry/32/551_2.png) [@eperry](https://discuss.elastic.co/u/eperry)\
**Post date:** [April 15, 2017, 1:00pm UTC](https://discuss.elastic.co/t/parse-java-logs/82469/2 "2017-04-15T13:00:48Z")

</div>

json is not a requirement for parsing logs,

What you have in your logstash config already? What have you tried so far?

You probably want to be writing grok regex's which you can test write them here  
[https://grokdebug.herokuapp.com/](https://grokdebug.herokuapp.com/)

---

<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:** [May 13, 2017, 1:07pm UTC](https://discuss.elastic.co/t/parse-java-logs/82469/3 "2017-05-13T13:07:18Z")

</div>

Closed on May 13, 2017, 1:07pm UTC

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