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!

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...