By using parse_key_value the key-values are not getting into the output #21824
Replies: 2 comments 1 reply
-
Hi @uni-pooja-laad, A few things that might help here. The logs intake API expects something like this, specifically this line:
Also, see this playground example:
The JSON sample you provided correctly specifies the
The above allows you to access the individual tags by keys e.g.
|
Beta Was this translation helpful? Give feedback.
-
It worked by assigning parsed values to new variable and then using it:
|
Beta Was this translation helpful? Give feedback.
-
Hi team,
![after](https://private-user-images.githubusercontent.com/116880838/387264201-babff63f-8d5e-4cde-875a-ebf2365a4f8f.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkwNjgxOTYsIm5iZiI6MTczOTA2Nzg5NiwicGF0aCI6Ii8xMTY4ODA4MzgvMzg3MjY0MjAxLWJhYmZmNjNmLThkNWUtNGNkZS04NzVhLWViZjIzNjVhNGY4Zi5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjA5JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIwOVQwMjI0NTZaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT03YTM3M2RiNjlmYjM4NTM4OWNiMzRiNDk4ODU1NTg1MDdhMjlmNWZhMWYzOGFjNzM3NGI2ZWEzYjhhN2FhYmU2JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.bVpFlskz704qKc_bVO07aZEDd1o1ohEBRdgENj6q1s4)
![before](https://private-user-images.githubusercontent.com/116880838/387264216-3ceac874-e999-4d0d-a4b7-000b73724eaa.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkwNjgxOTYsIm5iZiI6MTczOTA2Nzg5NiwicGF0aCI6Ii8xMTY4ODA4MzgvMzg3MjY0MjE2LTNjZWFjODc0LWU5OTktNGQwZC1hNGI3LTAwMGI3MzcyNGVhYS5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjA5JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIwOVQwMjI0NTZaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT0xYjA0ZTcyY2I2MTg4ZGIyZWQ5NGM4Mjk3NWFhYzE4Njc3NTQ0ZDAyZTJiYjYzMDc0YzU2ZDkzY2NiYzcxOGQ2JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.23m59DQMQ_EIqUhjboGijNE5vl2pWAS4vExr4Ez8DVQ)
in contineousion of https://discord.com/channels/742820443487993987/1288128207111065650/1295892531246268540
I am using remap with parse_key_value. The vector configuration file attached. The log coming from datadog_agent attached in the file orch_swepper_logs.yaml.
In Datadog it is appearing without tags attached screenshot. (filename: after.png)
Before applying this remap, the tags were getting properly, that Screenshot too attached(filename: before.png)
Why this is happening? I just used it to parse ddtags key and fetch kube_namespace from it to match with the condition.
orch_swepper_logs.json
vector-config-ai.txt
Attaching vector-config-ai as txt as json format not supported here.
Beta Was this translation helpful? Give feedback.
All reactions