# Where to specify path.logs in Logstash 2.x?

**URL:** <https://discuss.elastic.co/t/where-to-specify-path-logs-in-logstash-2-x/100930>\
**Category:** Logstash\
**Created:** [September 18, 2017, 8:34pm UTC](https://discuss.elastic.co/t/where-to-specify-path-logs-in-logstash-2-x/100930 "2017-09-18T20:34:20Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![amruth](https://avatars.discourse-cdn.com/v4/letter/a/43a26b/32.png) [@amruth](https://discuss.elastic.co/u/amruth)\
**Post date:** [September 18, 2017, 8:34pm UTC](https://discuss.elastic.co/t/where-to-specify-path-logs-in-logstash-2-x/100930/1 "2017-09-18T20:34:20Z")

</div>

Hi,

I am using Logstash 2.4(since Java 1.7 doesn't support Logstash 5.x). Since it's Logstash 2.x there will be no Logstash.yml file. Now, I want to run Logstash as a service and wnat to gspecify options like path.logs, path.data. Where do I need to specify those values?

Thanks

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [September 19, 2017, 2:16am UTC](https://discuss.elastic.co/t/where-to-specify-path-logs-in-logstash-2-x/100930/2 "2017-09-19T02:16:40Z")

</div>

I don't believe that was an available setting in 2.X, it was only exposed in 5.X.

---

<div class="post-metadata">

**Author:** ![amruth](https://avatars.discourse-cdn.com/v4/letter/a/43a26b/32.png) [@amruth](https://discuss.elastic.co/u/amruth)\
**Post date:** [September 19, 2017, 10:15am UTC](https://discuss.elastic.co/t/where-to-specify-path-logs-in-logstash-2-x/100930/3 "2017-09-19T10:15:26Z")

</div>

Hi Mark,

How can I see the logs to debug if there are any issues?

Thanks

---

<div class="post-metadata">

**Author:** ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)\
**Post date:** [September 19, 2017, 10:32am UTC](https://discuss.elastic.co/t/where-to-specify-path-logs-in-logstash-2-x/100930/4 "2017-09-19T10:32:15Z")

</div>

You can specify it through [command line parameters](https://www.elastic.co/guide/en/logstash/2.4/command-line-flags.html) in Logstash 2.4.

---

<div class="post-metadata">

**Author:** ![amruth](https://avatars.discourse-cdn.com/v4/letter/a/43a26b/32.png) [@amruth](https://discuss.elastic.co/u/amruth)\
**Post date:** [September 19, 2017, 10:36am UTC](https://discuss.elastic.co/t/where-to-specify-path-logs-in-logstash-2-x/100930/5 "2017-09-19T10:36:06Z")

</div>

But I want to run Logstash as a service which picks files directly from conf.d directory. How can I specify those parameters in this case?

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [September 19, 2017, 10:37am UTC](https://discuss.elastic.co/t/where-to-specify-path-logs-in-logstash-2-x/100930/6 "2017-09-19T10:37:45Z")

</div>

If you installed the DEB/RPM, it will auto log to /var/log/logstash

---

<div class="post-metadata">

**Author:** ![amruth](https://avatars.discourse-cdn.com/v4/letter/a/43a26b/32.png) [@amruth](https://discuss.elastic.co/u/amruth)\
**Post date:** [September 19, 2017, 10:45am UTC](https://discuss.elastic.co/t/where-to-specify-path-logs-in-logstash-2-x/100930/7 "2017-09-19T10:45:42Z")

</div>

Got it. Thanks Mark 🙂

---

<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 17, 2017, 10:46am UTC](https://discuss.elastic.co/t/where-to-specify-path-logs-in-logstash-2-x/100930/8 "2017-10-17T10:46:23Z")

</div>

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