Q&A: Redact by json keys #24222
Unanswered
domenico-luciani-deel
asked this question in
Q&A
Replies: 1 comment 1 reply
-
|
Hey, there is already a function called redact, I think this is an easier way to do it. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Question
Is there a simple way to redact a JSON like this:
into this:
?
I tried already the
redactfunction but it works only on values and not on keys, so if I have a json like:and I use as a filter
r'token'it won't redact anything leaving the value (blabla) untouchedWith the attached
transformsI achieve it, but I was wondering if it was the most idiomatic way to do it with Vector.Thank you
Vector Config
Vector Logs
No response
Beta Was this translation helpful? Give feedback.
All reactions