Splunk Search

regular expression

bellaed
Path Finder

Help me with a regular expression to include all the log details after a certain field,including newline tab etc something(?P.*) is not working, it is excepting new line..
Thanks
Bella

0 Karma
1 Solution

Ayn
Legend

You need to need the s regex modifier.

(?s)(?<restoflogevent>.*)

http://www.regular-expressions.info/modifiers.html

View solution in original post

Ayn
Legend

You need to need the s regex modifier.

(?s)(?<restoflogevent>.*)

http://www.regular-expressions.info/modifiers.html

bellaed
Path Finder

With Build regex expression test it is working fine, but
...|table restoflogevent
gives the same result.

0 Karma
Get Updates on the Splunk Community!

New in Observability Cloud - Explicit Bucket Histograms

Splunk introduces native support for histograms as a metric data type within Observability Cloud with Explicit ...

Updated Team Landing Page in Splunk Observability

We’re making some changes to the team landing page in Splunk Observability, based on your feedback. The ...

New! Splunk Observability Search Enhancements for Splunk APM Services/Traces and ...

Regardless of where you are in Splunk Observability, you can search for relevant APM targets including service ...