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!

Optimize Cloud Monitoring

  TECH TALKS Optimize Cloud Monitoring Tuesday, August 13, 2024  |  11:00AM–12:00PM PST   Register to ...

What's New in Splunk Cloud Platform 9.2.2403?

Hi Splunky people! We are excited to share the newest updates in Splunk Cloud Platform 9.2.2403! Analysts can ...

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

Dive into our sizzling summer lineup for July and August Community Office Hours and Tech Talks. Scroll down to ...