Splunk Search

Lookup: Escaping quotation character in field value

MHibbin
Influencer

Hi SB,

Playing around with lookup tables and it appears I can not have an escaped quotation character (e.g. ") within a field in my lookup file.... Unless i'm being very "thick" today and have missed something. I thought I could trying enclosing my string in a set of '' (e.g. 'foo \"bar\"'), but this apparently doesn't work?

I've had a look at the configuration file and can not see a method for changing the quotation character for lookups.

Can anyone help here?

Cheers.

P.S Apologies if this has been asked already, not seen anything on my search... Also, apologies again if I'm just being stupid.

Tags (2)
0 Karma
1 Solution

MHibbin
Influencer

Okay, in the mean time I have work around using the \x special character and the hex equivalent of ". Using this in my example above this would be:

foo \x22bar\x22

This (if you haven't already guessed) is for regex... it's added/modified from the Splunkweb and then used in scripts in the background. This is for an odd use-case.

Any other suggestions are welcome of course.

View solution in original post

0 Karma

MHibbin
Influencer

Okay, in the mean time I have work around using the \x special character and the hex equivalent of ". Using this in my example above this would be:

foo \x22bar\x22

This (if you haven't already guessed) is for regex... it's added/modified from the Splunkweb and then used in scripts in the background. This is for an odd use-case.

Any other suggestions are welcome of course.

0 Karma
Get Updates on the Splunk Community!

Webinar Recap | Revolutionizing IT Operations: The Transformative Power of AI and ML ...

The Transformative Power of AI and ML in Enhancing Observability   In the realm of IT operations, the ...

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...