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!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...