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!

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

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...