# How to send only error logs path from filebeat to logstash

**URL:** <https://discuss.elastic.co/t/how-to-send-only-error-logs-path-from-filebeat-to-logstash/314050>\
**Category:** Logstash\
**Created:** [September 9, 2022, 10:55am UTC](https://discuss.elastic.co/t/how-to-send-only-error-logs-path-from-filebeat-to-logstash/314050 "2022-09-09T10:55:07Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![poojitha0812](https://avatars.discourse-cdn.com/v4/letter/p/cab0a1/32.png) [@poojitha0812](https://discuss.elastic.co/u/poojitha0812)\
**Post date:** [September 9, 2022, 10:55am UTC](https://discuss.elastic.co/t/how-to-send-only-error-logs-path-from-filebeat-to-logstash/314050/1 "2022-09-09T10:55:07Z")

</div>

Hi ,

I am able to send logs from filebeat to logstash but i enabled logging level and given path to save under /var/log/filebeat to save the error files . filebeat is connected to logstash and now i am want logstash to take only those error logs under the path where filebeat created for logging level /var/log/filebeat. How to update logstash.conf file to fetch logs from /var/log/filebeat and help me with grok filter it will show only message of error .

I am struck on this

---

<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:** [October 7, 2022, 10:55am UTC](https://discuss.elastic.co/t/how-to-send-only-error-logs-path-from-filebeat-to-logstash/314050/2 "2022-10-07T10:55:53Z")

</div>

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