# Only show and save logs more than 40 characters of line

**URL:** <https://discuss.elastic.co/t/only-show-and-save-logs-more-than-40-characters-of-line/359615>\
**Category:** Elasticsearch\
**Created:** [May 16, 2024, 11:08am UTC](https://discuss.elastic.co/t/only-show-and-save-logs-more-than-40-characters-of-line/359615 "2024-05-16T11:08:49Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Suleman\_Ahmed](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/suleman_ahmed/32/122022_2.png) [@Suleman\_Ahmed](https://discuss.elastic.co/u/Suleman_Ahmed)\
**Post date:** [May 16, 2024, 11:08am UTC](https://discuss.elastic.co/t/only-show-and-save-logs-more-than-40-characters-of-line/359615/1 "2024-05-16T11:08:49Z")

</div>

Hello!

Guys I need soluiton that How can I filter logs to only show and save logs contains more than 40 characters of line. If less I do not need it.

Looking forward to it ASAP!

Thanks

Suleman

---

<div class="post-metadata">

**Author:** ![miltonhultgren](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/miltonhultgren/32/100401_2.png) [@miltonhultgren](https://discuss.elastic.co/u/miltonhultgren)\
**Post date:** [May 16, 2024, 1:23pm UTC](https://discuss.elastic.co/t/only-show-and-save-logs-more-than-40-characters-of-line/359615/2 "2024-05-16T13:23:57Z")

</div>

Sharing the same reply I gave on Slack:  
With an Ingest Pipeline you could add the drop processor [Drop processor | Elasticsearch Guide [8.13] | Elastic](https://www.elastic.co/guide/en/elasticsearch/reference/current/drop-processor.html)

For Logstash, perhaps the drop filter plugin [Drop filter plugin | Logstash Reference [8.13] | Elastic](https://www.elastic.co/guide/en/logstash/current/plugins-filters-drop.html)  
For Filebeat look at the drop\_event processor [Drop events | Filebeat Reference [8.13] | Elastic](https://www.elastic.co/guide/en/beats/filebeat/current/drop-event.html)
