Dashboards & Visualizations

Remove \ at the end of field values

marco_massari11
Communicator

Hi,

I have some syslog logs and for a field those possible values:

myfield=sjhfshgfjwes\

myfield=abah\

myfield=dshaese\

 

I have a query tho show the result in a column chart:

index=myindex site=* myfield=*

| chart count by site myfield

 

When I click on a bar, I have another dashboard that shows some informations for the specific myfield, but I have an error  "Unbalanced quotes", I think for the final \. How can I remove \ at the end of the field values?

 

Thank you in advance

Labels (5)
0 Karma
1 Solution

richgalloway
SplunkTrust
SplunkTrust

Try this.

... | eval myfield=rtrim(myfield,"\\")
---
If this reply helps you, Karma would be appreciated.

View solution in original post

richgalloway
SplunkTrust
SplunkTrust

Try this.

... | eval myfield=rtrim(myfield,"\\")
---
If this reply helps you, Karma would be appreciated.
Get Updates on the Splunk Community!

Automatic Discovery Part 1: What is Automatic Discovery in Splunk Observability Cloud ...

If you’ve ever deployed a new database cluster, spun up a caching layer, or added a load balancer, you know it ...

Real-Time Fraud Detection: How Splunk Dashboards Protect Financial Institutions

Financial fraud isn't slowing down. If anything, it's getting more sophisticated. Account takeovers, credit ...

Splunk + ThousandEyes: Correlate frontend, app, and network data to troubleshoot ...

 Are you tired of troubleshooting delays caused by siloed frontend, application, and network data? We've got a ...