Skip to content

Scheduled Searches: Subquery optimization #5629

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 7 commits into from
Jul 31, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions blog-service/2025-07-28-alerts.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
---
title: Time range limits for subqueries in scheduled searches (Alerts)
image: https://help.sumologic.com/img/reuse/rss-image.jpg
keywords:
- alerts
- scheduled searches
- subqueries
hide_table_of_contents: true
---

We've introduced time range limits for subqueries in scheduled searches. This change helps you prevent long-running, inefficient queries, especially those impacting system stability and that drive up costs. While maintaining flexibility, these optimizations protect system health and reduce operational overhead.

Key benefits of this enhancements include:

- Improved query performance and responsiveness.
- Encourage efficient search practices.
- Support sustainable resource usage.

[Learn more](/docs/alerts/scheduled-searches/schedule-search/#step-3-time-range).
4 changes: 4 additions & 0 deletions docs/alerts/scheduled-searches/schedule-search.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,10 @@ The [time range](../../search/get-started-with-search/search-basics/time-range-e
This setting is different than the Time Range option configured for the Saved Search. The first time range is only used when you run the Saved Search from the Library. This Time Range applies to your Scheduled Search.
:::

:::note
The time range limitations below apply to both parent queries and subqueries in your scheduled search.
:::

Alternately, type a time range; for example, -15m to run the search against data generated in the past 15 minutes. A time range outside the maximum allowed range for a given frequency is not allowed and presents the message like this: `Invalid query. Max allowed time range for 15 minutes frequency is 1 day`.

The maximum allowed time range for different Scheduled Search frequencies is as below:
Expand Down