Dashboards & Visualizations

How to fetch Error message from raw logs

aditsss
Motivator

Hi Team,

Below is my raw logs:

2023-09-29 14:10:05.598 [ERROR] [Thread-3] CollateralFileGenerator - *****************************************FAILURE in sending control file collateral files to ABS Suite!!!*****************************************

I want to separate "FAILURE in sending control file collateral files to ABS Suite!!!" as my ERROR message 

Can someone guide me on this

Labels (3)
0 Karma
1 Solution

richgalloway
SplunkTrust
SplunkTrust

Use the rex command to extract the message.

| rex "\*+(?<ERROR>[^\*]+)"

 This regex takes everything between asterisks and puts it into the ERROR field.

---
If this reply helps you, Karma would be appreciated.

View solution in original post

0 Karma

richgalloway
SplunkTrust
SplunkTrust

Use the rex command to extract the message.

| rex "\*+(?<ERROR>[^\*]+)"

 This regex takes everything between asterisks and puts it into the ERROR field.

---
If this reply helps you, Karma would be appreciated.
0 Karma
Get Updates on the Splunk Community!

Fueling your curiosity with new Splunk ILT and eLearning courses

At Splunk Education, we’re driven by curiosity—both ours and yours! That’s why we’re committed to delivering ...

Splunk AI Assistant for SPL 1.1.0 | Now Personalized to Your Environment for Greater ...

Splunk AI Assistant for SPL has transformed how users interact with Splunk, making it easier than ever to ...

Unleash Unified Security and Observability with Splunk Cloud Platform

     Now Available on Microsoft AzureOn Demand Now Step boldly into the AI revolution with enhanced security ...