# Filebeat Ignoring Messages

**URL:** <https://discuss.elastic.co/t/filebeat-ignoring-messages/83348>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [April 24, 2017, 2:33am UTC](https://discuss.elastic.co/t/filebeat-ignoring-messages/83348 "2017-04-24T02:33:59Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Laker99](https://avatars.discourse-cdn.com/v4/letter/l/c2a13f/32.png) [@Laker99](https://discuss.elastic.co/u/Laker99)\
**Post date:** [April 24, 2017, 2:33am UTC](https://discuss.elastic.co/t/filebeat-ignoring-messages/83348/1 "2017-04-24T02:33:59Z")

</div>

Respected Folks,  
Good day 🙂 May I please request your help w/ Filebeat conf.? I'm a newbie, so apologies in advance if I'm missing something.

## My log file contains messages like,

\<=- 20170414 12:58:39.768 PH2O incoming [135.46.166.47] \<\< [135.46.166.47:7778] 3789 bytes  
{"type":"eventEstablished","connection":"XXXXX","context":"ContextI",...}  
-=\>  
\<=- 20170414 07:04:49.889 PH2O incoming [135.46.166.59] \<\< [135.46.166.59:7778] 2168 bytes  
{"type":"eventReleased","connection":"XXXXX","context":"ContextI",...}  
-=\>  
\<=- 20170414 13:07:33.109 PH2O outgoing [135.46.166.47] \>\> [135.46.166.47:7778] 1886 bytes  
{ "type": "requestMuteTransfer","connection":"XXXXX","context":"ContextI",...}  
-=\>  
\<=- 20170415 08:11:16.731 PH2O incoming [130.6.43.52] \<\< [130.6.43.52:7776] 164 bytes  
{ "context":"ContextI","sequence": 3,"type": "eventAuthenticated","content": { "loginid": "ABC123","authenticated": 1 } }  
-=\>  
\<=- 20170418 09:05:57.952 PH2O incoming [130.6.43.50] \<\< [130.6.43.50:7778] 279 bytes  
{"type":"eventError","connection":"XXXXX","context":"ContextI",...}  
-=\>  
\<=- 20170419 11:57:17.119 AH2O incoming [130.6.43.52] \<\< [130.6.43.50:9977] 37 bytes  
{"type":"pong","context":"reef2reef"}  
-=\>

What I'd like to retrieve through Filebeat?

- only those lines with "eventEstablished", "eventReleased", "requestMuteTransfer", "eventError" AND each line immediately above as that contains the date/time

Here's my Filebeat Conf.  
document\_type: coral\_reef  
tags: ["json"]  
exclude\_lines: ["AH2O incoming", "AH2O outgoing", "MH2O incoming", "PluginInitiated", "Administration", "ping", "pong", "eventInfo", "requestRegisterAddress", "hello", "requestAuthenticate", "requestAnswerCall", "RequestOpenStatistic", "eventRegistered", "pong", "ping", "reef2reef"]  
include\_lines: ["PH2O incoming", "PH2O outgoing"]  
multiline:  
pattern: ^{[[:space:]]|"type":[[:space:]]|"(eventEstablished|eventReleased|requestMuteTransfer|requestCompleteTransfer|eventAuthenticated|eventAgentLogin|eventAgentLogout|requestAgentLogout|eventHeld|eventRetrieved|goodbye|requestReleaseCall|requestAgentNotReady|eventAgentNotReady|eventError)"  
negate: false  
match: after

What's happening?

1. all messages with the text in "exclude\_lines" are not getting published - GOOD
2. messages with text in multiline pattern like "eventReleased", "requestCompleteTransfer" are also not getting published - NOT GOOD ☹
3. messages that do not contain any of the text in multiline pattern are also getting published - NOT GOOD ☹

Questions,

1. What multiline pattern settings do I set to explicitly match messages with the keywords "eventEstablished ,eventReleased ,requestMuteTransfer etc.) and append the line above?

Thanks in advance for your time, patience and cooperation 🙂 Wish you the very best.

---

<div class="post-metadata">

**Author:** ![Laker99](https://avatars.discourse-cdn.com/v4/letter/l/c2a13f/32.png) [@Laker99](https://discuss.elastic.co/u/Laker99)\
**Post date:** [April 24, 2017, 3:53pm UTC](https://discuss.elastic.co/t/filebeat-ignoring-messages/83348/2 "2017-04-24T15:53:57Z")

</div>

Hello there!  
Kindly request your thoughts/comments.

Thanks!

---

<div class="post-metadata">

**Author:** ![ruflin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ruflin/32/3116_2.png) [@ruflin](https://discuss.elastic.co/u/ruflin)\
**Post date:** [April 24, 2017, 7:36pm UTC](https://discuss.elastic.co/t/filebeat-ignoring-messages/83348/3 "2017-04-24T19:36:13Z")

</div>

Can you please format your config and code about above with 3 ticks ` before and after to make it readable and have the correct indentation?

Which filebeat version are you using?

---

<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 22, 2017, 7:39pm UTC](https://discuss.elastic.co/t/filebeat-ignoring-messages/83348/4 "2017-05-22T19:39:50Z")

</div>

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