Skip to content

moving from logstash to vector #11869

Answered by jszwedko
agorkiy asked this question in Q&A
Discussion options

You must be logged in to vote

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:

[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 parse_grok function as well: https://vector.dev/docs/reference/vrl/examples/#parse_grok

Let me know if that helps!

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by jszwedko
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants