---
title: NetWitness Database ID search and gap Report
description: "Issue\nWant to identify which NetWitness database file contains a particular ID.Want to produce a report showing any ID gaps in the NetWitness *.manife"
---

[Skip to content](https://mydev.netwitness.com/knowledge-base/netwitness-database-id-search-and-gap-report#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

# NetWitness Database ID search and gap Report

#### Issue

 Want to identify which NetWitness database file contains a particular ID.

Want to produce a report showing any ID gaps in the NetWitness \*.manifest files which might identify missing NetWitness database files.

This is for the Archiver, Broker, Concentrator, Decoder, Log Decoder databases.

Where the databases for each service are the following.

Archiver, Decoder, Log Decoder: index, meta, packet, session   
Broker: index   
Concentrator: index, meta, session

#### Resolution

 Copy the attached [db.sh](http://\\rsana-fs-hq1.corp.emc.com\Akamai\84401\patches\attach\nw\000039934\db.sh) script to the Archiver, Broker, Concentrator, Decoder, or Log Decoder appliance under the /root directory.

Make the script executable.

chmod +x ./db.sh

1\. Run the script to show the script syntax.

./db.sh

For example:

 \[root@NWPKTD ~\]# ./db.sh   
\*\*\* NWPKTD DB REPORT - Version:3 Wed Nov 10 23:57:21 UTC 2021 \*\*\*

Script: ./db.sh   
Syntax:   
-c : Create the temporary files listing the available \*.manifest files content  
 Must run the create option at least once before using the other switches  
 -f \[number\] : Find which files contain the provided ID number  
 -g : Check for ID gaps in the manifest files 

2\. The script must be run the first time with the create (-c) switch to collect details from all the available \*.manifest files on the appliance.

Once the create has completed then the script can be used multiple times with the other switch options.

Run the script with the create (-c) switch again if the manifest information has changed on the appliance.

For example:

 \[root@NWPKTD ~\]# ./db.sh -c   
\*\*\* NWPKTD DB REPORT - Version:3 Thu Nov 11 00:02:44 UTC 2021 \*\*\*

Create Manifest List:   
Creating /tmp/manifest-decoder-index.list   
Creating /tmp/manifest-decoder-meta.list   
Creating /tmp/manifest-decoder-packet.list   
Creating /tmp/manifest-decoder-session.list 

3\. Use the find (-f \[number}) switch to find details about which NetWitness database file an ID appear in.

If the ID is found, then the manifest details about the file is shown and a listing of the file if it exists on the appliance.

If the ID is outside of the available manifest files range of IDs, then details about the first or last range of IDs is shown.

For example:

 \[root@NWPKTD ~\]# ./db.sh -f 1234567890   
\*\*\* NWPKTD DB REPORT - Version:3 Thu Nov 11 00:10:03 UTC 2021 \*\*\*

Find ID: 1234567890

ID not found in any decoder index manifest file   
ID 1234567890 occurred after the newest managed-values-606.manifest file Range:847058761-847058761

Found in meta   
meta-000000007.nwmdb Range:1115963860-1338264581 Wed Jul 10 21:46:13 UTC 2019-Fri Jul 12 07:14:05 UTC 2019   
-rw-------. 1 root root 3.1G Feb 11 2020 /var/netwitness/decoder/metadb/meta-000000007.nwmdb

ID not found in any decoder packet manifest file   
ID 1234567890 occurred before the oldest packet-000035113.pcapng.manifest file Range:495938412447-495951570753

ID not found in any decoder session manifest file   
ID 1234567890 occurred after the newest session-000000082.nwsdb.manifest file Range:847043576-847058761 

4\. Use the gap (-g) switch to report any gaps in ID ranges in the .manifest files.

Any ID gap found will display details about the NetWitness database files before and after the gap.

For example:

 \[root@NWPKTD ~\]# ./db.sh -g   
\*\*\* NWPKTD DB REPORT - Version:3 Thu Nov 11 00:20:38 UTC 2021 \*\*\*

Check Gaps:

decoder index:  
607 manifest files listed in file /tmp/manifest-decoder-index.list

decoder meta:  
140 manifest files listed in file /tmp/manifest-decoder-meta.list

decoder packet:  
4176 manifest files listed in file /tmp/manifest-decoder-packet.list

decoder session:   
Gap: decoder filename:session-000000078.nwsdb id1:846970089 id2: 846970921 time1:Thu Sep 30 15:50:38 UTC 2021   
Gap: decoder filename:session-000000079.nwsdb id1: 846970929 id2:846971148 time1:Thu Oct 21 22:28:36 UTC 2021   
\---   
82 manifest files listed in file /tmp/manifest-decoder-session.list 

**Warning:** This script will be slow to run on appliances which have a large number of .manifest files.

#### Internal Comments

I am unable to track down the old db.sh script anywhere. I've looked in JIRA, SF and reached out across NW Answers and CS, but no one still has the original copy, so unfortunately I'm going to have to Archive this. If the script can be found anywhere, we can update and re-post.

#### Product Details

**RSA Product Set:** RSA NetWitness Logs & Network   
**RSA Product/Service Type:** Archiver, Broker, Concentrator, Decoder, Log Decoder   
**RSA Version/Condition:** 11.x   
**Platform:** CentOS   
**O/S Version:** 7

#### Summary

How to find which NetWitness database file contains an ID and how to check if there are any gaps?

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