Logstash: access name of current pipeline within cfg?

Hello,
At the moment it's not possible to have the name of the pipeline from the [@metadata] fields, but you can get them via Ruby using:

ruby { code => "event.set(\"pipeline_id\", execution_context.pipeline.pipeline_id)" }

Please note this will trigger an error if you're not using multiple pipelines.

Hope it helps!

Best regards,
Luca