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!

Automatic Discovery Part 1: What is Automatic Discovery in Splunk Observability Cloud ...

If you’ve ever deployed a new database cluster, spun up a caching layer, or added a load balancer, you know it ...

Real-Time Fraud Detection: How Splunk Dashboards Protect Financial Institutions

Financial fraud isn't slowing down. If anything, it's getting more sophisticated. Account takeovers, credit ...

Splunk + ThousandEyes: Correlate frontend, app, and network data to troubleshoot ...

 Are you tired of troubleshooting delays caused by siloed frontend, application, and network data? We've got a ...