---
title: Create Custom (ODBC Collection) Typespec
description: Create Custom Typespec for ODBC Collection Create Custom Typespec for ODBC Collection RSA NetWitness uses type specification (typespec) files for OD
---

[Skip to content](https://mydev.netwitness.com/knowledge-base/677939#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. [Documentation](https://mydev.netwitness.com/knowledge-base/documentation?hsLang=en)

April 6, 2026

# Create Custom (ODBC Collection) Typespec

## Create Custom Typespec for ODBC Collection Create Custom Typespec for ODBC Collection

RSA NetWitness uses type specification (typespec) files for ODBC and file collection. These files act on raw log files, and are used for two main purposes:

- Define where in the log file data resides. For instance, some log files contain header information that is not considered data to be parsed.
- Replace certain types of characters that the log parser cannot parse correctly. For instance, the tab character can sometimes cause problems.

This topic tells you how to create a custom typespec for the Log Collector. The topic includes:

- Create Custom typespec procedure
- ODBC Collection typespec syntax
- Sample ODBC Collection typespec files

## Create Custom TypespecCreate Custom Typespec

To create a custom typespec file:

1. Open an SFTP client (for example, WinSCP) and connect to a Log Collector or remote Log Collector.
2. Navigate to **/etc/netwitness/ng/logcollection/content/collection/odbc**, and copy an existing file, for example **bit9.xml**.
3. Modify the file according to your requirements. See [ODBC Collection Typespec Syntax](https://mydev.netwitness.com/knowledge-base/677939#typespecSyntax) for details.
4. Rename and save the file to the same directory.
5. Restart the Log Collector.

**Note:** You will not be able to see new Event Source type in Security Analytics until you restart the Log Collector.

## ODBC Collection Typespec SyntaxODBC Collection Typespec Syntax

The following table describes the typespec parameters.

- **Parameter:**
  
  name
- **Description:**
  
  The display name of your ODBC event source (for example, **activeidentity**). Security Analytics displays this name in the **Sources** panel of the **View \> Config \> Events Sources** tab.
  
  Valid value is an alphanumeric string. You cannot use - (dashes), \_(underscores), or spaces . The name must be unique across all typespec files in the folder.

- **Parameter:**
  
  type
- **Description:**
  
  Event source type: **odbc**. Do not modify this line.

- **Parameter:**
  
  prettyName
- **Description:**
  
  User-defined name for the event source. You can use the same value as name (for example, apache) or use a more descriptive name.

- **Parameter:**
  
  version
- **Description:**
  
  Version of this typespec file. Default value is 1.0.

- **Parameter:**
  
  author
- **Description:**
  
  Person who created the typespec file. Replace author-name with your name.

- **Parameter:**
  
  description
- **Description:**
  
  Formal description of the event source. Replace formal-description with your description of the event source.

- **Parameter:**
  
   Section

- **Parameter:**
  
  parser
- **Description:**
  
  **This *optional* parameter applies to Security Analytics 10.6.1 and newer.** This parameter contains the name of the log parser. This value forces the Log Decoder to use the specified log parser when parsing logs from this event source.
  
  **Note:** Please leave the field blank when unsure of the log parser to be used.

- **Parameter:**
  
  name
- **Description:**
  
  Name your ODBC event source (for example, **ActivIdentity ActivCard AAA Server**).

- **Parameter:**
  
  maxVersion
- **Description:**
  
  The version number of the event source (for example, **6.4.1**).

- **Parameter:**
  
  description
- **Description:**
  
  Description of the event source.

- **Parameter:**
  
   Section

- **Parameter:**
  
  odbc
- **Description:**
  
  The syntax under `` is used for event collection and processing. You can provide multiple queries for the same event source type by adding `` tags.

- **Parameter:**
  
  query
- **Description:**
  
  This section contains the details of the query used to collect information from the event source.

- **Parameter:**
  
  tag
- **Description:**
  
  The prefix tag you want to add to events during transformation (for example **ActivIdentity**).

- **Parameter:**
  
  outputDelimiter
- **Description:**
  
  Specify the delimiter to use to separate fields. Specify any of the following values:
  
    - **||** (piping)
    - **^** (caret)
    - **,** (comma)
    - **:** (colon)
    - **0x20** (to represent a space)

- **Parameter:**
  
  interval
- **Description:**
  
  Specify the number of seconds between events. Default value is **60**.

- **Parameter:**
  
  dataQuery
- **Description:**
  
  Specify the query to fetch data from the ODBC eventsource database for SQL-syntax. For example: `SELECT acceptedrejected, servername, serveripa, sdate, millisecond, suid, groupname, ipa, reason, info1, info2, threadid FROM A_AHLOG WHERE sdate > '%TRACKING%' ORDER BY sdate`

- **Parameter:**
  
  maxTrackingQuery
- **Description:**
  
  The query used on the initial pull of events to identify the starting point within the data set to begin pulling logs from. After the initial pull, this query is no longer used, unless the **maxTracking** value has been reset or altered.
  
   For example: `SELECT MAX(Event_Id) from ExEvents`

- **Parameter:**
  
  trackingColumn
- **Description:**
  
  The tracking column value used when the ODBC collector pulls a new set of events.

## Sample ODBC Collection Typespec FilesSample ODBC Collection Typespec Files

The following sample is the typespec file for the IBM ISS SiteProtector event source.

```

     siteprotector4_x

     odbc

     SITEPROTECTOR4_X

     1.0

     Administrator

     Collects events from SiteProtector

      Internet Security Systems, Inc. RealSecure SiteProtector v 2.0

      2.0

      iss

```

The following sample is the typespec file for the Bit9 Security Platform event source.

```

     bit9

     odbc

     BIT9

     1.0

     Administrator

     Bit9 Events

      Bit9

      bit9

        BIT9

        ||

        10

         SELECT
         Timestamp,
         Event_Id,
         Computer_Id,
         File_Catalog_Id,
         Root_File_Catalog_Id,
         Priority,
         Type,
         Subtype,
         IP_Address,
         User_Name,
         Process,
         Description
         FROM
         ExEvents
         WHERE
         Event_Id > '%TRACKING%'

        Event_Id

        SELECT MAX(Event_Id) from ExEvents

```

- **Column 1:**
- **Column 2:**

- **Column 1:** [Previous Page](https://community.securid.com/t5/rsa-netwitness-platform-threat/create-custom-file-collection-typespec/ta-p/588785)
- **Column 2:** [Next Page](https://community.securid.com/t5/rsa-netwitness-platform-threat/log-parser-customization/ta-p/588789)

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