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!

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

Take a look below to explore our upcoming Community Office Hours, Tech Talks, and Webinars this month. This ...

They're back! Join the SplunkTrust and MVP at .conf24

With our highly anticipated annual conference, .conf, comes the fez-wearers you can trust! The SplunkTrust, as ...

Enterprise Security Content Update (ESCU) | New Releases

Last month, the Splunk Threat Research Team had two releases of new security content via the Enterprise ...