Hello,
I am using logstash 7.13.1 that has support for datastreams in the elasticsearch output.
As far as I looked at it is not possible to specify a variable in one of the datastream related parameter like below:
elasticsearch {
hosts => "localhost"
data_stream => "true"
data_stream_type => "metrics"
data_stream_dataset => "iib"
data_stream_namespace => "%{[@metadata][namespace]}"
}
This will use "%{[@metadata][namespace]}" as a string.
Am I correct? Maybe an e.sprintf() to add there?
Br,