Dynamical way of getting name and path of Logstash config file

We have a lot of Logstash configuration files and some handle almost the same data. Along with Logstash we have several other scripts ingesting data into Elasticsearch.

Because of the sheer amount, we'd like to be able to track them. Our idea is to add some fields in the logs describing where they "come from".

I've found a way to get the server that the Logstash instance is running on from within the configuration file. How can I get the logstash hostname

What I'm missing is a dynamical way to get the name and path of the config file. As an example:
file = my-config.conf
path = /path/to/my/conf/

Hope you can help, so we don't have to hardcode anything.

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