Splunk Search

How to write the regular expression to extract this field from my sample events?

imthesplunker
Path Finder

Hi ,

I have like multiple events with more than 200 XADataSource. Need to get all "XADataSource" from the events by creating regex from the event.

Please find the Sample events :

Event 2:

weblogic.jdbc.extensions.PoolDisabledSQLException: weblogic.common.resourcepool.ResourceDisabledException: Pool GOMSCLMBRDCNonXADataSource is Suspended, cannot allocate resources to applications..

Event 3:

"SELECT 1 FROM DUAL" set up for pool "SOMSUSNonXADataSource" failed with exception: "java.sql.SQLRecoverableException: No more data to read from socket".>

Can anyone please me out?

0 Karma
1 Solution

sundareshr
Legend

Try this for your regex

"(?<xds>\w+XADataSource)"

View solution in original post

0 Karma

sundareshr
Legend

Try this for your regex

"(?<xds>\w+XADataSource)"
0 Karma

imthesplunker
Path Finder

Thanks. It worked out .

0 Karma
Get Updates on the Splunk Community!

Stay Connected: Your Guide to May Tech Talks, Office Hours, and Webinars!

Take a look below to explore our upcoming Community Office Hours, Tech Talks, and Webinars this month. This ...

They're back! Join the SplunkTrust and MVP at .conf24

With our highly anticipated annual conference, .conf, comes the fez-wearers you can trust! The SplunkTrust, as ...

Enterprise Security Content Update (ESCU) | New Releases

Last month, the Splunk Threat Research Team had two releases of new security content via the Enterprise ...