Splunk Search

How do I get rid of double quotes for dashboard table

mcgeeaw
Engager

I have a log message that contains white space so it is logged with double quotes:
reason="enter reason here"

The problem I have is that some are being entered with double quotes:
reason=" "enter reason here""

When I make a dashboard table view the second reason just shows as blank. How do I get this table to show the text inside of the outer quotes?

0 Karma

grijhwani
Motivator

Ideally, you need to sanitise your incoming data at the point of production, rather than attempting to get Splunk to unravel its inconsistencies.

Splunk is (perfectly reasonably) interpreting and recording reason=" " as being a field consisting of one space, at index time. When called upon, later, to regurgitate the value of that field that is all it produces. The fact that your data contains multiples of the same delimiter coupled with the inconsistency means it will be very difficult to frame a regex to filter it correctly. It would help if we could see a sample of a source log, to see the "reason" field in the context of its surrounding data, and you could then provide for it in your indexing configurations.

0 Karma
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.

Can’t make it to .conf25? Join us online!

Get Updates on the Splunk Community!

Community Content Calendar, September edition

Welcome to another insightful post from our Community Content Calendar! We're thrilled to continue bringing ...

Splunkbase Unveils New App Listing Management Public Preview

Splunkbase Unveils New App Listing Management Public PreviewWe're thrilled to announce the public preview of ...

Leveraging Automated Threat Analysis Across the Splunk Ecosystem

Are you leveraging automation to its fullest potential in your threat detection strategy?Our upcoming Security ...