# Appeared \_grokparsefailure, unable to parse specific lines from log file

**URL:** <https://discuss.elastic.co/t/appeared-grokparsefailure-unable-to-parse-specific-lines-from-log-file/258566>\
**Category:** Logstash\
**Created:** [December 14, 2020, 10:50am UTC](https://discuss.elastic.co/t/appeared-grokparsefailure-unable-to-parse-specific-lines-from-log-file/258566 "2020-12-14T10:50:57Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Polak](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/polak/32/80807_2.png) [@Polak](https://discuss.elastic.co/u/Polak)\
**Post date:** [December 14, 2020, 10:50am UTC](https://discuss.elastic.co/t/appeared-grokparsefailure-unable-to-parse-specific-lines-from-log-file/258566/1 "2020-12-14T10:50:57Z")

</div>

I have this kind of log: [https://pastebin.com/ztXijyNV](https://pastebin.com/ztXijyNV)  
I would like to drop all events except the lines with "INFO -- :". Logs are gathered by filebeat and then they are send to logstash. Important data are in log inside fields -\> deviceId, productId, lang\_from, lang\_to, text. I tried different combination in filebeat: [https://pastebin.com/im20uYWU](https://pastebin.com/im20uYWU). Here are config files and patterns: [https://pastebin.com/5sSW8n3Z](https://pastebin.com/5sSW8n3Z)  
Currently in Kibana I don't get what I want to have and moreover I got in tags (first one is always but second one appeared):  
"beats\_input\_codec\_plain\_applied, \_grokparsefailure"

Honestly I stucked.

PS  
How to drop many events if  
` - drop_event: when: regexp: message: "^D,"`  
allow only one type of "message"?

---

<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:** [January 11, 2021, 10:51am UTC](https://discuss.elastic.co/t/appeared-grokparsefailure-unable-to-parse-specific-lines-from-log-file/258566/2 "2021-01-11T10:51:11Z")

</div>

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