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!

.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 ...

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...