Splunk Search

Need Help in extracting the field

AL3Z
Builder

Hi all,

help me extracting the field from the below two events
System.Exception: Assertion violated: stream.ReadByteInto(bufferStream) == 0x03
System.Exception: An error was encountered while attempt to fetch proxy credentials for user 'xyz

 

system_exception=Assertion violated: stream.ReadByteInto

                                     An error was encountered while attempt to fetch proxy credentials for user

thanks

Labels (3)
0 Karma

scelikok
SplunkTrust
SplunkTrust

Hi @AL3Z ,

Please try below;

| rex field=_raw "System\.Exception:\s+(?<system_exception>[^\(\']+)"
If this reply helps you an upvote and "Accept as Solution" is appreciated.

AL3Z
Builder

Hi @scelikok ,

Can you pls explain this part I didnt understand  [^\(\']+)

0 Karma

isoutamo
SplunkTrust
SplunkTrust
Hi
I match all other characters except ( and ' and there must be at least one or more those with any order and combination.
You can test these e.g. regex101.com.
There is also descriptions what all those anchors etc. are/meaning.
r. Ismo
Get Updates on the Splunk Community!

Get the T-shirt to Prove You Survived Splunk University Bootcamp

As if Splunk University, in Las Vegas, in-person, with three days of bootcamps and labs weren’t enough, now ...

Introducing the Splunk Community Dashboard Challenge!

Welcome to Splunk Community Dashboard Challenge! This is your chance to showcase your skills in creating ...

Wondering How to Build Resiliency in the Cloud?

IT leaders are choosing Splunk Cloud as an ideal cloud transformation platform to drive business resilience,  ...