Splunk Search

rex extracr mq errors

indeed_2000
Motivator

Hi

what is the rex for mq error code 

here is the log:

2021-10-08 06:52:12,785 ERROR TOPIC-00000 [Utility] MQJCA1011: Failed to allocate a JMS connection.

 

error code=MQJCA1011

error description=Failed to allocate a JMS connection

 

Thanks,

Labels (4)
0 Karma

richgalloway
SplunkTrust
SplunkTrust

Here's one way to extract those fields..

| rex "\]\s(?<error_code>\w+):\s(?<error_description>.*)"
---
If this reply helps you, Karma would be appreciated.
0 Karma
Get Updates on the Splunk Community!

Enterprise Security Content Update (ESCU) | New Releases

In January, the Splunk Threat Research Team had one release of new security content via the Splunk ES Content ...

Expert Tips from Splunk Professional Services, Ensuring Compliance, and More New ...

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...

Observability Release Update: AI Assistant, AppD + Observability Cloud Integrations & ...

This month’s releases across the Splunk Observability portfolio deliver earlier detection and faster ...