﻿---
title: Investigate in Slack
description: Bring Elastic nightshift into your Slack channels. Ask it questions in a thread, read investigation results where your team already talks, and follow up in the same thread.
url: https://www.elastic.co/elastic/docs-builder/docs/5066/solutions/observability/nightshift/use-cases/investigate-in-slack
products:
  - Elastic Cloud Serverless
  - Elastic Documentation
  - Elastic Observability
applies_to:
  - Serverless Observability projects: Preview
---

# 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.

## Before you begin

- An admin has [enabled Elastic nightshift](/elastic/docs-builder/docs/5066/solutions/observability/nightshift/get-started#nightshift-get-started-enable).
- An admin has connected your Slack workspace and the channel that you want to use. Refer to [Connect a Slack channel](#nightshift-uc-slack-connect).
- To start automations, the channel must be public. In a private channel, you can mention `@Elastic` and 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](/elastic/docs-builder/docs/5066/solutions/observability/nightshift/slack-app#nightshift-slack-app-private).


## Example: The on-call channel

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](/elastic/docs-builder/docs/5066/solutions/observability/nightshift/use-cases/external-alerts#nightshift-uc-ext-slack).
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.

## Connect a Slack channel

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](/elastic/docs-builder/docs/5066/solutions/observability/nightshift/investigation/set-up#nightshift-set-up-slack).

## Ask a question in a thread

1. In a connected channel, start a thread, or open the thread that you want to ask about.
2. Mention `@Elastic` and 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](https://www.elastic.co/elastic/docs-builder/docs/5066/solutions/observability/nightshift/use-cases/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](https://www.elastic.co/elastic/docs-builder/docs/5066/solutions/observability/nightshift/investigation/limits).

## Get automation results in a thread

To get results in Slack automatically, set up an automation with a **Post in Slack** notification. Refer to [Automatically investigate your alerts](https://www.elastic.co/elastic/docs-builder/docs/5066/solutions/observability/nightshift/use-cases/auto-investigate-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.

## Discuss an investigation in its thread

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](https://www.elastic.co/elastic/docs-builder/docs/5066/solutions/observability/nightshift/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.

## What you can do in Slack versus Kibana

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](/elastic/docs-builder/docs/5066/solutions/observability/nightshift/known-issues#nightshift-known-issues-slack).

## Next steps

- [Automatically investigate your alerts](https://www.elastic.co/elastic/docs-builder/docs/5066/solutions/observability/nightshift/use-cases/auto-investigate-alerts): Post investigation results to this channel for every matching alert.
- [Investigate anything](https://www.elastic.co/elastic/docs-builder/docs/5066/solutions/observability/nightshift/use-cases/investigate-anything): Read the full results, check the hypothesis tree, and act on proposed actions in Kibana.
- [Connect your data and tools](/elastic/docs-builder/docs/5066/solutions/observability/nightshift/investigation/set-up#nightshift-set-up-slack): Manage the Slack workspace, channels, and other connectors.