Splunk Search

Remove top from results

rhum_defintel
New Member

I want to remove the top results from my final results. Essentially, removing outliers.

Tags (2)
0 Karma

altink
Builder

Hello

is there any development on this ?

remove top x rows from result

best regards
Altin

0 Karma

devin_stonecyph
Explorer

landen99
Motivator

search | sort -field1 | head 20

0 Karma

yannK
Splunk Employee
Splunk Employee

if you want to filter the highest values, you can use a where condition, or an eval to normalize it.

example :

sourcetype=mysourcetype | where myfield < 100 | timechart max(myfield) by host

sourcetype=mysourcetype | eval myfield=if(myfield<100,myfield,0) | timechart max(myfield) by host

0 Karma

landen99
Motivator

grabs bottom 20 results

0 Karma

rhum_defintel
New Member

I want to remove the results that are listed in top.

0 Karma

Ayn
Legend

For getting the most common values there's top (http://docs.splunk.com/Documentation/Splunk/latest/SearchReference/Top ).

For getting the most rare values, rare (http://docs.splunk.com/Documentation/Splunk/latest/SearchReference/Rare ).

There's also a number of statistical functions available that might be suitable for you to use: http://docs.splunk.com/Documentation/Splunk/latest/SearchReference/CommonStatsFunctions

0 Karma

rhum_defintel
New Member

I have a timechart that has spikes of data. I would like to remove those spikes so I can calculate an average.

0 Karma

Ayn
Legend

Give more details on what you want to achieve, preferrably with some sample events so we know more about how to solve the problem.

0 Karma
Get Updates on the Splunk Community!

Stay Connected: Your Guide to May Tech Talks, Office Hours, and Webinars!

Take a look below to explore our upcoming Community Office Hours, Tech Talks, and Webinars this month. This ...

They're back! Join the SplunkTrust and MVP at .conf24

With our highly anticipated annual conference, .conf, comes the fez-wearers you can trust! The SplunkTrust, as ...

Enterprise Security Content Update (ESCU) | New Releases

Last month, the Splunk Threat Research Team had two releases of new security content via the Enterprise ...