Splunk Search

Getting Rex sub pattern error when using counts

Aryc090908
Explorer

 

Index=dev log-severity=INFO app name=abcd | rex “tv counts for indicator S = (?<Count>\d+)” | stats count by _time, Counts l table _time, counts

 

 

Getting error in Rex commandregex:syntax error in sunpattern name(missing terminator)

it worked last week and suddenly this error is showing up and checked data side ,data is there and no issues with data

please suggest

 

 

Labels (3)
0 Karma
1 Solution

richgalloway
SplunkTrust
SplunkTrust

Replace &lt; with < and &gt; with >.  Also, replace the smartquotes with normal quotation marks.

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

View solution in original post

0 Karma

richgalloway
SplunkTrust
SplunkTrust

Replace &lt; with < and &gt; with >.  Also, replace the smartquotes with normal quotation marks.

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

Aryc090908
Explorer

It’s giving error as search is waiting for input in the dashboard page

Tags (2)
0 Karma

richgalloway
SplunkTrust
SplunkTrust

One of the searches in the dashboard contains an unset token.  Give the token a value or remove it.

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

Take Your Breath Away with Splunk Risk-Based Alerting (RBA)

WATCH NOW!The Splunk Guide to Risk-Based Alerting is here to empower your SOC like never before. Join Haylee ...

SignalFlow: What? Why? How?

What is SignalFlow? Splunk Observability Cloud’s analytics engine, SignalFlow, opens up a world of in-depth ...

Federated Search for Amazon S3 | Key Use Cases to Streamline Compliance Workflows

Modern business operations are supported by data compliance. As regulations evolve, organizations must ...