Only show and save logs more than 40 characters of line


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!



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

For Logstash, perhaps the drop filter plugin Drop filter plugin | Logstash Reference [8.13] | Elastic
For Filebeat look at the drop_event processor Drop events | Filebeat Reference [8.13] | Elastic