# How to print or store all skipped lines of a large log file?

**URL:** <https://discuss.elastic.co/t/how-to-print-or-store-all-skipped-lines-of-a-large-log-file/173154>\
**Category:** Logstash\
**Created:** [March 20, 2019, 1:37pm UTC](https://discuss.elastic.co/t/how-to-print-or-store-all-skipped-lines-of-a-large-log-file/173154 "2019-03-20T13:37:32Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![satyaban](https://avatars.discourse-cdn.com/v4/letter/s/bc8723/32.png) [@satyaban](https://discuss.elastic.co/u/satyaban)\
**Post date:** [March 20, 2019, 1:37pm UTC](https://discuss.elastic.co/t/how-to-print-or-store-all-skipped-lines-of-a-large-log-file/173154/1 "2019-03-20T13:37:33Z")

</div>

Dear All,

Some times due incorrect pattern of some lines of logs inside complete log files are skipped by logstash.

It only sends all lines having pattern matched to grok syntax i have written.

Actually my team want to see which lines of logs are skipped or not read by logstash sothat we can make that pattern correct.

I have added

```
output {

if "_grokparsefailure" in [tags] {

stdout { 

codec => rubydebug

}

}

else

{
}
}

```

**but it only prints the grok parse failure for lines read by logstash**

So how to print or store all skipped lines in a output log file .

---

<div class="post-metadata">

**Author:** ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)\
**Post date:** [March 23, 2019, 6:59am UTC](https://discuss.elastic.co/t/how-to-print-or-store-all-skipped-lines-of-a-large-log-file/173154/2 "2019-03-23T06:59:13Z")

</div>

Where are the lines being skipped? If they do not reach Logstash it is naturally impossible for Logstash to print them.

---

<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:** [April 20, 2019, 6:59am UTC](https://discuss.elastic.co/t/how-to-print-or-store-all-skipped-lines-of-a-large-log-file/173154/3 "2019-04-20T06:59:22Z")

</div>

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