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!

Webinar Recap | Revolutionizing IT Operations: The Transformative Power of AI and ML ...

The Transformative Power of AI and ML in Enhancing Observability   In the realm of IT operations, the ...

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...