# How to have LS\_CONF\_DIR to have regular express

**URL:** <https://discuss.elastic.co/t/how-to-have-ls-conf-dir-to-have-regular-express/74309>\
**Category:** Logstash\
**Created:** [February 8, 2017, 2:23am UTC](https://discuss.elastic.co/t/how-to-have-ls-conf-dir-to-have-regular-express/74309 "2017-02-08T02:23:14Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![macymin](https://avatars.discourse-cdn.com/v4/letter/m/8e7dd6/32.png) [@macymin](https://discuss.elastic.co/u/macymin)\
**Post date:** [February 8, 2017, 2:23am UTC](https://discuss.elastic.co/t/how-to-have-ls-conf-dir-to-have-regular-express/74309/1 "2017-02-08T02:23:14Z")

</div>

hi, I Have 2 different logstash conf file need to be loaded together in one logstash startup file.

1st conf is located in /etc/logstash/automation/active/conf.d/indexer\_test.conf  
another is located in /etc/logstash/automation/ouput/indexer\_test\_F10N.conf

LS\_CONF\_DIR="/etc/logstash/automation/{active,output}/{conf.d}/{${name}.conf,${name}\_${SITE}.conf}"

but seems doesnt work. how can I change it?

Thanks a lot!

---

<div class="post-metadata">

**Author:** ![macymin](https://avatars.discourse-cdn.com/v4/letter/m/8e7dd6/32.png) [@macymin](https://discuss.elastic.co/u/macymin)\
**Post date:** [February 8, 2017, 3:16am UTC](https://discuss.elastic.co/t/how-to-have-ls-conf-dir-to-have-regular-express/74309/2 "2017-02-08T03:16:40Z")

</div>

can anybody help?

---

<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 9, 2017, 3:42pm UTC](https://discuss.elastic.co/t/how-to-have-ls-conf-dir-to-have-regular-express/74309/3 "2017-02-09T15:42:08Z")

</div>

That's not a regular expression. Anyway, I'm pretty sure LS\_CONF\_DIR needs to point to exactly one directory. If you can't put your files in a single directory, perhaps you can use symlinks?

---

<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 9, 2017, 3:42pm UTC](https://discuss.elastic.co/t/how-to-have-ls-conf-dir-to-have-regular-express/74309/4 "2017-03-09T15:42:18Z")

</div>

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