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!

Introducing the 2024 SplunkTrust!

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

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...