Splunk Search

regex help

desi-indian
Path Finder

I have the following regex which I am using search time extraction..this returns the field I want but I need to tweak it to show/select the filed only If its a "alphabet" i.e It shld omit /Not match number field

(?i)^(?:[^]]*]){5}\s+(?P[^ ]+)

ex :

As a part of the search extraction ..right now I am getting

ABC
222

I need it to match /return only "ABC" not 222

Thanks for any Help!

Tags (1)
0 Karma

imrago
Contributor
(?i)^(?:[^]]*]){5}s+(?P<fieldname>[a-zA-Z]+)

desi-indian
Path Finder

Actually tried that (After reading http://forums.asp.net/t/1285485.aspx/1 )but some how Its giving only the numbers ..i.e what I want to eliminate which did not make sense as Its supposed to return only alphabets ... I tried negation "!" too i.e something like [^!A-Za-z] but it did not give me what I want .

0 Karma
Get Updates on the Splunk Community!

Join Us for Splunk University and Get Your Bootcamp Game On!

If you know, you know! Splunk University is the vibe this summer so register today for bootcamps galore ...

.conf24 | Learning Tracks for Security, Observability, Platform, and Developers!

.conf24 is taking place at The Venetian in Las Vegas from June 11 - 14. Continue reading to learn about the ...

Announcing Scheduled Export GA for Dashboard Studio

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