Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

map_values does not work if the from value is an integer #1162

Open
jjmirks opened this issue Mar 16, 2023 · 1 comment
Open

map_values does not work if the from value is an integer #1162

jjmirks opened this issue Mar 16, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@jjmirks
Copy link

jjmirks commented Mar 16, 2023

Describe the bug
map_values doesn't work if the "from" value is an integer

To Reproduce
Steps to reproduce the behavior:

  1. Start a GCE VM with image Debian GNU/Linux 11
  2. Install Ops Agent version 2.28.0 following the steps here
  3. Customize the agent with configuration config.yaml and restart the agent
  4. Run echo '{"severity":2}' >> /tmp/example

Expected behavior
In Logs Explorer I expect to see the log:
{"severity":2, "severityTest":"WARNING"}

Instead I see:
{"severity":2, "severityTest":2}

Additional information
I have tried version 1.22.0 as well and had the same result, I have also tried double-quoted and no-quoted map_values keys.

@braydonk braydonk added the bug Something isn't working label Mar 16, 2023
@braydonk
Copy link
Contributor

Hi @jjmirks, thanks for bringing this to our attention. We are tracking this internally and will work on a fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants