# How to prevent logging at logstash for /var/log/messages

**URL:** <https://discuss.elastic.co/t/how-to-prevent-logging-at-logstash-for-var-log-messages/117950>\
**Category:** Logstash\
**Created:** [February 1, 2018, 7:30am UTC](https://discuss.elastic.co/t/how-to-prevent-logging-at-logstash-for-var-log-messages/117950 "2018-02-01T07:30:57Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![david\_k](https://avatars.discourse-cdn.com/v4/letter/d/edb3f5/32.png) [@david\_k](https://discuss.elastic.co/u/david_k)\
**Post date:** [February 1, 2018, 7:30am UTC](https://discuss.elastic.co/t/how-to-prevent-logging-at-logstash-for-var-log-messages/117950/1 "2018-02-01T07:30:58Z")

</div>

Hi all

logstash data is written to / var / log / messages. This causes the server capacity to continue to grow. Is there a way to prevent this data from being written to / var / log / messages?

Thank you

---

<div class="post-metadata">

**Author:** ![glenvillef](https://avatars.discourse-cdn.com/v4/letter/g/a4c791/32.png) [@glenvillef](https://discuss.elastic.co/u/glenvillef)\
**Post date:** [February 16, 2018, 8:48am UTC](https://discuss.elastic.co/t/how-to-prevent-logging-at-logstash-for-var-log-messages/117950/2 "2018-02-16T08:48:59Z")

</div>

Hi, have you managed to get something on this as yet?

---

<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:** [March 16, 2018, 8:49am UTC](https://discuss.elastic.co/t/how-to-prevent-logging-at-logstash-for-var-log-messages/117950/3 "2018-03-16T08:49:33Z")

</div>

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