Dashboards & Visualizations

How to remove ", error message from the list

aditsss
Motivator

Hi Everyone,

I have the below query:

index=abc ns=yu CASE(ERROR)|rex field=_raw "ERROR(?<Error_Message>.*)"|eval _time = strftime(_time,"%Y-%m-%d %H:%M:%S.%3N")|dedup Error_Message|cluster showcount=t t=0.2|table Error_Message,_time, env, pod_name,ns,cluster_count|rename app_name as APP_NAME, _time as Time, env as Environment, pod_name as Pod_Name, Error_Message as Error_Message,cluster_count as Count

I am getting one error message like this:

Error_Message                               Count

",                                                              5

I dont want this ", error message to be displayed. Its clubbing total 5 messages into 1.

I dont want this ", error message to be displayed.

Can someone guide me.

when not using cluster is giving me all the 5 count but 4 messages are same(ids are different so dedup is not working).

I dont want ",  message to be displayed.

Can someone guide me on how to remove this.

 

Labels (2)
0 Karma
1 Solution

ITWhisperer
SplunkTrust
SplunkTrust
| eval Error_Message=if(Error_Message="\",",null,Error_Message)

Another possibility is to modify the rex, but without example events, it is unclear whether that would work

|rex field=_raw "ERROR(?<Error_Message>.*)\","

View solution in original post

ITWhisperer
SplunkTrust
SplunkTrust
| eval Error_Message=if(Error_Message="\",",null,Error_Message)

Another possibility is to modify the rex, but without example events, it is unclear whether that would work

|rex field=_raw "ERROR(?<Error_Message>.*)\","
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.
Get Updates on the Splunk Community!

.conf25 Global Broadcast: Don’t Miss a Moment

Hello Splunkers, .conf25 is only a click away.  Not able to make it to .conf25 in person? No worries, you can ...

Observe and Secure All Apps with Splunk

 Join Us for Our Next Tech Talk: Observe and Secure All Apps with SplunkAs organizations continue to innovate ...

What's New in Splunk Observability - August 2025

What's New We are excited to announce the latest enhancements to Splunk Observability Cloud as well as what is ...