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!

Join Us for Splunk University and Get Your Bootcamp Game On!

If you know, you know! Splunk University is the vibe this summer so register today for bootcamps galore ...

.conf24 | Learning Tracks for Security, Observability, Platform, and Developers!

.conf24 is taking place at The Venetian in Las Vegas from June 11 - 14. Continue reading to learn about the ...

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...