Skip to content

Subscribe to notifications

Receive notifications via different channels when subscribing to a topic.

To add a subscriber, follow these steps:

  1. Go to the /admin page.
  2. Click on Subscribers.
  3. Click on ADD SUBSCRIBER.
  4. Select the USER.
  5. Choose your preferred notification channel from the following options:
  6. EMAIL
  7. THEHIVE
  8. SLACK
  9. CITADEL

Make sure to configure the necessary settings for each channel in your .env file.

The weekly report and breaking news have dedicated layouts for each channel: colored attachments in Slack, formatted HTML in Citadel, and a clean HTML version for emails. Summaries regenerated manually from the interface never send notifications.

Configure your Email notifications

To configure Email, you need the following variables, in the .env file:

# DJANGO EMAIL Configuration
SMTP_SERVER=
EMAIL_PORT=25
EMAIL_USE_TLS=False
EMAIL_USE_SSL=False
EMAIL_HOST_USER=
EMAIL_HOST_PASSWORD=
EMAIL_FROM=

Follow these steps to get the required information:

  1. Choose your email provider (example: Gmail, Outlook...)
  2. Go to the email provider’s settings and generate the SMTP configuration:
  3. For Gmail, detailed instructions can be found in Google's SMTP documentation.
  4. For Outlook, you can refer to the Outlook SMTP documentation for more information.
  5. Follow the instructions to retrieve the SMTP server, email port, and other necessary credentials.
  6. Save these values in your .env file.
  7. SMTP_SERVER
  8. EMAIL_PORT
  9. EMAIL_USE_TLS
  10. EMAIL_USE_SSL
  11. EMAIL_HOST_USER
  12. EMAIL_HOST_PASSWORD
  13. EMAIL_FROM

Now, you can restart your instance and the parameters will be taken into account:

docker compose down
docker compose up

Configure your TheHive notifications

To configure TheHive, you need the following variables, in the .env file:

# THE HIVE Setup
THE_HIVE_URL=
THE_HIVE_VERIFY_SSL=False
THE_HIVE_KEY=
# Ensure the custom field referenced here is CREATED IN THEHIVE. Otherwise, Alert exports to TheHive will be impacted
THE_HIVE_CUSTOM_FIELD=watcher-id
THE_HIVE_EMAIL_SENDER=watcher@watcher.com

Follow these steps to get the required information:

  1. Go to your TheHive instance’s API section (typically located at /account/api).
  2. Copy the API Key from this page and save it as THE_HIVE_KEY in your .env file.

  3. Also, you need to set the URL of your TheHive instance as THE_HIVE_URL in your .env file.

  4. For proper integration, Watcher uses a custom field in TheHive for its ticketing system. By default, this field is named watcher-id and should be set as THE_HIVE_CUSTOM_FIELD in your .env file.

    Note: Ensure the custom field referenced here is CREATED IN THEHIVE. Otherwise, Alert exports to TheHive will be impacted

You can modify the name of this custom field in your .env file to match your specific TheHive instance setup.

  1. The second custom field is used to track the email sender and is defined as THE_HIVE_EMAIL_SENDER. By default, this is set to watcher@watcher.com. You can update this value in your .env file as needed.

Now, you can restart your instance and the parameters will be taken into account:

docker compose down
docker compose up

Configure your Slack notifications

To configure Slack, you need the following variables, in the .env file:

# SLACK Setup
SLACK_API_TOKEN=
SLACK_CHANNEL=

Follow these steps to get the required information:

  1. Go to the Slack API page.
  2. Click on Create New App.
  3. Choose From scratch.
  4. Once your app is created, go to OAuth & Permissions.
  5. Under OAuth Scopes, ensure you add the required permission:
  6. chat:write (This allows your app to send messages to channels).
  7. On OAuth Tokens, click on Install App to install the app to your workspace.
  8. After installation, you will be provided with an OAuth Access Token. Copy this token and save it as SLACK_API_TOKEN in your .env file.
  9. Lastly, create the channel in Slack if you haven’t already and save its name as SLACK_CHANNEL in the .env file.

Now, you can restart your instance and the parameters will be taken into account:

docker compose down
docker compose up

Configure your Citadel notifications

To configure Citadel, you need the following variables, in the .env file:

# CITADEL Setup
CITADEL_API_TOKEN=
CITADEL_ROOM_ID=
CITADEL_URL=

Follow these steps to get the required information:

  1. If you don't have an account, go to this link to create one: Citadel Team Documentation.
  2. Create a New Room.
  3. Retrieve the CITADEL_ROOM_ID from the room's settings. Copy the room's link, then extract the ID after /#/room/ and add it to your .env file.
  4. Next, visit this link: Citadel Team Website to request your CITADEL_API_TOKEN. This token will allow you to send automatic notifications.
  5. For the CITADEL_URL variable, if you're using a public instance, the URL should be: https://join.citadel.team/. Otherwise, enter your customized instance URL.

Now, you can restart your instance and the parameters will be taken into account:

docker compose down
docker compose up