All Apps and Add-ons

TA for Symantec Endpoint Protection (syslog): "Bad regex value...two named subpatterns have the same name"

pjohnson1
Path Finder

We have installed the TA for Symantec Endpoint Protection (syslog) (https://splunkbase.splunk.com/app/3121/) and noticed upon restarting splunkd, we get the following error:

Bad regex value: '(?:[[sep_file_preifx]])\s*(?<Server_Name>[[sep_file_field]])\s*(?<Domain>[[sep_file_field]]),\s*(?<Server_Name>[[sep_file_field]]),\s*(?<Event_Description>[[sep_file_field]])', of param: transforms.conf / [field_extraction_for_scm_system] / REGEX; why: two named subpatterns have the same name One or more regexes in your configuration are not valid. For details, please see btool.log or directly above. Done

This is on 6.3.5.

1 Solution

aholzel
Communicator

you can change the regex, if you place "(?J)" (without the quotes) in front of the regex, duplicate field names are allowed.

View solution in original post

aholzel
Communicator

you can change the regex, if you place "(?J)" (without the quotes) in front of the regex, duplicate field names are allowed.

pjohnson1
Path Finder

Thank you.

0 Karma

abeeber_3
Explorer

I fixed it.

REGEX = (?J)(:[[sep_file_preifx]])\s*(?[[sep_file_field]])\s*(?[[sep_file_field]]),\s*(?[[sep_file_field]]),\s*(?[[sep_file_field]])

I'm not getting the error anymore.

0 Karma

ageld
Path Finder

Thanks a lot!

0 Karma

ageld
Path Finder

Could you, please, elaborate more on this answer? Could you paste the actual REGEX here?

I could not fix the issue by placing (?J) after REGEX =

Thank you.

0 Karma

abeeber_3
Explorer

Have you fixed the issue? I am having the same?

0 Karma

ageld
Path Finder

It has been a long while. I am not sure how exactly I fixed the issue. This is the statement I have now:

REGEX = (?:[[sep_file_preifx]])Site:\s(?P[[sep_file_field]]),\s*(?P[[sep_file_field]]),\s*(?P[[sep_file_field]]),\s*(?P[[sep_file_field]]),\s*(?P[[sep_file_field]]),\s*(?P[[sep_file_field]]),\s*(?P[[sep_file_field]])

It does not error out.

0 Karma

abeeber_3
Explorer

ok.

I did the following:
REGEX = (?J)(:[[sep_file_preifx]])\s*(?[[sep_file_field]])\s*(?[[sep_file_field]]),\s*(?[[sep_file_field]]),\s*(?[[sep_file_field]])

0 Karma
Get Updates on the Splunk Community!

What's new in Splunk Cloud Platform 9.1.2312?

Hi Splunky people! We are excited to share the newest updates in Splunk Cloud Platform 9.1.2312! Analysts can ...

What’s New in Splunk Security Essentials 3.8.0?

Splunk Security Essentials (SSE) is an app that can amplify the power of your existing Splunk Cloud Platform, ...

Let’s Get You Certified – Vegas-Style at .conf24

Are you ready to level up your Splunk game? Then, let’s get you certified live at .conf24 – our annual user ...