# Filebeat is sending multiple messages to elasticsearch

**URL:** <https://discuss.elastic.co/t/filebeat-is-sending-multiple-messages-to-elasticsearch/206578>\
**Category:** Beats\
**Created:** [November 5, 2019, 9:48am UTC](https://discuss.elastic.co/t/filebeat-is-sending-multiple-messages-to-elasticsearch/206578 "2019-11-05T09:48:58Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![manish97](https://avatars.discourse-cdn.com/v4/letter/m/3e96dc/32.png) [@manish97](https://discuss.elastic.co/u/manish97)\
**Post date:** [November 5, 2019, 9:48am UTC](https://discuss.elastic.co/t/filebeat-is-sending-multiple-messages-to-elasticsearch/206578/1 "2019-11-05T09:48:58Z")

</div>

I wrote a multiline pattern to read multiple lines of a log .Now when i start the filebeat I see the same line twice on my kibana dashboard.

filebeat multiline pattern

multiline.pattern: '^[[:space:]]Event:[[:space:]][[:alpha:]]+[[:space:]][[:alpha:]|.]+[[:space:]][[:alnum:]|-]+[[:space:]][[:alnum:]|:|.]+[[:space:]]([[:alnum:]|-]_/[0-9|.]_)\n'  
multiline.negate: false  
multiline.match: after

my log-  
Event: ERROR com.manish.trans.logistics.lms.framework.exception.ABCException 2019-10-24 18:45:08.273 (In-Manish-1/129.221.10.40)  
Thread: JBossWeb-threads - 16  
LOG ID VALUE : 5021 from null

my logstasg grock pattern  
grok {  
match =\>  
{  
"message" =\> "%{SPACE}%{WORD:Event}:%{SPACE}%{WORD:loglevel} %{JAVACLASS:ExceptionClass}%{SPACE}%{TIMESTAMP\_ISO8601:timestamp}%{SPACE}%{GREEDYDATA:message}"  
#"message" =\> "%{SPACE}%{WORD:Event}:%{SPACE}%{LOGLEVEL:loglevel} %{WORD:uw}.%{WORD:com}.%{WORD:unisys}.%{WORD:trans}.%{WORD:logistics}.%{WORD:lms}.%{WORD:framework}.%{WORD:uw}.%{WORD:ExceptionClass}._%{IP:msg})(?(.|\r|\n)_)"

```
	 }		 
}
```

---

<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:** [December 3, 2019, 11:49am UTC](https://discuss.elastic.co/t/filebeat-is-sending-multiple-messages-to-elasticsearch/206578/2 "2019-12-03T11:49:04Z")

</div>

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