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!

Exporting Splunk Apps

Join us on Monday, October 21 at 11 am PT | 2 pm ET!With the app export functionality, app developers and ...

Cisco Use Cases, ITSI Best Practices, and More New Articles from Splunk Lantern

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...

Build Your First SPL2 App!

Watch the recording now!.Do you want to SPL™, too? SPL2, Splunk's next-generation data search and preparation ...