Using relative paths in Logstash


(Sbienert) #1

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