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!

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...