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!

Video | Welcome Back to Smartness, Pedro

Remember Splunk Community member, Pedro Borges? If you tuned into Episode 2 of our Smartness interview series, ...

Detector Best Practices: Static Thresholds

Introduction In observability monitoring, static thresholds are used to monitor fixed, known values within ...

Expert Tips from Splunk Education, Observability in Action, Plus More New Articles on ...

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...