-
Hi
The question is - can I add tags with vector and perform operations based on that tags? Does anyone have such config example that can be shared? I saw somewhere that tags can be added only as key-value pairs, is that true? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hi @agorkiy ! I think you should be able to replicate all of the transformation functionality you are using here with Example of adding and using tags: [transforms.my_transform_id]
type = "remap"
inputs = [ "my-source-or-transform-id" ]
source = '''
.host = "localhost"
if .foo == "bar" {
.baz = 1234
}
''' You'll probably be interested in the Let me know if that helps! |
Beta Was this translation helpful? Give feedback.
Hi @agorkiy !
I think you should be able to replicate all of the transformation functionality you are using here with
remap
.Example of adding and using tags:
You'll probably be interested in the
parse_grok
function as well: https://vector.dev/docs/reference/vrl/examples/#parse_grokLet me know if that helps!