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!

Join Us for Splunk University and Get Your Bootcamp Game On!

If you know, you know! Splunk University is the vibe this summer so register today for bootcamps galore ...

.conf24 | Learning Tracks for Security, Observability, Platform, and Developers!

.conf24 is taking place at The Venetian in Las Vegas from June 11 - 14. Continue reading to learn about the ...

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...