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!

Why You Can't Miss .conf25: Unleashing the Power of Agentic AI with Splunk & Cisco

The Defining Technology Movement of Our Lifetime The advent of agentic AI is arguably the defining technology ...

Deep Dive into Federated Analytics: Unlocking the Full Power of Your Security Data

In today’s complex digital landscape, security teams face increasing pressure to protect sprawling data across ...

Your summer travels continue with new course releases

Summer in the Northern hemisphere is in full swing, and is often a time to travel and explore. If your summer ...