Hello,
we have the meraki and pagerduty integration working
using the custom code provided by cisco for the event transformation.
we are using the "shared secret" as a filter for incoming alerts.
now we are wanting to hide from the incident payload so that users/ticket do not see the "shared secret"
anyone have any luck in doing this? we have tried the splice function and it did not work...
here is the current code:
Solved! Go to solution.
Brilliant!
the idea worked.
the actual syntax is:
I've not used the code you're referring to before, and honestly I only really know a bit of python, but it seems to me that if you were to blank out the secret before you do anything else with the data tat should do the trick?
@Mikanator wrote:// Check secret and store event
const SECRET = "xxx123";if(body.sharedSecret == SECRET){body.sharedSecret = <NULL> <----- Blank secret from data
PD.emitCEFEvents([cef_event]);
}
Brilliant!
the idea worked.
the actual syntax is:
Woohoo!
My example was meant as pseudocode since I didn't have any idea what a null character would be in whatever language that actually is 🙂
Well thank you soooo much!
simplicity at its best!