---
title: NetWitness + Slack for realtime alerts
description: As threats evolve it's important for organizations to keep pace. As part of this trend many organizations are moving to Slack for team communicati
---

- [Home](https://mydev.netwitness.com/home)
- Integrations 
    - [Netwitness Platform Integrations](https://mydev.netwitness.com/netwitnessplatformintegrations)
    - [Third Party Integrations](https://mydev.netwitness.com/thirdpartyintegrations)
- [Knowledge Center](https://mydev.netwitness.com/knowledge-base)
- Community 
    - [Blogs](https://mydev.netwitness.com/netwitness-security-llc-blog)
    - Discussions
- Customers 
    - [Manage Products and Licenses](https://mydev.netwitness.com/nwportal)
    - Downloads
- Partners 
    - [Partner Program](https://mydev.netwitness.com/partner)
    - [Partner Resources](https://mydev.netwitness.com/partnerresources)
    - [Submit a New Deal Registration](https://mydev.netwitness.com/dealregistration)
    - [Become a Partner](https://mydev.netwitness.com/becomeapartner)
    - [Update Your Partner Locator Profile](https://www.netwitness.com/partner-locator/?utm_source=pardotnewsletter&utm_medium=email&utm_campaign=partner_march)
    - [NetWitness LinkedIn Partner Hub](https://linkedin.com/showcase/netwitnesspartners/)
- Education 
    - [Instructor Led Training Schedule](https://mydev.netwitness.com/instructorledtrainingschedule)
    - [NetWitness Training Catalog](https://mydev.netwitness.com/netwitnesstrainingcatalog)
    - [Security Awareness Training](https://mydev.netwitness.com/securityawarenesstraining)
    - [New Product Readiness](https://mydev.netwitness.com/newproductreadiness)
    - [On-Demand Virtual Labs](https://mydev.netwitness.com/ondemandvirtuallabs)
    - [Additional Training Information](https://mydev.netwitness.com/additionaltraininginformation)
    - [Frequently Asked Questions](https://mydev.netwitness.com/educationfaq)
    - [Contact NetWitness Education Team](https://mydev.netwitness.com/contact-netwitness-education-team)
- Support 
    - [Contact Support](https://mydev.netwitness.com/contact-support)
    - [Create a New Case](https://mydev.netwitness.com/create-support-case)
    - [View My Cases](https://mydev.netwitness.com/viewmycase)
    - [Product Version Life Cycle](https://mydev.netwitness.com/product-version-life-cycle)
    - [Warranty & Replacement Parts](https://mydev.netwitness.com/warranty-and-replacement-parts)
    - [Community Support Forum](https://mydev.netwitness.com/community-support-forum)
    - [Technical Support Guide](https://mydev.netwitness.com/technical-support-guide)

![search](https://21725316.fs1.hubspotusercontent-na1.net/hubfs/21725316/Ladder/Image/search.svg)

![search](https://21725316.fs1.hubspotusercontent-na1.net/hubfs/21725316/Ladder/Image/search.svg)

![search](https://21725316.fs1.hubspotusercontent-na1.net/hubfs/21725316/Ladder/Image/search.svg)

![search](https://21725316.fs1.hubspotusercontent-na1.net/hubfs/21725316/Ladder/Image/search.svg)

# NetWitness + Slack for realtime alerts

- Home
 */*- [Netwitness blogs](https://mydev.netwitness.com/netwitness-security-llc-blog)
*/*- netwitness + slack for realtime alerts

 23 Jul, 2017

**Author:** MichaelSconzo

As threats evolve it's important for organizations to keep pace. As part of this trend many organizations are moving to Slack for team communications and to help drive a more efficient operational workflow. You can use the NetWitness Suite to help drive some of the changes as well. In this post we'll look at how you can send ESA alerts from NetWitness to Slack using the 'run script' capability.

First start off by configuring [Incoming Webhooks](https://api.slack.com/incoming-webhooks) in Slack, you'll need to take note of the URL, Username and Channel that you configured your webhook for. These allow the script to communicate from NetWitness to Slack.

Next, in NetWitness, go to **Configure** -\> **ESA Rules** and select the rule you want to add Slack notifications for. Then click on **Global Notifications**, this will allow you to add the script, notification server, and template.

![pastedImage\_3.png](https://mydev.netwitness.com/hubfs/Imported_Blog_Media/26182i9201E12F488BA363.png "pastedImage_3.png")

On the **Output** tab,click the **+** sign, and select Script. Paste the following into the box, give it a name and click save.

> #!/bin/bash
> 
> webhook\_url="YOUR WEBHOOK URL GOES HERE"  
> channel="YOUR CHANNEL GOES HERE"  
> username="YOUR USERNAME GOES HERE"
> 
> text=$\*
> 
> escapedText=$(echo $text | sed 's/"/\\"/g' | sed "s/'/\\'/g" )
> 
> json="{\\"channel\\": \\"$channel\\", \\"username\\":\\"$username\\", \\"icon\_emoji\\":\\"ghost\\", \\"attachments\\":\[{\\"color\\":\\"danger\\" , \\"text\\": \\"$escapedText\\"}\]}"
> 
> /usr/bin/curl -s -d "payload=$json" "$webhook\_url"

Click the **Servers** tab. If you don't have an entry for 'Script' then, click the **+** sign and add one and click save. This allows scripts to be run off the local host (ESA server).

![pastedImage\_10.png](https://mydev.netwitness.com/hubfs/Imported_Blog_Media/26183iAAFC69BA4020CAC8.png "pastedImage_10.png")

Finally, you can use an existing template, but I created my own for simple alerting. You can do this by clicking on the **Templates** tab, then the **+** sign. Finally add the following information and click save.

![pastedImage\_13.png](https://mydev.netwitness.com/hubfs/Imported_Blog_Media/26184i4EB86E16244E1C16.png "pastedImage_13.png")

Finally, select your new values in the rule, and deploy the modified ESA Rule(s).

![pastedImage\_15.png](https://mydev.netwitness.com/hubfs/Imported_Blog_Media/26186i3ADBB4BE1BF1B991.png "pastedImage_15.png")

Now you can enjoy your new Slack integration, and get alerts into various channels.

![pastedImage\_14.png](https://mydev.netwitness.com/hubfs/Imported_Blog_Media/26185iF8187E06EBB3B07B.png "pastedImage_14.png")

 Topic:

[0 Comment](https://mydev.netwitness.com/netwitness-security-llc-blog/517766#comments-listing)

###### CATEGORIES

- All
- [Blog](https://mydev.netwitness.com/netwitness-security-llc-blog/tag/blog)

##### RECENT POST

[Netwitness Platform Integration with AWS Application Load Balancer Access logs](https://mydev.netwitness.com/netwitness-security-llc-blog/netwitnessplatformintegrationwithawsapplicationloadbalanceraccesslogs)

 23 Jul, 2024

[The Sky Is Crying: The Wake of the 19 JUL 2024 CrowdStrike Content Update for Microsoft Windows and We Should Take Away From It](https://mydev.netwitness.com/netwitness-security-llc-blog/715124)

 20 Jul, 2024

[DDoS using BotNet Use Case](https://mydev.netwitness.com/netwitness-security-llc-blog/ddosusingbotnetusecase)

 7 May, 2024

[NetWitness Platform](https://www.netwitness.com/)

[Acceptable Use Policy](https://www.netwitness.com/wp-content/uploads/Acceptable-Use-Policy-092022.pdf) [Privacy Statement](https://www.netwitness.com/wp-content/uploads/NetWitness-Privacy-Statement-07292024.pdf)

![NetWitness Logo](https://mydev.netwitness.com/hubfs/Portal-Partner%20Program/netwitness-logo-RGB-white%201.png)

[![LinkedIn](https://mydev.netwitness.com/hubfs/Portal-Partner%20Program/linkedin.png)](https://www.linkedin.com/company/netwitness-platform/) [![YouTube](https://mydev.netwitness.com/hubfs/Portal-Partner%20Program/Youtube.jpg)](https://www.youtube.com/@netwitness)

© 2026 NetWitness LLC. All rights reserved.

```json
{
  "@context" : "https://schema.org",
  "@type" : "BlogPosting",
  "author" : {
    "@type" : "Person",
    "name" : "MichaelSconzo",
    "url" : "https://mydev.netwitness.com/netwitness-security-llc-blog/author/michaelsconzo"
  },
  "dateModified" : "2026-03-20T10:30:16.020Z",
  "datePublished" : "2017-07-23T04:00:00.000Z",
  "headline" : "NetWitness + Slack for realtime alerts",
  "mainEntityOfPage" : {
    "@id" : "https://mydev.netwitness.com/netwitness-security-llc-blog/517766",
    "@type" : "WebPage"
  },
  "publisher" : {
    "@type" : "Organization",
    "logo" : {
      "@type" : "ImageObject",
      "url" : "https://mydev.netwitness.com/hubfs/netwitness-logo-CMYK.jpg"
    }
  }
}
```