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!

Introducing a Smarter Way to Discover Apps on Splunkbase

We’re excited to announce the launch of a foundational enhancement to Splunkbase: App Tiering. Because we’ve ...

How to Send Splunk Observability Alerts to Webex teams in Minutes

As a Developer Evangelist at Splunk, my team and I are constantly tinkering with technology to explore its ...

.conf25 Registration is OPEN!

Ready. Set. Splunk! Your favorite Splunk user event is back and better than ever. Get ready for more technical ...