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!

Index This | Why did the turkey cross the road?

November 2025 Edition  Hayyy Splunk Education Enthusiasts and the Eternally Curious!   We’re back with this ...

Enter the Agentic Era with Splunk AI Assistant for SPL 1.4

  &#x1f680; Your data just got a serious AI upgrade — are you ready? Say hello to the Agentic Era with the ...

Feel the Splunk Love: Real Stories from Real Customers

Hello Splunk Community,    What’s the best part of hearing how our customers use Splunk? Easy: the positive ...