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!

What's new in Splunk Cloud Platform 9.1.2312?

Hi Splunky people! We are excited to share the newest updates in Splunk Cloud Platform 9.1.2312! Analysts can ...

What’s New in Splunk Security Essentials 3.8.0?

Splunk Security Essentials (SSE) is an app that can amplify the power of your existing Splunk Cloud Platform, ...

Let’s Get You Certified – Vegas-Style at .conf24

Are you ready to level up your Splunk game? Then, let’s get you certified live at .conf24 – our annual user ...