---
title: How-to Bulk Remove sources from Event Source Management (ESM) in RSA NetWitness Platform
description: "Issue\nIf monitoring a particular event source type is no longer necessary the following procedure can be used to disable and remove the monitoring.War"
---

[Skip to content](https://mydev.netwitness.com/knowledge-base/how-to-bulk-remove-sources-from-event-source-management-esm-in-rsa-netwitness-platform#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 Bulk Remove sources from Event Source Management (ESM) in RSA NetWitness Platform

#### Issue

 If monitoring a particular event source type is no longer necessary the following procedure can be used to disable and remove the monitoring.

Warning: the "remove" commands presented below will permanently remove data from the ESM DB, specifically event sources that are currently being monitored by the SA server.  Use with great caution.

#### Resolution

 The following commands are run in an SSH session on the SA server.

1. Connect to the ESM database 10.x:
   
    mongo esm 
   
    1a. Connect to the ESM database 11.x:
   
    mongo esm -u deploy\_admin -p netwitness --authenticationDatabase admin
2. List all records, each record is a single event source and type:  
    Note: A single event source may have multiple event source types.
   
    db.eventsources.find() 
   
    Sample output:
   
    { "\_id" : "10.25.53.30-snort", "\_class" : "EsmEventSource", "attributes" : { "asoc-es-type" : "snort", "asoc-es-ip" : "10.25.53.30", "asoc-es-logDecoderUuid" : "f859c9f4-93b6-47d0-b673-136852ddfc80", "asoc-es-logCollector" : "S5-LDEC-33", "asoc-es-logCollectorUuid" : "f859c9f4-93b6-47d0-b673-136852ddfc80", "asoc-es-logDecoder" : "S5-LDEC-33" }, "searchAttributes" : { "asoc-es-type" : "SNORT", "asoc-es-ip" : NumberLong(169424158), "asoc-es-logDecoderUuid" : "F859C9F4-93B6-47D0-B673-136852DDFC80", "asoc-es-logCollector" : "S5-LDEC-33", "asoc-es-logCollectorUuid" : "F859C9F4-93B6-47D0-B673-136852DDFC80", "asoc-es-logDecoder" : "S5-LDEC-33" } }   
   { "\_id" : "10.25.53.30-unknown", "\_class" : "EsmEventSource", "attributes" : { "asoc-es-type" : "unknown", "asoc-es-ip" : "10.25.53.30", "asoc-es-logDecoderUuid" : "f859c9f4-93b6-47d0-b673-136852ddfc80", "asoc-es-logCollector" : "S5-LDEC-33", "asoc-es-logCollectorUuid" : "f859c9f4-93b6-47d0-b673-136852ddfc80", "asoc-es-logDecoder" : "S5-LDEC-33" }, "searchAttributes" : { "asoc-es-type" : "UNKNOWN", "asoc-es-ip" : NumberLong(169424158), "asoc-es-logDecoderUuid" : "F859C9F4-93B6-47D0-B673-136852DDFC80", "asoc-es-logCollector" : "S5-LDEC-33", "asoc-es-logCollectorUuid" : "F859C9F4-93B6-47D0-B673-136852DDFC80", "asoc-es-logDecoder" : "S5-LDEC-33" } }
3. List all records for a single event source and type:
   
    db.eventsources.find({"\_id" : "10.25.53.30-snort"}) 
   
    Sample output:
   
    { "\_id" : "10.25.53.30-snort", "\_class" : "EsmEventSource", "attributes" : { "asoc-es-type" : "snort", "asoc-es-ip" : "10.25.53.30", "asoc-es-logDecoderUuid" : "f859c9f4-93b6-47d0-b673-136852ddfc80", "asoc-es-logCollector" : "S5-LDEC-33", "asoc-es-logCollectorUuid" : "f859c9f4-93b6-47d0-b673-136852ddfc80", "asoc-es-logDecoder" : "S5-LDEC-33" }, "searchAttributes" : { "asoc-es-type" : "SNORT", "asoc-es-ip" : NumberLong(169424158), "asoc-es-logDecoderUuid" : "F859C9F4-93B6-47D0-B673-136852DDFC80", "asoc-es-logCollector" : "S5-LDEC-33", "asoc-es-logCollectorUuid" : "F859C9F4-93B6-47D0-B673-136852DDFC80", "asoc-es-logDecoder" : "S5-LDEC-33" } }
4. List all records for a single event source type, 'asoc-es-type' of 'snort' :
   
    db.eventsources.find({"attributes.asoc-es-type": "snort"}) 
   
    Sample output:
   
    { "\_id" : "10.25.53.30-snort", "\_class" : "EsmEventSource", "attributes" : { "asoc-es-type" : "snort", "asoc-es-ip" : "10.25.53.30", "asoc-es-logDecoderUuid" : "f859c9f4-93b6-47d0-b673-136852ddfc80", "asoc-es-logCollector" : "S5-LDEC-33", "asoc-es-logCollectorUuid" : "f859c9f4-93b6-47d0-b673-136852ddfc80", "asoc-es-logDecoder" : "S5-LDEC-33" }, "searchAttributes" : { "asoc-es-type" : "SNORT", "asoc-es-ip" : NumberLong(169424158), "asoc-es-logDecoderUuid" : "F859C9F4-93B6-47D0-B673-136852DDFC80", "asoc-es-logCollector" : "S5-LDEC-33", "asoc-es-logCollectorUuid" : "F859C9F4-93B6-47D0-B673-136852DDFC80", "asoc-es-logDecoder" : "S5-LDEC-33" } }
5. Count the number of records for a single event source type, 'asoc-es-type' of 'snort' :
   
    db.eventsources.count({"attributes.asoc-es-type": "snort"})
6. Remove records for a single event source type, 'asoc-es-type' of 'snort' :
   
    db.eventsources.remove({"attributes.asoc-es-type": "snort"})
7. Count the number of records for snort event sources to verify the remove command was successful :
   
    db.eventsources.count({"attributes.asoc-es-type": "snort"})

It's also possible to bulk remove event sources based on either the Log Decoder or Log Collector consuming the events using the following commands:

Discover the UUID of the specific LD or LC by running the following command in and SSH on the specific host 10.x:

 /etc/puppet/scripts/node\_id.py 

 Sample output 10.x:

 96562317-9414-41c5-81bd-b46bfdeb712a 

 Discover the UUID of the specific LD or LC by running the following command in and SSH on the specific host 11.x:

 cat /etc/salt/minion 

 Sample output 11.x:

 master: nw-node-zero   
hash\_type: sha256   
log\_level: warning   
log\_level\_logfile: info   
id: 857e0870-ff90-4e4c-a27f-3e38b7dce6a5 

Use the UUID obtained in the previous command in the following commands:   
Remove based on Log Decoder:

 db.eventsources.remove({"attributes.asoc-es-logDecoderUuid" : "96562317-9414-41c5-81bd-b46bfdeb712a"}) 

 Remove based on Log Collector:

 db.eventsources.remove({"attributes.asoc-es-logCollectorUuid" : "96562317-9414-41c5-81bd-b46bfdeb712a"}) 

**To extract the Range of stats between 1st to 10th DEC, 2020:**

 echo 'db.eventsources.find({"searchAttributes.asoc-es-lastSeen" : {$gte: NumberLong("1606803124000"), $lte: NumberLong("1607580724000")} }).pretty()' |mongo esm -u deploy\_admin -p netwitness --authenticationDatabase admin \> /root/esmrange.txt 

**To remove Range of stats between 1st to 10th DEC, 2020:**

 echo 'db.eventsources.remove({"searchAttributes.asoc-es-lastSeen" : {$gte: NumberLong("1606803124000"), $lte: NumberLong("1607580724000")} })' |mongo esm -u deploy\_admin -p netwitness --authenticationDatabase admin 

**To remove stats before 10th DEC, 2020:**

 echo 'db.eventsources.remove({"searchAttributes.asoc-es-lastSeen" : {$lte: NumberLong("1607580724000")} })' |mongo esm -u deploy\_admin -p netwitness --authenticationDatabase admin 

**To show correct stats in Event Sources-\>Manage page after removal:**

 echo 'db.eventsources.reIndex()' |mongo esm -u deploy\_admin -p netwitness --authenticationDatabase admin

#### Notes

 Please use  [epochconverter website](https://www.epochconverter.com/) to find Epoch time for specific date.

#### Product Details

**RSA Product Set:** Security Analytics   
**RSA Product/Service Type:** Event Source Management   
**RSA Version/Condition:** 10.6.x, 11.x   
**Platform:** CentOS   
**O/S Version:** 6, 7

#### Summary

If monitoring a particular event source type is no longer necessary the following procedure can be used to disable and remove the monitoring.

#### Approval Reviewer Queue

RSA NetWitness Suite 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.