---
title: How to properly configure and test a Global Notification ESA output for a Script
description: "Issue\nIf you configure Global Notification for Script, you may face issues executing the script even though the ESA rule is fired.In this case, It is"
---

[Skip to content](https://mydev.netwitness.com/knowledge-base/how-to-properly-configure-and-test-a-global-notification-esa-output-for-a-script#main-content)

![NW Logo](https://mydev.netwitness.com/hs-fs/hubfs/Portal-Partner%20Program/AssetFiles/NW%20Logo%20(2).png?width=180&height=32&name=NW%20Logo%20(2).png)

- [Home](https://mydev.netwitness.com/home)
- Integrations
  
  Show submenu for 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
  
  Show submenu for Community

    - [Blogs](https://mydev.netwitness.com/netwitness-security-llc-blog)
    - Discussions
- Customers
  
  Show submenu for Customers

    - [Manage Products and Licenses](https://mydev.netwitness.com/nwportal)
    - Downloads
- Partners
  
  Show submenu for 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
  
  Show submenu for 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
  
  Show submenu for 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)

Open main navigation

Close main navigation

- [Home](https://mydev.netwitness.com/home)
- Integrations
  
  Show submenu for 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
  
  Show submenu for Community

    - [Blogs](https://mydev.netwitness.com/netwitness-security-llc-blog)
    - Discussions
- Customers
  
  Show submenu for Customers

    - [Manage Products and Licenses](https://mydev.netwitness.com/nwportal)
    - Downloads
- Partners
  
  Show submenu for 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
  
  Show submenu for 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
  
  Show submenu for 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)

 How can we help you?

- There are no suggestions because the search field is empty.

1. [NetWitness Knowledge Base](https://mydev.netwitness.com/knowledge-base?hsLang=en)
2. [Break Fix](https://mydev.netwitness.com/knowledge-base/break-fix?hsLang=en)

April 30, 2026

# How to properly configure and test a Global Notification ESA output for a Script

#### Issue

 If you configure Global Notification for Script, you may face issues executing the script even though the ESA rule is fired.   
In this case, It is hard to find the root cause because there is no error message appeared regarding this issue.   
There is a document on how to configure("Configure Script as a Notification" in the System Configuration Guide), but it is not enough to cover this topic.

#### Resolution

 To configure successfully, you need to consider followings    
1\. You can use "Default Script Template" as a template.   
2\. UI pop-up appears when you define script as shown below "Script will be saved to /opt/rsa/esa/scripts" but it is actually saved to mongo db since 11.3.   
![User-added](https://mydev.netwitness.com/hs-fs/hubfs/Knowledge%20Base%20Import/rta_0_fe4ca542-4f99-4dcc-a607-e2a248df7f6b.jpg?width=500&height=377&name=rta_0_fe4ca542-4f99-4dcc-a607-e2a248df7f6b.jpg)   
3\. You must locate the script under /tmp, otherwise script will not execute.   
4\. In case of bash shell, you can use following syntax(echo $\*) to get all ESA parameters below and this is sample script output.   
![User-added](https://mydev.netwitness.com/hs-fs/hubfs/Knowledge%20Base%20Import/rta_1_f8d00590-0fc3-447b-bf43-70e558fc3f0e.jpg?width=500&height=376&name=rta_1_f8d00590-0fc3-447b-bf43-70e558fc3f0e.jpg)

 #!/bin/bash

echo $(date) \> /tmp/bash\_test.txt   
echo $\* \>\> /tmp/bash.test.txt

exit 0 

 Example Rule Config:   
![image.png](https://mydev.netwitness.com/hubfs/Knowledge%20Base%20Import/rta_2_28b3f111-81ee-418f-9c67-8d5b3b091204.jpg)This will write the script output to /tmp/bash\_test.txt:

 \[root@NEW-NW11-NW-NODE-ZERO tmp\]# ls -lrth /tmp/ | grep bash   
-rw-r--r--. 1 netwitness netwitness 29 Apr 29 21:49 bash\_test.txt   
-rw-r--r--. 1 netwitness netwitness 1.4M Apr 29 21:49 bash.test.txt 

With the resulting output actions looking like:    
 

 \# cat /tmp/bash\_test.txt   
Tue Dec 7 08:17:57 UTC 2021   
{"id": "41a15340-bb5e-45f9-a049-e2b49f17dca3", "severity":3, "time": "2021-12-07T08:17:57Z", "module\_name" : "CS support rule for Script", "events": \[{"analysis\_session" : \["request no payload", "response no payload", "ratio high transmitted", "host not listening", "zero payload", "session size 0-5k"\], "attack\_tactic" : "exfiltration", "attack\_technique" : "data transfer size limits", "attack\_tid" : "T1030", "capture\_port" : "eth0", "com\_rsa\_netwitness\_streams\_arrival\_sequence" : 11, "com\_rsa\_netwitness\_streams\_arrival\_timestamp" : 1638865076236, "com\_rsa\_netwitness\_streams\_source\_trail" : \["admin@192.168.26.105:50005"\], "com\_rsa\_netwitness\_streams\_stream" : "c-s-support-sa-managed-stream", "community\_id" : "1:xa3WM28Id5DyRYPnARWOx/BHJ3M=", "did" : "pkthybrid", "direction" : "lateral", "esa\_time" : 1638865077237, "eth\_dst" : "00:50:56:01:36:82", "eth\_dst\_vendor" : "VMware, Inc.", "eth\_src" : "00:50:56:01:46:75", "eth\_src\_vendor" : "VMware, Inc.", "eth\_type" : 2048, "event\_source\_id" : "192.168.26.105:50005:1292845", "feed\_name" : \["investigation", "investigation", "investigation", "investigation", "investigation", "investigation"\], "inv\_category" : \["operations", "operations", "operations", "operations", "operations", "operations"\], "inv\_context" : \["event analysis", "protocol analysis", "event analysis", "protocol analysis", "event analysis", "protocol analysis", "event analysis", "protocol analysis", "event analysis", "protocol analysis", "event analysis", "protocol analysis"\], "ip\_dst" : "192.168.26.109", "ip\_proto" : 6, "ip\_src" : "192.168.26.105", "lifetime" : 0, "medium" : 1, "netname" : \["private src", "private dst"\], "packets" : 2, "payload" : 0, "payload\_req" : 0, "payload\_res" : 0, "rid" : 1292844, "service" : 0, "sessionid" : 1292845, "size" : 134, "streams" : 2, "tcp\_dstport" : 4505, "tcp\_flags" : 22, "tcp\_flags\_desc" : "syn", "tcp\_srcport" : 34108, "tcpflags" : "syn", "time" : 1638865011000}\]}

#### Product Details

**NetWitness Product Set:** NetWitness Platform   
**NetWitness Product/Service Type:** Log Decoder   
**NetWitness Version/Condition:** 11.x, 12.x   
**Platform:** CentOS 7 / Alma

#### Approval Reviewer Queue

Technical approval queue

[![Netwitness Logo](https://mydev.netwitness.com/hs-fs/hubfs/Quote%20Template%20-%20NW%20Logo/Netwitness%20Logo.png?width=158&height=42&name=Netwitness%20Logo.png "Netwitness Logo")](https://mydev.netwitness.com/?hsLang=en)

<https://www.linkedin.com/company/netwitness-platform/> <https://www.youtube.com/@netwitness>

Copyright © 2026, NetWitness LLC. All rights reserved.

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