# How to handle logstash logs in ubuntu 18.04

**URL:** <https://discuss.elastic.co/t/how-to-handle-logstash-logs-in-ubuntu-18-04/162828>\
**Category:** Logstash\
**Created:** [January 3, 2019, 3:28pm UTC](https://discuss.elastic.co/t/how-to-handle-logstash-logs-in-ubuntu-18-04/162828 "2019-01-03T15:28:35Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![varun1992](https://avatars.discourse-cdn.com/v4/letter/v/3da27b/32.png) [@varun1992](https://discuss.elastic.co/u/varun1992)\
**Post date:** [January 3, 2019, 3:28pm UTC](https://discuss.elastic.co/t/how-to-handle-logstash-logs-in-ubuntu-18-04/162828/1 "2019-01-03T15:28:36Z")

</div>

i have couple of problem. The [logstash document](https://www.elastic.co/guide/en/logstash/current/dir-layout.html) says logs saved in **/var/log/logstash** folder,  
but in my case log is saved in **/usr/share/logstash/log** folder ? so why is that ?

Other problem i am having is ubuntu syslog size keep on increasing and when i check it contail full of logstash logs. so is there way to stop syslog accumulating syslog file ?

my syslog file size is currently 16G, 3 hours ago it was 12G

---

<div class="post-metadata">

**Author:** ![AquaX](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/aquax/32/92006_2.png) [@AquaX](https://discuss.elastic.co/u/AquaX)\
**Post date:** [January 3, 2019, 3:43pm UTC](https://discuss.elastic.co/t/how-to-handle-logstash-logs-in-ubuntu-18-04/162828/2 "2019-01-03T15:43:29Z")

</div>

Check that you don't have debug turned on in you logstash.yml file and there may be a symbolic link from /var/log/logstash to /usr/share/logstash/log

---

<div class="post-metadata">

**Author:** ![varun1992](https://avatars.discourse-cdn.com/v4/letter/v/3da27b/32.png) [@varun1992](https://discuss.elastic.co/u/varun1992)\
**Post date:** [January 3, 2019, 5:54pm UTC](https://discuss.elastic.co/t/how-to-handle-logstash-logs-in-ubuntu-18-04/162828/3 "2019-01-03T17:54:02Z")

</div>

no it is log.type info is enabled

---

<div class="post-metadata">

**Author:** ![varun1992](https://avatars.discourse-cdn.com/v4/letter/v/3da27b/32.png) [@varun1992](https://discuss.elastic.co/u/varun1992)\
**Post date:** [January 10, 2019, 2:11pm UTC](https://discuss.elastic.co/t/how-to-handle-logstash-logs-in-ubuntu-18-04/162828/4 "2019-01-10T14:11:43Z")

</div>

please help

---

<div class="post-metadata">

**Author:** ![A\_B](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/a_b/32/17104_2.png) [@A\_B](https://discuss.elastic.co/u/A_B)\
**Post date:** [January 10, 2019, 3:01pm UTC](https://discuss.elastic.co/t/how-to-handle-logstash-logs-in-ubuntu-18-04/162828/5 "2019-01-10T15:01:54Z")

</div>

I have had similar "issues" with Elasticsearch. I ended up creating my own `log4j2.properties` file so I could disable syslog logging.

[EDIT]  
Actually looks like that was only to change log level...  
[/EDIT]

---

<div class="post-metadata">

**Author:** ![varun1992](https://avatars.discourse-cdn.com/v4/letter/v/3da27b/32.png) [@varun1992](https://discuss.elastic.co/u/varun1992)\
**Post date:** [January 10, 2019, 4:40pm UTC](https://discuss.elastic.co/t/how-to-handle-logstash-logs-in-ubuntu-18-04/162828/6 "2019-01-10T16:40:36Z")

</div>

Is there any other way, rather than changing the log4j file?

---

<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:** [February 7, 2019, 4:40pm UTC](https://discuss.elastic.co/t/how-to-handle-logstash-logs-in-ubuntu-18-04/162828/7 "2019-02-07T16:40:41Z")

</div>

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