---
title: How to extract all the meta keys from the RAW Alerts and Incidents using Netwitness API
description: "Issue\nBelow documents only fetches few default meta keys from the RAW Alert and Incident. However mostly customer's requirement is to fetch exactly th"
---

[Skip to content](https://mydev.netwitness.com/knowledge-base/how-to-extract-all-the-meta-keys-from-the-raw-alerts-and-incidents-using-netwitness-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. [How To](https://mydev.netwitness.com/knowledge-base/how-to?hsLang=en)

May 4, 2026

# How to extract all the meta keys from the RAW Alerts and Incidents using Netwitness API

#### Issue

 Below documents only fetches few default meta keys from the RAW Alert and Incident. However mostly customer's requirement is to fetch exactly the same meta keys as what they have in the respective event. 

[https://community.netwitness.com/t5/netwitness-platform-online/api-guide-for-11-6/ta-p/627466](https://community.netwitness.com/t5/netwitness-platform-online/api-guide-for-11-6/ta-p/627466) on page 24 (Get an Incident’s Alerts)   
[https://community.netwitness.com/t5/netwitness-knowledge-base/how-to-extract-netwitness-respond-incidents-and-alerts-using-api/ta-p/640766](https://community.netwitness.com/t5/netwitness-knowledge-base/how-to-extract-netwitness-respond-incidents-and-alerts-using-api/ta-p/640766)

#### Tasks

#### Resolution

 Further to what is mentioned in the above documents, please use "fetch" commands to extract the required information. 

1\. Fetches the RAW incidents based on the incident meta.

 GET /rest/api/incident/fetch

"meta\_name": the actual meta\_name to be fetched   
"meta\_value": the value of the meta\_name   
"numberOfRecords": Total number of records to fetch.

 Sample Request:

curl 'https://api.netwitness.local/rest/api/incident/fetch' -i -X GET \\   
-H 'Accept: application/json;charset=UTF-8' \\   
-H 'NetWitness-Token: eyJ...Rs-FA' \\   
-H 'Content-Type: application/json; charset=UTF-8' \\   
-d   
'{"meta\_name":"priority",   
"meta\_value":"MEDIUM",   
"numberOfRecords":"2"}' 

  

 Sample Response:

HTTP/1.1 200   
Server: nginx   
Date: Tue, 29 Jun 2021 06:41:22 GMT   
Content-Type: application/json;charset=UTF-8   
Transfer-Encoding: chunked   
Connection: keep-alive

\[   
 {   
 "id": "INC-26",   
 "name": "testEsa1 for test1",   
 "summary": null,   
 "priority": "MEDIUM",   
 "prioritySort": 1,   
 "riskScore": 30,   
 "status": "NEW",   
 "statusSort": 0,   
 "alertCount": 46,   
 "pinnedAlertCount": 0,   
 "containsPinnedAlerts": false,   
 "averageAlertRiskScore": 30,   
 "sealed": false,   
 "totalRemediationTaskCount": 0,   
 "openRemediationTaskCount": 0,   
 "hasRemediationTasks": false,   
 "created": "2021-06-29T06:27:36.889+00:00",   
 "lastUpdated": "2021-06-29T06:27:36.889+00:00",   
 "lastUpdatedByUser": null,   
 "assignee": null,   
 "sources": \[   
 "Event Stream Analysis"   
 \],   
 "ruleId": "60dabd2e299aa252deb219a4",   
 "firstAlertTime": "2021-06-29T06:27:33.049+00:00",   
 "timeWindowExpiration": "2021-06-29T07:27:33.049+00:00",   
 "groupByValues": \[   
 "test1"   
 \],   
 "categories": \[\],   
 "notes": null,   
 "createdBy": "testEsa1",   
 "dateIndicatorAggregationStart": "2021-06-19T06:27:33.049+00:00",   
 "breachExportStatus": "NONE",   
 "breachData": null,   
 "breachTag": null,   
 "hasDeletedAlerts": false,   
 "deletedAlertCount": 0,   
 "groupByDomain": null,   
 "enrichment": null,   
 "eventCount": 46,   
 "groupBySourceIp": \[   
 "10.10.10.1",   
 "",   
 "10.10.2.3",   
 "10.10.10.4",   
 "10.10.1.5"   
 \],   
 "groupByDestinationIp": \[   
 ""   
 \],   
 "sentToArcher": false,   
 "createdFromRule": true   
 },   
 {   
 "id": "INC-27",   
 "name": "testEsa2 for test2",   
 "summary": null,   
 "priority": "MEDIUM",   
 "prioritySort": 1,   
 "riskScore": 30,   
 "status": "NEW",   
 "statusSort": 0,   
 "alertCount": 46,   
 "pinnedAlertCount": 0,   
 "containsPinnedAlerts": false,   
 "averageAlertRiskScore": 30,   
 "sealed": false,   
 "totalRemediationTaskCount": 0,   
 "openRemediationTaskCount": 0,   
 "hasRemediationTasks": false,   
 "created": "2021-06-29T06:27:36.927+00:00",   
 "lastUpdated": "2021-06-29T06:27:36.927+00:00",   
 "lastUpdatedByUser": null,   
 "assignee": null,   
 "sources": \[   
 "Event Stream Analysis"   
 \],   
 "ruleId": "60dabd2e299aa252deb219a5",   
 "firstAlertTime": "2021-06-29T06:27:36.026+00:00",   
 "timeWindowExpiration": "2021-06-29T07:27:36.026+00:00",   
 "groupByValues": \[   
 "test2"   
 \],   
 "categories": \[\],   
 "notes": null,   
 "createdBy": "testEsa2",   
 "dateIndicatorAggregationStart": "2021-06-19T06:27:36.026+00:00",   
 "breachExportStatus": "NONE",   
 "breachData": null,   
 "breachTag": null,   
 "hasDeletedAlerts": false,   
 "deletedAlertCount": 0,   
 "groupByDomain": null,   
 "enrichment": null,   
 "eventCount": 46,   
 "groupBySourceIp": \[   
 "10.10.10.1",   
 "",   
 "10.10.2.3",   
 "10.10.10.4",   
 "10.10.1.5"   
 \],   
 "groupByDestinationIp": \[   
 ""   
 \],   
 "sentToArcher": false,   
 "createdFromRule": true   
 }   
\] 

2. Fetches the RAW alerts based on the alert meta.

 GET /rest/api/alert/fetch

"meta\_name": the actual alert meta\_name to be fetched   
"meta\_value": the value of the meta\_name   
"numberOfRecords": Total number of records to fetch.   
"includeFields" : The fields to be included as part of the returned respond.

 Sample Request:

curl 'https://api.netwitness.local/rest/api/alert/fetch' -i -X GET \\   
-H 'Accept: application/json;charset=UTF-8' \\   
-H 'NetWitness-Token: eyJ...Rs' \\   
-H 'Content-Type: application/json; charset=UTF-8' \\   
-d   
'{   
"meta\_name":"alert.name",   
"meta\_value":"test2",   
"numberOfRecords":"2",   
"includeFields" : "null"   
}'

 Sample Response:

HTTP/1.1 200   
Server: nginx   
Date: Tue, 29 Jun 2021 06:50:40 GMT   
Content-Type: application/json;charset=UTF-8   
Transfer-Encoding: chunked   
Connection: keep-alive

\[   
 {   
 "id": "60dabd58299aa252deb219bf",   
 "receivedTime": "2021-06-29T06:27:36.028+00:00",   
 "status": "GROUPED\_IN\_INCIDENT",   
 "errorMessage": null,   
 "originalHeaders": {   
 "name": "test2",   
 "description": null,   
 "version": 0,   
 "severity": 3,   
 "timestamp": 1624948056026,   
 "signatureId": "c4148f75e47204ca2e279a693d7514a9751ee1cb8e62bfbec5940fb2d76ff040",   
 "deviceVendor": "RSA Netwitness",   
 "deviceProduct": "Event Stream Analysis",   
 "deviceVersion": "11.6"   
 },   
 "originalRawAlert": null,   
 "originalAlert": {   
 "severity": 3,   
 "eventSourceId": "10.125.249.10:50005:2213",   
 "respondEnabled": true,   
 "moduleType": "ESA\_BASIC",   
 "engineUri": "test-sa-managed",   
 "moduleName": "test2",   
 "suppressMessageBus": false,   
 "transientAlert": false,   
 "notificationReasons": \[\],   
 "actualEventsCount": 1,   
 "instanceId": "c4148f75e47204ca2e279a693d7514a9751ee1cb8e62bfbec5940fb2d76ff040",   
 "statement": "Module\_60c9aef8e4b035381fea8fed\_Alert",   
 "id": "0ee0787c-5210-4f5c-8ede-113fd90bc1f4",   
 "time": "Jun 29, 2021 06:27:36 AM UTC",   
 "moduleId": "60c9aef8e4b035381fea8fed",   
 "events": \[   
 {   
 "ec\_activity": "Logon",   
 "header\_id": "0013",   
 "alias\_host": \[   
 "ibm132"   
 \],   
 "event\_cat\_name": "User.Activity.Successful Logins",   
 "com\_rsa\_netwitness\_streams\_stream": "test-sa-managed-stream",   
 "ip\_src": "10.10.10.1",   
 "device\_type": "aix",   
 "sessionid": 2213,   
 "medium": 32,   
 "rid": 2213,   
 "forward\_ip": "127.0.0.1",   
 "client": "ftpd",   
 "msg\_id": "00002",   
 "device\_disc": 50,   
 "ec\_subject": "User",   
 "event\_source\_id": "10.125.249.10:50005:2213",   
 "com\_rsa\_netwitness\_streams\_arrival\_timestamp": 1624948055024,   
 "esa\_time": 1624948056026,   
 "ec\_theme": "Authentication",   
 "device\_disc\_type": "aix",   
 "com\_rsa\_netwitness\_streams\_source\_trail": \[   
 "admin@10.125.249.10:50005"   
 \],   
 "device\_ip": "2.2.2.2",   
 "event\_desc": "ftpd login",   
 "user\_dst": "userA",   
 "size": 149,   
 "netname": \[   
 "private src"   
 \],   
 "device\_class": "Unix",   
 "time": 1624948050000,   
 "ec\_outcome": "Success",   
 "com\_rsa\_netwitness\_streams\_arrival\_sequence": 25,   
 "did": "loghybrid"   
 }   
 \],   
 "suppressNotification": false   
 },   
 "incidentId": "INC-27",   
 "partOfIncident": true,   
 "incidentCreated": "2021-06-29T06:27:36.927+00:00",   
 "pinnedEventIds": null,   
 "name": "test2",   
 "alert": {   
 "groupby\_source\_device\_mac\_address": "",   
 "user\_summary": \[   
 "userA"   
 \],   
 "groupby\_dst\_device\_geolocation\_domain": "",   
 "source": "Event Stream Analysis",   
 "type": \[   
 "Log"   
 \],   
 "groupby\_user\_src": "",   
 "groupby\_src\_device\_dns\_domain": "",   
 "groupby\_source\_country": "",   
 "groupby\_analysis\_file": "",   
 "groupby\_filename": "",   
 "groupby\_source\_username": "",   
 "groupby\_detector\_ip": "2.2.2.2",   
 "groupby\_dst\_usr\_username": "userA",   
 "events": \[   
 {   
 "agent\_id": "",   
 "data": \[   
 {   
 "filename": "",   
 "size": 149,   
 "hash": ""   
 }   
 \],

#### Product Details

**NetWitness Product Set**: NetWitness Platform   
**NetWitness Product/Service Type:** Admin Server   
**NetWitness Version/Condition:** 11.6.1 and above   
**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.