# Using relative paths in Logstash

**URL:** <https://discuss.elastic.co/t/using-relative-paths-in-logstash/159529>\
**Category:** Logstash\
**Created:** [December 5, 2018, 12:29pm UTC](https://discuss.elastic.co/t/using-relative-paths-in-logstash/159529 "2018-12-05T12:29:00Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![sbienert](https://avatars.discourse-cdn.com/v4/letter/s/a3d4f5/32.png) [@sbienert](https://discuss.elastic.co/u/sbienert)\
**Post date:** [December 5, 2018, 12:29pm UTC](https://discuss.elastic.co/t/using-relative-paths-in-logstash/159529/1 "2018-12-05T12:29:00Z")

</div>

Hello,  
I have a Logstash exec-input that executes a bash script everyday. This Bash script is located in the logstash folder. I want to distribute that logastash installation to different machines and therefore the Logstash base path can vary. Instead of always having to change the location I want to use a relative path so something like  
{BASE.PATH}/scripts/exec.sh  
so {BASE.PATH} is the logstash folder.

Is this even possible to do? I am using Logstash 5.6.7  
Thanks

Update: Would also be good to know for the logstash.yml

---

<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:** [January 2, 2019, 12:29pm UTC](https://discuss.elastic.co/t/using-relative-paths-in-logstash/159529/2 "2019-01-02T12:29:08Z")

</div>

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