Splunk Search

How to search a string having multiple lines?

Bhagyashri
Explorer

I want to search a string

"call_before_download = function(){
showInstallInstructions(); }

0 Karma

jkat54
SplunkTrust
SplunkTrust
"call_before_download = function(){" AND "showInstallInstructions(); }"
0 Karma

sundareshr
Legend

Something like this should work

...| regex _raw="call_before[\s\S]+showInstallInstructions\(\); }"

If you have this extracted in a field, you should replace _raw with fieldname

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