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!

Data Management Digest – November 2025

  Welcome to the inaugural edition of Data Management Digest! As your trusted partner in data innovation, the ...

Splunk Mobile: Your Brand-New Home Screen

Meet Your New Mobile Hub  Hello Splunk Community!  Staying connected to your data—no matter where you are—is ...

Introducing Value Insights (Beta): Understand the Business Impact your organization ...

Real progress on your strategic priorities starts with knowing the business outcomes your teams are delivering ...