All Apps and Add-ons

How to implement Multi-Matching?

dijikul
Communicator

Within one event I have several XML tags that require encryption.

Reviewing the Python code in this implementation, it's looking for the first match on each line, which results in only the first XML tag being encrypted.

It's a bit beyond me to know how I could refactor so that if I provided a match-all-XML-tags regular expression, each tag would get appropriately encrypted, but that's what I'm looking to achieve.

Thanks for the help!

0 Karma

DalJeanis
SplunkTrust
SplunkTrust

If the python code is doing this using a regular expression of the form "s/something/somethingelse/" then just add a g after the second slash and it will do them all. (Test carefully).

0 Karma
Get Updates on the Splunk Community!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...