Hi guys,
I have been playing around trying to match multiple ocurances of a pattern and replace it with a regex in transforms.conf.
sample data
[email protected]
I am trying to match the pattern "-x" and replace it with "_". It works perfect for one match but for the rest of the matches in the event it doesnt. This is not a multiline event and the characters I wish to replace may appear multiple times even in a single word.
Desired Result
Kenan_ Muharemagic_ _
[email protected]_ _ (excuse the " " at _)
I was able to do this earlier with the max_matches parameter during search time. This time I am trying to replace these characters before indexing, like when anonimyzing CC numbers or so...
Is there a way to tell splunk to replace all matches of a pattern in transforms.conf?
... View more