# Logstash pipeline for error logs?

**URL:** <https://discuss.elastic.co/t/logstash-pipeline-for-error-logs/307681>\
**Category:** Logstash\
**Created:** [June 20, 2022, 4:02pm UTC](https://discuss.elastic.co/t/logstash-pipeline-for-error-logs/307681 "2022-06-20T16:02:53Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![MLsuper](https://avatars.discourse-cdn.com/v4/letter/m/dfb087/32.png) [@MLsuper](https://discuss.elastic.co/u/MLsuper)\
**Post date:** [June 20, 2022, 4:02pm UTC](https://discuss.elastic.co/t/logstash-pipeline-for-error-logs/307681/1 "2022-06-20T16:02:53Z")

</div>

How can I create a logstash pipeline for logstash error logs and put it in Elasticsearch?(So I can see it in discover and see the logs from kibana/discover and analytics?

---

<div class="post-metadata">

**Author:** ![stephenb](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stephenb/32/40856_2.png) [@stephenb](https://discuss.elastic.co/u/stephenb)\
**Post date:** [June 20, 2022, 5:01pm UTC](https://discuss.elastic.co/t/logstash-pipeline-for-error-logs/307681/2 "2022-06-20T17:01:06Z")

</div>

Did you look at the [filebeat logstash module?](https://www.elastic.co/guide/en/beats/filebeat/current/filebeat-module-logstash.html)

You could run it side by side with logstash and even feed it through logstash if you wanted... or just directly to Elasticsearch.

---

<div class="post-metadata">

**Author:** ![MLsuper](https://avatars.discourse-cdn.com/v4/letter/m/dfb087/32.png) [@MLsuper](https://discuss.elastic.co/u/MLsuper)\
**Post date:** [June 20, 2022, 5:31pm UTC](https://discuss.elastic.co/t/logstash-pipeline-for-error-logs/307681/3 "2022-06-20T17:31:38Z")

</div>

how do i do it directly into Elasticsearch?

---

<div class="post-metadata">

**Author:** ![Rios](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rios/32/95745_2.png) [@Rios](https://discuss.elastic.co/u/Rios)\
**Post date:** [June 20, 2022, 5:40pm UTC](https://discuss.elastic.co/t/logstash-pipeline-for-error-logs/307681/4 "2022-06-20T17:40:26Z")

</div>

Use FB modules such as **[Elasticsearch module](https://www.elastic.co/guide/en/beats/filebeat/current/filebeat-module-elasticsearch.html)**

---

<div class="post-metadata">

**Author:** ![stephenb](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stephenb/32/40856_2.png) [@stephenb](https://discuss.elastic.co/u/stephenb)\
**Post date:** [June 20, 2022, 5:48pm UTC](https://discuss.elastic.co/t/logstash-pipeline-for-error-logs/307681/5 "2022-06-20T17:48:17Z")

</div>

> [@MLsuper](#):
>
> how do i do it directly into Elasticsearch?

Take a look at the [Filebeat quickstart guide](https://www.elastic.co/guide/en/beats/filebeat/current/filebeat-installation-configuration.html) and use the logstash module. Make sure you configure / enable the logstash module and then run setup as shown.

Set the output to elasticsearch as shown in the guide...

@Rios perhaps I am missing something but the elasticsearch module would not be correct as that is to collect elasticsearch logs and @MLsuper wants to process logstash logs to the logstash module would be more appropriate.

---

<div class="post-metadata">

**Author:** ![Rios](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rios/32/95745_2.png) [@Rios](https://discuss.elastic.co/u/Rios)\
**Post date:** [June 20, 2022, 6:39pm UTC](https://discuss.elastic.co/t/logstash-pipeline-for-error-logs/307681/6 "2022-06-20T18:39:01Z")

</div>

Yes, of course, you are abs. right. Was just a sample. My apology. FB has module for monitoring every part of ELK.

---

<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:** [July 18, 2022, 6:39pm UTC](https://discuss.elastic.co/t/logstash-pipeline-for-error-logs/307681/7 "2022-07-18T18:39:41Z")

</div>

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