# How to troubleshoot LS

**URL:** <https://discuss.elastic.co/t/how-to-troubleshoot-ls/40786>\
**Category:** Logstash\
**Created:** [February 2, 2016, 8:51pm UTC](https://discuss.elastic.co/t/how-to-troubleshoot-ls/40786 "2016-02-02T20:51:19Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![vikas\_gopal](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/vikas_gopal/32/47661_2.png) [@vikas\_gopal](https://discuss.elastic.co/u/vikas_gopal)\
**Post date:** [February 2, 2016, 8:51pm UTC](https://discuss.elastic.co/t/how-to-troubleshoot-ls/40786/1 "2016-02-02T20:51:19Z")

</div>

Hi Experts,

I am using LS 1.5.4 , and I want to troubleshoot LS. Can anyone tell me where I find error logs for Logstash. I do not see it the way kibana or ES save it's app logs in the directory .

please suggest.

Thanks  
VG

---

<div class="post-metadata">

**Author:** ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)\
**Post date:** [February 2, 2016, 9:06pm UTC](https://discuss.elastic.co/t/how-to-troubleshoot-ls/40786/2 "2016-02-02T21:06:21Z")

</div>

This depends on how Logstash is started. Look at your Logstash command line. The `-l` option chooses the log file location. If absent, Logstash will log to stdout (or is it stderr?).

---

<div class="post-metadata">

**Author:** ![vikas\_gopal](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/vikas_gopal/32/47661_2.png) [@vikas\_gopal](https://discuss.elastic.co/u/vikas_gopal)\
**Post date:** [February 2, 2016, 9:10pm UTC](https://discuss.elastic.co/t/how-to-troubleshoot-ls/40786/3 "2016-02-02T21:10:29Z")

</div>

Thank you Magnus I am running it as logstash agent -f test.conf.  
Where i can put -l in this command ?

---

<div class="post-metadata">

**Author:** ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)\
**Post date:** [February 2, 2016, 9:15pm UTC](https://discuss.elastic.co/t/how-to-troubleshoot-ls/40786/4 "2016-02-02T21:15:17Z")

</div>

Anywhere after "agent".

---

<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 6, 2017, 5:13am UTC](https://discuss.elastic.co/t/how-to-troubleshoot-ls/40786/5 "2017-07-06T05:13:19Z")

</div>


