Splunk Search

help regex

jip31
Motivator

hello
in a log file i want to extract every tetx which starts with EU\SH but i dont succeed
could you help me please??

Tags (1)
0 Karma
1 Solution

493669
Super Champion

Could you please provide raw event to understand better.
Any ways you can use |"OR" between EU and SH in regex

...|rex   "EU|SH(?<string>\w+)"

View solution in original post

0 Karma

493669
Super Champion

Could you please provide raw event to understand better.
Any ways you can use |"OR" between EU and SH in regex

...|rex   "EU|SH(?<string>\w+)"
0 Karma

jip31
Motivator

perfect it works thanks

0 Karma

niketn
Legend

@jip31 please accept the answer if your issue is resolved.

@493669, please use the code button 101010, while posting code so that special characters do not escape on Splunk Answers.

____________________________________________
| makeresults | eval message= "Happy Splunking!!!"
0 Karma
Get Updates on the Splunk Community!

Enterprise Security Content Update (ESCU) | New Releases

In December, the Splunk Threat Research Team had 1 release of new security content via the Enterprise Security ...

Why am I not seeing the finding in Splunk Enterprise Security Analyst Queue?

(This is the first of a series of 2 blogs). Splunk Enterprise Security is a fantastic tool that offers robust ...

Index This | What are the 12 Days of Splunk-mas?

December 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...