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!

Join Us for Splunk University and Get Your Bootcamp Game On!

If you know, you know! Splunk University is the vibe this summer so register today for bootcamps galore ...

.conf24 | Learning Tracks for Security, Observability, Platform, and Developers!

.conf24 is taking place at The Venetian in Las Vegas from June 11 - 14. Continue reading to learn about the ...

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...