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!

Prove Your Splunk Prowess at .conf25—No Prereqs Required!

Your Next Big Security Credential: No Prerequisites Needed We know you’ve got the skills, and now, earning the ...

Splunk Observability Cloud's AI Assistant in Action Series: Observability as Code

This is the sixth post in the Splunk Observability Cloud’s AI Assistant in Action series that digs into how to ...

Splunk Answers Content Calendar, July Edition I

Hello Community! Welcome to another month of Community Content Calendar series! For the month of July, we will ...