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!

Tech Talk Recap | Mastering Threat Hunting

Mastering Threat HuntingDive into the world of threat hunting, exploring the key differences between ...

Observability for AI Applications: Troubleshooting Latency

If you’re working with proprietary company data, you’re probably going to have a locally hosted LLM or many ...

Splunk AI Assistant for SPL vs. ChatGPT: Which One is Better?

In the age of AI, every tool promises to make our lives easier. From summarizing content to writing code, ...