Splunk Search

extract event field

rechteklebe
Path Finder

Hello,

i would like to create a statistic about following events:

example:

[2013-xxxxx], INFO,xxxxx,user[xxxxx],sessionid[xxxxxx], the duration for "xxxxxcommand":831 ms

[2013-xxxxx], INFO,xxxxx,user[xxxxx],sessionid[xxxxxx], the duration for "xxxxxcommand":200 ms

[2013-xxxxx], INFO,xxxxx,user[xxxxx],sessionid[xxxxxx], the duration for "xxxxxcommand":100 ms

I want to have a field with the values 831,200,100..

How it is possible, how can i extract the event?

Thank you in advance!

Tags (2)
0 Karma

martin_mueller
SplunkTrust
SplunkTrust

You can use the interactive field extractor (blue button next to events), provide it with the examples 831, 200, 100 and it should be able to extract them. If not, provide more examples / counterexamples.

Alternatively you can write your own field extraction using a regular expression, something along the lines of ":(?\d+) ms".

0 Karma

rechteklebe
Path Finder

hm it is not working with the interactive field extractor.
the second one as well 😞

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 ...