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!

Developer Spotlight with Paul Stout

Welcome to our very first developer spotlight release series where we'll feature some awesome Splunk ...

State of Splunk Careers 2024: Maximizing Career Outcomes and the Continued Value of ...

For the past four years, Splunk has partnered with Enterprise Strategy Group to conduct a survey that gauges ...

Data-Driven Success: Splunk & Financial Services

Splunk streamlines the process of extracting insights from large volumes of data. In this fast-paced world, ...