Getting Data In

How to resolve "Bad regex value" error in transforms.conf?

Waltersr24
New Member
Bad regex value: '\s+([.-\w]+)\s+RT_FLOW', of param: transforms.conf / [dvc_for_junos_fw] / REGEX; why: invalid range in character class

Has anybody else had the same errors? if so, what was your solution?

0 Karma

somesoni2
SplunkTrust
SplunkTrust

As the error indicates, for stanza dvc_for_junos_fw, the REGEX attribute set in transforms.conf is invalid. So, you need to correct the regular expression. Easiest way to validate if a regex is valid or not is to use https://regex101.com/ or similar tool. Based on my testing, you need to escape the hyphen with backslash. (use \s+([.\-\w]+)\s+RT_FLOW instead of \s+([.-\w]+)\s+RT_FLOW)

Waltersr24
New Member

which transforms.conf file would i need to change? i'm pretty new to Splunk and still learning alot of the basics .

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 ...