Splunk Search

How to resolve props.conf regex error "syntax error in subpattern name (missing terminator)"?

Amandeepsin
New Member

I am facing issue with regexes. Can any body help me resolving the errors below?

Checking conf files for problems...
                        Bad regex value: `(?i) document:(?P<peppol-out-file>[^ ]+)`, of param: props.conf / [peppol-outbound] / EXTRACT-peppol-out-file; why: syntax error in subpattern name (missing terminator)
                        Bad regex value: `(?i) Name:(?P<peppol-in-file>[^ ]+)`, of param: props.conf / [peppol-oxalis] / EXTRACT-peppol-in-file; why: syntax error in subpattern name (missing terminator)
                One or more regexes in your configuration are not valid. For details, please see btool.log or directly above.
Tags (3)
0 Karma

richgalloway
SplunkTrust
SplunkTrust

I think the hyphens in your field names are the problem. Try replacing them with underscores or removing them.

---
If this reply helps you, Karma would be appreciated.

Amandeepsin
New Member

But it is showing Missing Terminators.. Whats That..?

0 Karma

richgalloway
SplunkTrust
SplunkTrust

The missing terminator is either the '>' or ')' that is not found because the parser stopped at the '-' that doesn't belong there. It's a bad error message.

---
If this reply helps you, Karma would be appreciated.
0 Karma
Get Updates on the Splunk Community!

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

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