Investigate in Slack
Ask Elastic nightshift for help without leaving Slack. Mention @Elastic in a thread, and Elastic nightshift answers your question there. When an automation investigates an alert, the findings land in the channel, and anyone in the thread can ask follow-up questions.
- An admin has enabled Elastic nightshift.
- An admin has connected your Slack workspace and the channel that you want to use. Refer to Connect a Slack channel.
- To start automations, the channel must be public. In a private channel, you can mention
@Elasticand get answers, but messages there can't start automations. Automations can still post results to a connected private channel: enter its channel ID or link, because private channels aren't suggested. Private channels also need private channel access. Refer to Private channels.
Your team's alerts go to the #ticketing-oncall Slack channel, where an automation with the New message in channel trigger watches for messages from your alerting app. At 02:10 UTC, an alert says that inventory-api latency is above its threshold. Because the alert matches the automation's trigger, Elastic nightshift starts investigating a minute later. It replies in the alert's thread that it's investigating, and a few minutes later updates that reply with the impact, the conclusion, and the hypotheses. To set up an automation, refer to Investigate alerts from your other tools.
The on-call engineer reads the reply and asks in the thread: "@Elastic is ticket-issuer affected too?" Elastic nightshift continues the same investigation and answers in the thread.
An admin connects the Slack workspace once, then each channel, on Settings → General. @Elastic answers only in connected channels. In other channels, it replies with how to connect the channel. For the steps, refer to Set up Slack.
- In a connected channel, start a thread, or open the thread that you want to ask about.
- Mention
@Elasticand ask your question. Be specific in your questions. Include the service, the symptom, and the time window. For example: "@Elastic why did checkout errors spike between 14:00 and 14:20 UTC?"
Elastic nightshift shows its progress in the thread and replies there with the answer, with a View in Kibana link to the conversation. A mention answers a question; it doesn't start an investigation. Investigations start from automations, or when you start one in Kibana. Refer to Investigate anything.
A mention that opens a new conversation counts toward the Manual investigations daily limit and the daily limit for all investigations, even though it doesn't start an investigation. Follow-up mentions in the same thread don't count. Refer to Investigation limits.
To get results in Slack automatically, set up an automation with a Post in Slack notification. Refer to Automatically investigate your alerts.
When the automation runs, Elastic nightshift posts a message when the investigation starts. When the investigation finishes or fails, Elastic nightshift updates that message with the results. The message shows:
- What happened: A summary of the problem.
- Impact: What the problem affects and how badly.
- Conclusion: The most likely cause and the evidence for it.
- Investigation details: A collapsed section with Hypotheses, up to three confirmed hypotheses with their confidence, or the leading open hypothesis if none is confirmed, and Proposed actions.
If the investigation fails or times out, the message says why under What went wrong instead.
If your alerts already arrive in Slack from another app, an automation can watch for those messages and reply in the alert's thread instead.
You don't need to mention @Elastic for Elastic nightshift to use what your team says in an investigation's thread. When someone replies there without a mention, Elastic nightshift adds the reply to the investigation as context and runs the investigation again in the same conversation. Every reply from a person starts a run, even one that adds nothing new, such as "thanks". Runs queue one at a time. Elastic nightshift doesn't answer the reply, but when the run finishes, it updates the investigation's status message in the thread with any new findings. To ask a question and get an answer, mention @Elastic.
These runs don't count toward the daily limits, but each one uses model tokens. Refer to Investigation limits.
This works in public channels only, because messages in private channels never reach your project unless they mention @Elastic. In Kibana, each reply appears in the investigation's chat, with the Slack member ID of its author in the message text.
Use Slack to ask questions, follow up on investigations that automations post, and read the impact, conclusion, and hypotheses. To explore the hypothesis tree, mark proposed actions as applied or declined, or close, reopen, or assign an investigation, open it in Kibana. If a conversation started in Slack, ask follow-up questions in the thread, because its chat in Kibana is read-only. Refer to Limitations.
- Automatically investigate your alerts: Post investigation results to this channel for every matching alert.
- Investigate anything: Read the full results, check the hypothesis tree, and act on proposed actions in Kibana.
- Connect your data and tools: Manage the Slack workspace, channels, and other connectors.