-
Hi, we are currently evaluating vector as replacement for Fluentd, but I'm failing to get the data stream naming equal to the naming in Fluentd. [sinks.elk-shared-dev] [sinks.elk-shared-dev.auth] [sinks.elk-shared-dev.bulk] [sinks.elk-shared-dev.data_stream] Is there an option to suppress the creation of data_stream.type & data_stream.namespace or why is this enforced? Many Thanks for you support |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
👋 Hello Inspecting the code a bit and also from https://vector.dev/docs/reference/configuration/sinks/elasticsearch/#data_stream.auto_routing
, it appears that even if the datastream type and namespace are configured to empty strings, that you will still have those dashes in the stream name. I'll confirm that there isn't a legitimate reason for this / or that I'm missing something. But as it stands I think this is a Vector limitation in the sink that would be easy to fix by just checking if the configured type and namespace are empty strings, and removing the respective dashes from the stream name. |
Beta Was this translation helpful? Give feedback.
👋 Hello
Inspecting the code a bit and also from
https://vector.dev/docs/reference/configuration/sinks/elasticsearch/#data_stream.auto_routing
, it appears that even if the datastream type and namespace are configured to empty strings, that you will still have those dashes in the stream name.
Unless I'm missing something, the closest I think we can get with the current logic in Vector would be "-applicationname.environment-".
It is not clear to me why the dashes are always used. It could have been just an oversight.
Since you …