Splunk Search

How to insert rex expression "..." in a search from Splunk web framework?

Federica_92
Communicator

Someone know how insert a rex expression "..." in a search, using splunk framework?
search:

mvc.tokenSafe ("index=main  source=$sourcename$ File:read | rex "\[[^*](?.+)\]" | fields path | outputlookup read_rules.csv")

the " " gives me problems.
I have tried with ' ' "' "' or ." ". or "$ $"
I have no idea how to work around this.

0 Karma
1 Solution

sk314
Builder

have you tried escaping the inner quotes like so \" ?

View solution in original post

sk314
Builder

have you tried escaping the inner quotes like so \" ?

Federica_92
Communicator

Work, thank you!

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 ...