Splunk Search

Why is sorting by time reducing the number of my search results?

ulrich_track
Path Finder

I made a search over two indexes (OR connected) and five sourcetypes (OR connected), limited the time to two days and received 26,300 events. Now I pipe this to a sort _time and suddenly only 10,000 of 26,300 events match?

What is wrong here? Since when does sorting filter results?

Example:

index="index-one" OR index="index-two" sourcetype="sourcetype-one" OR sourcetype="sourcetype-two" OR sourcetype="sourcetype-three" OR sourcetype="sourcetype-four" OR sourcetype="sourcetype-five" | sort _time
Tags (4)
0 Karma
1 Solution

tom_frotscher
Builder

Hi,

sort is limited to 10000 results. Use this:

| sort limit=0 _time

or just

| sort 0 _time

Greetings

Tom

View solution in original post

tom_frotscher
Builder

Hi,

sort is limited to 10000 results. Use this:

| sort limit=0 _time

or just

| sort 0 _time

Greetings

Tom

Get Updates on the Splunk Community!

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...