Getting Data In

How to remove double quotes from outputlookup csv file

mvaradarajam
Path Finder

How to remove double quotes from outputlookup csv file

Tags (2)
0 Karma

MuS
Legend

Hi mvaradarajam,

you cannot remove double quotes from output lookup csv file.
Splunk will put them around any values containing any non alphanumeric character. See this answer for more details http://answers.splunk.com/answers/114632/when-does-splunk-add-double-quotation-in-outputcsv.html

Anyhow, why is this a problem to you?
Can't you simply use something like this on the lookup fields:

... | head 1 | eval foo="\"quotes\"" | eval boo=trim(foo, "\"") | table foo boo

cheers, MuS

0 Karma
Get Updates on the Splunk Community!

Dashboards: Hiding charts while search is being executed and other uses for tokens

There are a couple of features of SimpleXML / Classic dashboards that can be used to enhance the user ...

Splunk Observability Cloud's AI Assistant in Action Series: Explaining Metrics and ...

This is the fourth post in the Splunk Observability Cloud’s AI Assistant in Action series that digs into how ...

Brains, Bytes, and Boston: Learn from the Best at .conf25

When you think of Boston, you might picture colonial charm, world-class universities, or even the crack of a ...