Pipeline IDs as variables?

Is it possible to get the pipeline ID from inside a Logstash config?

I have a monitoring script that gets the pipeline IDs from the Logstash API, and checks a file with the same name to see if the heartbeat is current.

Being able to use a variable for the filename would mean I can have the same output config for each pipeline, instead of manually naming each heartbeat file in a bunch of separate configs.

I've tried guessing a few variable names, but no luck.

I don't believe this is available, but it sounds like a reasonable feature request so I suggest you file a GitHub issue.

Sorry about the late update - I opened this issue a while ago at https://github.com/elastic/logstash/issues/9947

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