Splunk Enterprise

help on results blocked to 10000

jip31
Motivator

hello

The search below works fine except that the onlinecount fields is blocked to 10000

 

`OnOff` 
| stats latest(_time) as _time by host 
| eval DiffInSeconds = (now() - _time) 
| eval DiffInMinutes=DiffInSeconds/60 
| eval Status=if(DiffInSeconds<3601, "Online", "Offline") 
| eval EventCreatedTime=strftime(_time,"%d-%b-%Y %H:%M:%S %p %Z" ) 
| table host EventCreatedTime DiffInMinutes Status 
| sort -EventCreatedTime 
| eval Code = if(like(Status,"Online"), "Online", "Offline") 
| lookup host_OnOff.csv HOSTNAME as host output SITE DEPARTMENT RESPONSIBLE_USER 
| stats dc(host) AS OnlineCount by Code 
| where Code = "Online" 
| appendcols 
    [| inputlookup host_OnOff.csv 
    | rename HOSTNAME as host 
    | search SITE=*
    | search RESPONSIBLE_USER=*
    | stats dc(host) as NbIndHost] 
| fields OnlineCount NbIndHost 
| eval OnlineCount = if(OnlineCount> 0, tostring(OnlineCount), "") + " / " + NbIndHost + " machines "

 

host_OnOff.csv is updated automatically from the scheduled search below :

| inputlookup fo_all 
| table HOSTNAME SITE CATEGORY RESPONSIBLE_USER DEPARTMENT 
| outputlookup host_OnOff.csv

how to avoid this please??

Labels (1)
Tags (1)
0 Karma
1 Solution

thambisetty
SplunkTrust
SplunkTrust

The sort will limit number of results to 10000 by default if you don't specify 0. check more info of sort here

 | sort -EventCreatedTime 

————————————
If this helps, give a like below.

View solution in original post

0 Karma

thambisetty
SplunkTrust
SplunkTrust

The sort will limit number of results to 10000 by default if you don't specify 0. check more info of sort here

 | sort -EventCreatedTime 

————————————
If this helps, give a like below.
0 Karma
Get Updates on the Splunk Community!

Splunk Enterprise Security 8.0.2 Availability: On cloud and On-premise!

A few months ago, we released Splunk Enterprise Security 8.0 for our cloud customers. Today, we are excited to ...

Logs to Metrics

Logs and Metrics Logs are generally unstructured text or structured events emitted by applications and written ...

Developer Spotlight with Paul Stout

Welcome to our very first developer spotlight release series where we'll feature some awesome Splunk ...