Investigation limits
Daily limits control how many investigations Elastic nightshift starts each day, so a noisy alert rule can't start hundreds of investigations or run up your token cost. Two kinds of limits work together: deployment-wide run limits on the Settings page, and a daily trigger limit on each automation.
The following table lists each limit, its default, what it applies to, and where to change it:
| Limit | Default | Applies to | Where to change it |
|---|---|---|---|
| Automatic investigations daily limit | 5 | All automations combined, deployment-wide | Settings → Investigations |
| Manual investigations daily limit | 5 | Investigations that people start, deployment-wide | Settings → Investigations |
| All investigations daily limit | 10 | Automatic and manual together, deployment-wide | Settings → Investigations |
| Daily trigger limit | 20 when you create an automation, up to 50 | One automation | The automation's settings |
| Investigation timeout | 60 minutes | Each investigation | Can't be changed |
| Rounds at a time | 1 | Each investigation | Can't be changed |
All daily limits count investigation starts, not tokens or cost, and reset at midnight UTC. For what an investigation costs, refer to Cost and models.
Before Elastic nightshift opens an investigation, it checks the limits in this order:
- Follow-ups always run. If the alert or question belongs to an open investigation, it's added to that investigation. Follow-ups never count against a limit.
- The automation's own limit comes first. For an automation, Elastic nightshift checks its daily trigger limit. Starts from people skip this check.
- Then the deployment-wide limits. Elastic nightshift checks the automatic or manual limit, and the limit for all investigations.
- If a limit is reached, nothing starts. The start is skipped or refused, and the counts don't change.
The run limits apply to the whole deployment, across all spaces. Each one counts a different kind of start:
- Automatic investigations daily limit: Investigations that automations start, all automations combined.
- Manual investigations daily limit: Investigations that people start: from the home page, with Investigate on an alert or a significant event, or with the API or the CLI. Run on an automation also counts toward this limit, as does each
@Elasticmention that opens a new conversation in Slack, even though a mention doesn't start an investigation. - All investigations daily limit: Automatic and manual investigations together. It can be lower than the other two added up, so you can cap the total while letting either kind use most of it.
Follow-up mentions in a Slack thread, and replies in an investigation's thread that run the investigation again, don't count toward any limit.
To change the limits, you need the privileges listed in Grant access.
- On the Elastic nightshift home page, open the menu and select Settings.
- Select the Investigations tab.
- In Run limits, check that Enforce daily limits is on. It's on by default.
- Enter a value for each limit. Each field shows how many investigations started today.
- Select Save changes.
To remove a single limit, clear its field. It then shows No limit. To stop enforcing all three, turn off Enforce daily limits. Without limits, nothing caps how many investigations, and how many tokens, a noisy rule can use.
For the other settings on this tab, refer to Settings and limits.
Investigations of that kind don't start until the limit resets at midnight UTC. Everything else keeps working:
- Investigations that already started keep running.
- Follow-ups on open investigations, such as another alert or a question in chat, are never blocked.
- You can still read investigations and chat about them.
How you find out depends on where the start came from:
- An automation: The run appears as Skipped in the automation's Run history, with the reason. The Automations page shows a message at the top, with Open settings.
- An automation that posts to Slack: Elastic nightshift also posts a notice in Slack. The notice names the limit that was reached, the automation's own Daily trigger limit or a deployment-wide limit, and says that new investigations resume at 00:00 UTC or when an admin raises the limit. If a Slack message started the run, the notice replies in that message's thread. Otherwise, it's a new message in each channel where the automation posts its results. Elastic nightshift posts each notice once per channel, limit, and UTC day, so later skipped runs that day post nothing more.
- A person, in Kibana: The start is refused, with a message that names the limit that was reached. Run on an automation is turned off, and its tooltip names the limit.
- A Slack mention: The mention is refused. Elastic nightshift replies in the thread with the limit that was reached, manual or all investigations, and that an admin can raise it in the Elastic nightshift settings.
Each automation also has its own Daily trigger limit: 20 by default, up to 50, reset at midnight UTC. Use it to keep one noisy automation from using the whole deployment-wide limit. Run on an automation doesn't count against it. Refer to Daily trigger limit.
- Timeout: An investigation usually finishes within five minutes. It stops after 60 minutes. Hypotheses that were still being tested show Unresolved in the hypothesis tree.
- One round at a time: Each investigation runs one round at a time. A follow-up, such as another alert or a chat question, waits until the current round ends.
A skipped run tells you which limit stopped it. If the automation posts to Slack, the limit notice in the channel or thread names it too. To find the reason in Kibana, open the automation on the Automations page and select the Run history tab. Then select the skipped run.
| Reason | Limit that stopped it | How to raise it |
|---|---|---|
| Daily trigger limit of N reached | The automation's own limit. | Open the automation, select Edit, and raise its Daily trigger limit. Or narrow its trigger to fewer rules. |
| Deployment-wide investigation limit reached | The automatic or all-investigations limit. | Raise it on the Settings page, on the Investigations tab. Refer to Deployment-wide run limits. |
| Alert recovered with no open investigations to link it to | None. | Nothing to raise. The alert recovered before there was anything to follow up on. |
Before you raise a limit, check whether the investigations are worth it. If one rule starts many similar investigations, narrow the automation's trigger instead. Higher limits mean more investigations and more token cost. Refer to Cost and models.
- Cost and models: Learn what investigations cost and how to monitor it.
- Settings and limits: Find every other setting for investigations and detection.
- Automations: Set a daily trigger limit on each automation.
- Limitations: Check the current Tech Preview limitations.