Splunk Search

RegEx does not work should be simple

Michael_Schyma1
Contributor

System.Exception: Cannot create CMOperator.An existing connection was forcibly closed by the remote host at CMOperator.CMOperatorConnection..ctor(String ihost, String iuser, String ipassword, Int32 iport, String iCMName, String iLoggerConfig, Boolean iEnablePing, Boolean iPersistConnection) at ExtensionManagerDLL.Class1.ProvisionImpl.GetPbxConnection(String pbxName)

I want to grab all of the information from Cannot... and just get rid of System.Execption. I dont know why my regex wont work, RegExr says that it will.

rex"Exception:(?<Message>.+?Name)\)"
Tags (1)
0 Karma
1 Solution

hexx
Splunk Employee
Splunk Employee

Try:

... ¦ rex "System\.Exception:(?<Message>.*?Name\))"

It would also help to append an expression segment right aftert the capture group that would only match the string that follows what you want to extract.

View solution in original post

hexx
Splunk Employee
Splunk Employee

Try:

... ¦ rex "System\.Exception:(?<Message>.*?Name\))"

It would also help to append an expression segment right aftert the capture group that would only match the string that follows what you want to extract.

Get Updates on the Splunk Community!

Welcome to the Splunk Community!

(view in My Videos) We're so glad you're here! The Splunk Community is place to connect, learn, give back, and ...

Tech Talk | Elevating Digital Service Excellence: The Synergy of Splunk RUM & APM

Elevating Digital Service Excellence: The Synergy of Real User Monitoring and Application Performance ...

Adoption of RUM and APM at Splunk

    Unleash the power of Splunk Observability   Watch Now In this can't miss Tech Talk! The Splunk Growth ...