# How to set path.data and pidfile per conf file in Logstash Service

**URL:** <https://discuss.elastic.co/t/how-to-set-path-data-and-pidfile-per-conf-file-in-logstash-service/223630>\
**Category:** Logstash\
**Created:** [March 14, 2020, 6:24pm UTC](https://discuss.elastic.co/t/how-to-set-path-data-and-pidfile-per-conf-file-in-logstash-service/223630 "2020-03-14T18:24:01Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Yungyoung\_Ok](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/yungyoung_ok/32/43465_2.png) [@Yungyoung\_Ok](https://discuss.elastic.co/u/Yungyoung_Ok)\
**Post date:** [March 14, 2020, 6:24pm UTC](https://discuss.elastic.co/t/how-to-set-path-data-and-pidfile-per-conf-file-in-logstash-service/223630/1 "2020-03-14T18:24:02Z")

</div>

I am running logstash as a service using systemctl.  
Running logstash with systemctl runs the conf files in conf.d directory.

First, How do I set path.data for each conf file in conf.d directory?

Second, how to set pid file separately for each conf file?  
Do I have to run it separately for each conf?  
If you need to run it separately, do you have to register the service for each conf to run it as a service?

---

<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:** [April 11, 2020, 6:24pm UTC](https://discuss.elastic.co/t/how-to-set-path-data-and-pidfile-per-conf-file-in-logstash-service/223630/2 "2020-04-11T18:24:12Z")

</div>

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