# Including only the multilines for the output

**URL:** <https://discuss.elastic.co/t/including-only-the-multilines-for-the-output/117961>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [February 1, 2018, 8:21am UTC](https://discuss.elastic.co/t/including-only-the-multilines-for-the-output/117961 "2018-02-01T08:21:00Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![RishiSingh](https://avatars.discourse-cdn.com/v4/letter/r/f04885/32.png) [@RishiSingh](https://discuss.elastic.co/u/RishiSingh)\
**Post date:** [February 1, 2018, 8:21am UTC](https://discuss.elastic.co/t/including-only-the-multilines-for-the-output/117961/1 "2018-02-01T08:21:00Z")

</div>

Hi,

I am trying to make use of filebeat to only report the exceptions/java stack traces in the log files.  
So my use case is to ignore all other lines thats are not multiline.

11:18:53:252253|3248-00183:PERSISTENCE: HibernateSessionManagerImpl {WARN} Action {commitTransaction} Thread {pool-99-thread-4}  
org.hibernate.exception.ConstraintViolationException: Could not execute JDBC batch update  
at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:96)  
at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:66)  
... 7 more  
11:18:53:550764|0178-00173:WE: WEXEC {INFO} Action {Workflow Done} Workflow {AccountWiseTradeProcessingSubProcess.AccountWiseTradeProcessingWorkFlow.2} Executor {AccountWiseTradeProcessingSubProcess}

I want only the below line that is being sent by filebeat to logstah:  
11:18:53:252253|3248-00183:PERSISTENCE: HibernateSessionManagerImpl {WARN} Action {commitTransaction} Thread {pool-99-thread-4}  
org.hibernate.exception.ConstraintViolationException: Could not execute JDBC batch update  
at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:96)  
at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:66)  
... 7 more

Please help me to specify the include\_lines and multiline\_patern for the problem.

Thanks in Advance.

---

<div class="post-metadata">

**Author:** ![tudor](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tudor/32/3753_2.png) [@tudor](https://discuss.elastic.co/u/tudor)\
**Post date:** [February 1, 2018, 1:17pm UTC](https://discuss.elastic.co/t/including-only-the-multilines-for-the-output/117961/2 "2018-02-01T13:17:39Z")

</div>

Does this help? [https://www.elastic.co/guide/en/beats/filebeat/6.1/\_examples\_of\_multiline\_configuration.html#\_java\_stack\_traces](https://www.elastic.co/guide/en/beats/filebeat/6.1/_examples_of_multiline_configuration.html#_java_stack_traces)

---

<div class="post-metadata">

**Author:** ![RishiSingh](https://avatars.discourse-cdn.com/v4/letter/r/f04885/32.png) [@RishiSingh](https://discuss.elastic.co/u/RishiSingh)\
**Post date:** [February 23, 2018, 2:32am UTC](https://discuss.elastic.co/t/including-only-the-multilines-for-the-output/117961/3 "2018-02-23T02:32:55Z")

</div>

Thanks for referring me to the tutorial

---

<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:** [March 23, 2018, 2:32am UTC](https://discuss.elastic.co/t/including-only-the-multilines-for-the-output/117961/4 "2018-03-23T02:32:57Z")

</div>

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