Use transform to add key values to windows host metric events #22612
-
Hello, I am currently fetching host metrics to ingest windows performance logs
I am trying to use transform to add 2 new keys explicitly "dt" and "message" to every event through vector, like below:
I have tried alternate ways such as encoding to json or merging as well, but it does not work.
Is this an issue or am I doing something wrong? Any help would be appreciated, thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi @abubakr-cgs, you cannot modify metrics in the way you describe. You can see all supported operations on a metric event here: https://vector.dev/docs/reference/configuration/transforms/remap/#event-data-model For example, you can add a tag for |
Beta Was this translation helpful? Give feedback.
Hi @abubakr-cgs, you cannot modify metrics in the way you describe. You can see all supported operations on a metric event here: https://vector.dev/docs/reference/configuration/transforms/remap/#event-data-model
For example, you can add a tag for
"Windows Host Metric Event"
. But you cannot add arbitrary paths like you can do for logs.