Splunk Search

splunk query drops off results after query has finished

imosquera
Explorer

I had a query that was working perfectly until recently where it started cutting off the last 4 days of data just for one grouping for the "Live" category. The odd thing is it only disapeers the results right before the query has completed otherwise it computes the results almost all the way to the end.

as query begins:
http://cl.ly/image/3a27251m0C0w

right before completion:
http://cl.ly/image/2j3b360c3C3u

here is the query:
* search_name="EXEC: New Users By Label (daily) (summary index)" index="summary" | stats count(value_user_device_udid) as new_users by _time, label | streamstats sum(new_users) as total_users by _time,label | eval live=if(total_users >= 100, "Live", "Pending") | stats values(label) as label_values count as daily_count by _time, live | streamstats dc(label_values) as total_apps by live.

I've doubled the limits for the following in limits.conf:

[searchresults]
maxresultrows = 100000

max_stream_window = 30000

[stats]
maxresultrows = 100000

Tags (2)
0 Karma
1 Solution

imosquera
Explorer

Turns out I didn't actually save my limits.conf when I changed the following config:

[stats]
maxresultrows = 100000

turns out doubling the stats resultrows worked and now I get all my entire results set.

View solution in original post

0 Karma

imosquera
Explorer

Turns out I didn't actually save my limits.conf when I changed the following config:

[stats]
maxresultrows = 100000

turns out doubling the stats resultrows worked and now I get all my entire results set.

0 Karma
Get Updates on the Splunk Community!

Splunk Observability for AI

Don’t miss out on an exciting Tech Talk on Splunk Observability for AI!Discover how Splunk’s agentic AI ...

Splunk Enterprise Security 8.x: The Essential Upgrade for Threat Detection, ...

Watch On Demand the Tech Talk on November 6 at 11AM PT, and empower your SOC to reach new heights! Duration: ...

Splunk Observability as Code: From Zero to Dashboard

For the details on what Self-Service Observability and Observability as Code is, we have some awesome content ...