---
title: How to remove Log Collector hosts through the REST api
description: "Issue\nIn the below example, we are using the file collection type and want to remove the nw_test event source:On NetWitness UI -> Admin -> Servi"
---

[Skip to content](https://mydev.netwitness.com/knowledge-base/how-to-remove-log-collector-hosts-through-the-rest-api#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 remove Log Collector hosts through the REST api

#### Issue

 In the below example, we are using the file collection type and want to remove the nw\_test event source:

On NetWitness UI -\> Admin -\> Services -\> Log collector -\>config -\>event sources -\> file , the below is the file config    
![image.png](https://mydev.netwitness.com/hubfs/Knowledge%20Base%20Import/rta_0_62c5938c-284a-41d1-8fde-0c17feda0cd0.jpg)   
This can be done from the UI as well as the Rest API as explained below

#### Tasks

 Overview: To remove event source **2k8r2-dc1.2k8r2-vcloud.local** from the **DC3** event category:

![SA](https://mydev.netwitness.com/hs-fs/hubfs/Knowledge%20Base%20Import/rta_1_cd674300-888a-4589-9643-24d6f4cf57e8.jpg?width=500&height=198&name=rta_1_cd674300-888a-4589-9643-24d6f4cf57e8.jpg)   
 

 1\.  Enter the IP address of the log collector and port 50101 in the URL field of your browser:

 ​ [http://192.168.12.120:50101](http://192.168.12.120:50101/) 

![REST](https://mydev.netwitness.com/hubfs/Knowledge%20Base%20Import/rta_2_8c1f369d-dcb2-4b8e-b20f-6b93e742ac80.jpg)

And select in this order ‘ **logcollection -\> windows -\> eventsources**’ until you arrive at the page which has the event category noted in the screenshot from the SA UI.  In this case ‘DC3’ :​

2\.  ​The arrow in the following image points to the asterisk **(\*)** next to the event category name

![Asterisk](https://mydev.netwitness.com/hs-fs/hubfs/Knowledge%20Base%20Import/rta_3_4f3f78c9-f3fc-4058-8708-ee8abfa819bb.jpg?width=500&height=258&name=rta_3_4f3f78c9-f3fc-4058-8708-ee8abfa819bb.jpg)   
 

- Click on the asterisk and it will open the following property window of the event category:

![property](https://mydev.netwitness.com/hs-fs/hubfs/Knowledge%20Base%20Import/rta_4_12620b16-271f-4620-b936-460d0f14862c.jpg?width=500&height=304&name=rta_4_12620b16-271f-4620-b936-460d0f14862c.jpg)   
 

 3\.  Select ‘ls’ from the drop-down window and click the button ‘Send’

![ls](https://mydev.netwitness.com/hs-fs/hubfs/Knowledge%20Base%20Import/rta_5_9203db5f-ca96-475b-9710-f50425d9a9a9.jpg?width=500&height=436&name=rta_5_9203db5f-ca96-475b-9710-f50425d9a9a9.jpg)   
 

 4\.  Copy the host name from the Output window:

![Copy](https://mydev.netwitness.com/hs-fs/hubfs/Knowledge%20Base%20Import/rta_6_c29b16fa-9de5-45e8-8564-d3a3297af726.jpg?width=500&height=561&name=rta_6_c29b16fa-9de5-45e8-8564-d3a3297af726.jpg)   
 

 5\.  Select ‘delete’ in the drop-down box, and enter the following parameter as noted in the screenshot for this specific host that needs to be removed: 

 name=2k8r2-dc1\_2k8r2-vcloud\_local

![Deleting](https://mydev.netwitness.com/hs-fs/hubfs/Knowledge%20Base%20Import/rta_7_9ee98e61-84c7-4278-8e7c-c14ed1e8c57b.jpg?width=500&height=327&name=rta_7_9ee98e61-84c7-4278-8e7c-c14ed1e8c57b.jpg)   
 

 6\.  If you need to remove **all** of the event sources from this event category, use the following parameter:   
name=\_ALL\_

![Removal](https://mydev.netwitness.com/hs-fs/hubfs/Knowledge%20Base%20Import/rta_8_3d9b2a1c-abcb-414a-b466-96eae557ab16.jpg?width=500&height=369&name=rta_8_3d9b2a1c-abcb-414a-b466-96eae557ab16.jpg)

When finished, going back to the SA UI, you will see that the event category DC3 is still intact but the event source has been removed:

![Event](https://mydev.netwitness.com/hs-fs/hubfs/Knowledge%20Base%20Import/rta_9_f7bfd3ec-ea41-4111-813b-1021aca3d4dc.jpg?width=500&height=237&name=rta_9_f7bfd3ec-ea41-4111-813b-1021aca3d4dc.jpg)

If you do not see ‘success’ in the Output field after sending the ‘delete’ instruction, please contact RSA Support for assistance.   
 

#### Resolution

Through the REST api, a number of configurations can be modified.  In this circumstance, specific event sources were removed from an event category by using the host name of the event sources.

Please find the screenshots below to facilitate removal of the event sources from a Log Collector using the REST api:

-Go to Log collector REST API :  :50101/logcollection/  /eventsources

-for File collection type Go to   :50101/logcollection/file/eventsources

![image.png](https://mydev.netwitness.com/hubfs/Knowledge%20Base%20Import/rta_10_3cca50dc-d7a4-421d-8f76-c05eafb88e7a.jpg)

To remove event source **nw\_test** from the   **acf2tvm** event category,    
click on (\*) next to acf2tvm to display the options --\> choose delete    
![image.png](https://mydev.netwitness.com/hubfs/Knowledge%20Base%20Import/rta_11_956f3721-e633-48f7-9890-8bd61c04685f.jpg)enter the name of the config to delete, in our case nw\_test   
![image.png](https://mydev.netwitness.com/hubfs/Knowledge%20Base%20Import/rta_12_92e855aa-75e1-4032-aa9d-39996ce4f2e2.jpg)

**Note: This process can also be done in Explore following the same directions if REST access is unavailable.**

#### Product Details

**NetWitness Product Set:** NetWitness Logs and Network   
**NetWitness Product/Service Type:** NetWitness Log Collector   
**NetWitness Version/Condition:** 11.x ,12.x   
**Platform:** CentOS, AlmaLinux

#### Summary

The following steps will allow you to remove event sources from a 11.x ,12.x Log Collector using the REST api.

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