Dashboards & Visualizations

how to extract below fields from raw logs

aditsss
Motivator

][ERROR][pub-#32738][AssociationRemoteProcessor] Exception while running association: javax.cache.CacheException: class org.apache.ignite.IgniteInterrup

[2023-11-09T06:06:02,015][ERROR][pub-#19230][FedPledgingFlaggingRemoteProcessor] No rejection criteria found for the specified key: CO.

Hi ,

Can anyone guide me how to extract the highlighted text.

Labels (4)
0 Karma

inventsekar
SplunkTrust
SplunkTrust

Hi @aditsss ... if any reply solved your query, could you pls accept it as a solution.. 

karma points / upvotes are appreciated, thanks. 

thanks and best regards,
Sekar

PS - If this or any post helped you in any way, pls consider upvoting, thanks for reading !
0 Karma

gcusello
SplunkTrust
SplunkTrust

Hi @aditsss ,

please try this regex:

| rex ".*\]\s*(?<msg>[^:]+)"

that you can test at https://regex101.com/r/7yLHPr/1

Ciao.

Giuseppe 

inventsekar
SplunkTrust
SplunkTrust

Hi @aditsss 

Please check this:

 

| makeresults
| eval _raw="[AssociationRemoteProcessor] Exception while running association: javax"
| rex field=_raw "\]\s(?<rexField>.*)\:"
| table _raw rexField

 

this rex produces this output:

_raw rexField

[AssociationRemoteProcessor] Exception while running association: javaxException while running association
thanks and best regards,
Sekar

PS - If this or any post helped you in any way, pls consider upvoting, thanks for reading !

richgalloway
SplunkTrust
SplunkTrust

It would help to know what you've tried so far, but perhaps this will help.

| rex "] (?<field>.*?):"
---
If this reply helps you, Karma would be appreciated.
Get Updates on the Splunk Community!

Demo Day: Strengthen Your SOC with Splunk Enterprise Security 8.1

Today’s threat landscape is more complex than ever. Security operation centers (SOCs) are overwhelmed with ...

Dashboards: Hiding charts while search is being executed and other uses for tokens

There are a couple of features of SimpleXML / Classic dashboards that can be used to enhance the user ...

Splunk Observability Cloud's AI Assistant in Action Series: Explaining Metrics and ...

This is the fourth post in the Splunk Observability Cloud’s AI Assistant in Action series that digs into how ...