Splunk Search

How to display a field ending with the same alphabet

BT
Path Finder

I have a field(eventCode)  which has a code values, and few of them ends with certain alphabets , I want to extract only the eventCode which ends with E, F, V and display it separately under different fields/names(minor, major, medium). I tried with | where eventCode=*E, but this doesnot work.. Is there any other way to extract other than rex/regex. If not, can you please provide some input. 

Exmaple : eventCode=xyxbxsndsndg-5-3000-E

eventCode=aksjdjfdfvbrhgnvfmbfbc-54-3601-E

eventCode=plgkdfdcmasjenfmdklv-61-2501-F

eventCode= pojdksdjhmmmaskxjs-91-4501-V

Result : Minor                                                              Major                                                                        

xyxbxsndsndg-5-3000-E                                       plgkdfdcmasjenfmdklv-61-2501-F            

aksjdjfdfvbrhgnvfmbfbc-54-3601-E

Labels (1)
0 Karma
1 Solution

ITWhisperer
SplunkTrust
SplunkTrust
| where like(eventCode,"%E")

View solution in original post

BT
Path Finder

Works like a charm !!!! thank you :slightly_smiling_face: 

0 Karma

ITWhisperer
SplunkTrust
SplunkTrust
| where like(eventCode,"%E")
Get Updates on the Splunk Community!

See just what you’ve been missing | Observability tracks at Splunk University

Looking to sharpen your observability skills so you can better understand how to collect and analyze data from ...

Weezer at .conf25? Say it ain’t so!

Hello Splunkers, The countdown to .conf25 is on-and we've just turned up the volume! We're thrilled to ...

How SC4S Makes Suricata Logs Ingestion Simple

Network security monitoring has become increasingly critical for organizations of all sizes. Splunk has ...