Would like to be able to convert SNMP traps to JSON and then perform subsequent routing and enrichment leveraging the JSON content. Thanks.
Page 1 / 1
Turns out this was frighteningly trivial. I used the code function to JSON.stringify the events in the pipeline.
You might find eval
a better choice than code
for simple conversions like this - I think its more performant, definitely safer, and easier for the next developer behind you to grok.
Reply
Login to the community
No account yet? Create an account
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.