Splunk Search

Splunk PCRE - Can I use flags?

msarro
Builder

Hey everyone, this is hopefully a simple question. When we are doing extractions at search time with transforms.conf, can we use flags? For instance, some of our sources have a headerline which we will extract at search time, but the last item on the line is the start of a key value pair which can continue on for N lines. So, using the /<MYREGEXHERE/s would be really useful.

Tags (2)
0 Karma

dshpritz
SplunkTrust
SplunkTrust

Yes, you can use flags, using syntax like:
http://www.regular-expressions.info/modifiers.html

For example "(?i)Msarro" would match your nick, as it would be case insensitive.

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