---
title: Log Parser Customization
description: Log Parser Customization Log Parser Customization On occasion, you may need to modify one or more of your log parsers. For example, you may need to
---

[Skip to content](https://mydev.netwitness.com/knowledge-base/677922#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

# Log Parser Customization

## Log Parser Customization Log Parser Customization

On occasion, you may need to modify one or more of your log parsers. For example, you may need to fix an unknown message, or to parse certain fields differently than in the manner provided by default.

Log Parser Customization allows you to add new parser elements or modify existing ones. All customizations reside in a separate file that does not get removed or overwritten by Log Decoder upgrades or the updating parsers through the RSA Live.

**Note:** This feature is only available in 10.6.5 and later (including NetWitness 11.x)

## Loading OrderLoading Order

The default parser file is loaded before the custom file (if a custom file exists). This allows users to override elements, as shown in the examples below that modify items that exist in the default file.

## File Location and NamingFile Location and Naming

Log parser files are located on the Log Decoder in the following path:

/etc/netwitness/ng/envision/etc/devices

Each log parser has its own sub-folder. For example, the ciscoasa parser files are in the following folder:

/etc/netwitness/ng/envision/etc/devices/ciscoasa

Custom log parser files are located in the same folder as the corresponding system-provided files. For naming, you use the name of the XML file, followed by **-custom.xml**

For example, the **ciscoasa** parser consists of two files: **ciscoasa.ini** and **v20\_ciscoasamsg.xml**. If you create a custom file, you need to name it **v20\_ciscoasamsg-custom.xml**, and add it to the same folder, `/etc/netwitness/ng/envision/etc/devices/ciscoasa`.

## Header and Message DuplicationHeader and Message Duplication

When you customize a parser, make sure to duplicate only those headers and messages that you want to customize. That is, we recommend that you do not simply copy everything from the default parser file and then paste it into your custom XML file. Also, note that if you duplicate headers and messages that exist in the default parser, you will not be using the default versions, even if RSA updates them in the future.

## ExamplesExamples

The following sections contain examples for adding or modifying portions of a log parser.

All the examples use the Oracle Access Manager (oracleam) log parser.

### Example CodeExample Code

Cod examples are broken down into two areas:

- [Add a New Item](https://mydev.netwitness.com/knowledge-base/677922#Add5)
- [Modify an Existing Item](https://mydev.netwitness.com/knowledge-base/677922#Modify5)

Additionally, [insertBefore and insertAfter](https://mydev.netwitness.com/knowledge-base/677922#insertBe) describes the usage of the **insertBefore** and **insertAfter** commands, for use when adding a new item.

### Common StepsCommon Steps

The common steps, which are the same in all of the examples, are as follows:

1. Use an SSH tool, such as WinSCP, to navigate to the following folder on your Log Decoder:
   
   /etc/netwitness/ng/envision/etc/devices/oracleam
2. Copy the **oracleammsg.xml** file to your local system.
3. Note the Device Messages and Version information, which comprise the first several lines of the **oracleammsg.xml** file. You need to copy these lines into your custom parser file.
   
   > name="oracleam"  
   > displayname="Oracle Access Manager"  
   > group="Access Control"\>
   
   \<\>  
   xml="60"  
   checksum="110c39794680bdedfabb5a73339d38eb"  
   revision="104"  
   device="2.0"/\>
4. Using a text editor, create a file named **oracleammsg-custom.xml**, and add custom text, after the introductory text specified in the previous step. **The specific custom text is supplied in each of the following examples**.
5. Save the custom file as **oracleammsg-custom.xml**, and using your SSH tool, upload it to /etc/netwitness/ng/envision/etc/devices/oracleam on your Log Decoder.

## Add a New ItemAdd a New Item

When you add an item, you use a new identifier, and optionally, an **insertBefore** or **insertAfter** command.

You can add any of the following items:

- [Add New Header](https://mydev.netwitness.com/knowledge-base/677922#Add)
- [Add New Message](https://mydev.netwitness.com/knowledge-base/677922#Add2)
- [Add New Valuemap](https://mydev.netwitness.com/knowledge-base/677922#Add3)
- [Add New Tagval](https://mydev.netwitness.com/knowledge-base/677922#Add4)

### Add New HeaderAdd New Header

Using a text editor, create a file named **oracleammsg-custom.xml**, and add the following text:

> name="oracleam"  
> displayname="Oracle Access Manager"  
> group="Access Control"\>

\<\>  
xml="60"  
checksum="110c39794680bdedfabb5a73339d38eb"  
revision="104"  
device="2.0"/\>

> id1="0044"  
> id2="0044"  
> **insertBefore="0005"**  
> content="%ORACLEAM-  :  \*  - " /\>

Note the **insertBefore="0005"** line. This instructs the system to insert the new header before existing header number 0005.

### Add New MessageAdd New Message

Using a text editor, create a file named **oracleammsg-custom.xml**, and add the following text:

> name="oracleam"  
> displayname="Oracle Access Manager"  
> group="Access Control"\>

\<\>  
xml="60"  
checksum="110c39794680bdedfabb5a73339d38eb"  
revision="104"  
device="2.0"/\>

> id1="AUTHZ\_SUCCESS:03"  
> id2="AUTHZ\_SUCCESS"  
> eventcategory="1302000000"  
> insertAfter="AUTHZ\_SUCCESS:01"  
> functions="\<@ec\_theme:Authentication\>\<@ec\_outcome:Success\>\<@event\_time:\*EVNTTIME($HDR,'%G/%F/%W %N:%U:%O',hdate,htime)\>\<@msg:\*PARMVAL($MSG)\>\<@:\*SYSVAL($MSGID,$ID1)\>"  
> content="  -  -  -  - {  %  |  } - cn=  ,  -  -  -  -  -  - cn=  ,cn1=  , uid=  " /\>

Note the **insertAfter="AUTHZ\_SUCCESS:01"** line. This instructs the system to insert the new message after existing message with ID **AUTHZ\_SUCCESS:01**.

### Add New ValuemapAdd New Valuemap

For the remaining examples, the introductory lines are not included. Add the following code after the introductory VERSION information.

> name="getDisposition"  
> default="$NONE"  
> keyvaluepairs="0='Failure'|1='Success'" /\>

id1="AUTHZ\_SUCCESS:03"  
id2="AUTHZ\_SUCCESS"  
eventcategory="1302000000"  
insertBefore="AUTHZ\_SUCCESS:01"  
functions="\<@ec\_theme:Authentication\>\<@ec\_outcome:Success\>\<@event\_time:\*EVNTTIME($HDR,'%G/%F/%W %N:%U:%O',hdate,htime)\>\<@msg:\*PARMVAL($MSG)\>\<@:\*SYSVAL($MSGID,$ID1)\>"  
content="  -  -  -  - {  %  |  } - cn=  ,  -  -  -  -  -  - cn=  ,cn1=  , uid=  " /\>

### Add New TagvalAdd New Tagval

 Add the following code after the introductory VERSION information.

> pairdelimiter="^^" encapsulator=""" /\>

> name="getDisposition"  
> default="$NONE"  
> keyvaluepairs="0='Failure'|1='Success'" /\>

> id1="ORACLEAM\_TVM"  
> id2="ORACLEAM\_TVM"  
> eventcategory="1901000000"  
> **tagval="true"**  
> missField="true"  
> functions="\<@msg:\*PARMVAL($MSG)\>\<@event\_time:\*EVNTTIME($MSG,'%W-%G-%F %H:%T:%S',fld3)\>\<@disposition:\*getDisposition(fld12)\>\<@msg\_id:\*PARMVAL(event\_type)\>\<@vid:\*PARMVAL(event\_type)\>\<@event\_id:\*STRCAT(event\_type,\_,disposition)\>\<@event\_cat:\*getEventLegacyCategory(event\_id)\>\<@event\_cat\_name:\*getEventLegacyCategoryName(event\_cat)\>"  
> content="IAU\_EVENTTYPE=  ^^IAU\_EVENTCATEGORY=  ^^IAU\_COMPONENTTYPE=  ^^IAU\_HOSTID=  ^^IAU\_HOSTNWADDR=  ^^IAU\_AGENTID=  ^^IAU\_PROCESSID=  ^^IAU\_SESSIONID=  ^^IAU\_SSOSESSIONID=  ^^IAU\_APPLICATIONNAME=  ^^IAU\_APPLICATIONDOMAINNAME=  ^^IAU\_EVENTSTATUS=  ^^IAU\_TSTZORIGINATING=  ^^IAU\_THREADID=  ^^IAU\_INITIATOR=  ^^IAU\_USERID=  ^^IAU\_MESSAGETEXT=  ^^IAU\_REMOTEIP=  ^^IAU\_RESOURCE=  ^^IAU\_DOMAINNAME=  ^^IAU\_SERVERNAME=  ^^IAU\_INSTANCENAME=  ^^IAU\_AUTHORIZATIONPOLICYID=  ^^IAU\_AUTHENTICATIONPOLICYID=  ^^IAU\_RESOURCEHOST=  ^^IAU\_RESOURCEURI=  ^^IAU\_ADDITIONALINFO=  " /\>

Note the **tagval="true"** code in the message. We are adding this message that uses the new Tagval map.

## insertBefore and insertAfterinsertBefore and insertAfter

As shown in some of the previous examples, the **insertBefore** and **insertAfter** commands instruct the system about where to place the new items when combining the standard and custom XML definition files, as it creates a unified parser during processing.

**Note:** If both **insertBefore** and **insertAfter** are defined, **insertBefore** will be used, and a warning will be logged. If neither is specified, the header or message is added at the end of the combined parser definition.

## Modify an Existing ItemModify an Existing Item

To modify an existing element, you use the same identifiers as an existing item, and change the contents. See the examples to modify any of the following items:

- [Modify Header](https://mydev.netwitness.com/knowledge-base/677922#Modify)
- [Modify Message](https://mydev.netwitness.com/knowledge-base/677922#Modify2)
- [Modify Valuemap](https://mydev.netwitness.com/knowledge-base/677922#Modify3)
- [Modify Tagval](https://mydev.netwitness.com/knowledge-base/677922#Modify4)

### Modify HeaderModify Header

This example replaces the Header that has an ID of 0004. Add the following code after the introductory VERSION information.

> id1="0004"  
> id2="0004"  
> content="%ORACLEAM-  :  \*  - " /\>

### Modify MessageModify Message

This example replaces the Message that has an ID of **AUTHZ\_SUCCESS:01**. Add the following code after the introductory VERSION information.

> id1="AUTHZ\_SUCCESS:01"  
> id2="AUTHZ\_SUCCESS"  
> eventcategory="1302000000"  
> functions="\<@ec\_theme:Authentication\>\<@ec\_outcome:Success\>\<@event\_time:\*EVNTTIME($HDR,'%G/%F/%W %N:%U:%O',hdate,htime)\>\<@msg:\*PARMVAL($MSG)\>\<@:\*SYSVAL($MSGID,$ID1)\>"  
> content="  -  -  -  - {  %  |  } - cn=  ,  -  -  -  -  -  - cn=  ,cn1=  , uid=  " /\>

### Modify ValuemapModify Valuemap

This example replaces the **getDisposition** Valuemap. Add the following code after the introductory VERSION information.

> name="getDisposition"  
> default="$NONE"  
> keyvaluepairs="0='Failure'|1='Success'|3='Test'" /\>

In this example, we are assuming the device XML, **oracleammsg.xml**, includes a Valuemap named **getDisposition**, and that we are changing the existing information, for example we might be adding a new key value pair, **3='Test&apos**.

### Modify TagvalModify Tagval

This example replaces the existing Tagval. Add the following code after the introductory VERSION information.

> pairdelimiter="^^^" encapsulator=""" /\>

> id1="ORACLEAM\_TVM"  
> id2="ORACLEAM\_TVM"  
> eventcategory="1901000000"  
> tagval="true"  
> missField="true"  
> functions="\<@msg:\*PARMVAL($MSG)\>\<@event\_time:\*EVNTTIME($MSG,'%W-%G-%F %H:%T:%S',fld3)\>\<@disposition:\*getDisposition(fld12)\>\<@msg\_id:\*PARMVAL(event\_type)\>\<@vid:\*PARMVAL(event\_type)\>\<@event\_id:\*STRCAT(event\_type,\_,disposition)\>\<@event\_cat:\*getEventLegacyCategory(event\_id)\>\<@event\_cat\_name:\*getEventLegacyCategoryName(event\_cat)\>"  
> content="IAU\_EVENTTYPE=  ^^^IAU\_EVENTCATEGORY=  ^^^IAU\_COMPONENTTYPE=  ^^^IAU\_HOSTID=  ^^^IAU\_HOSTNWADDR=  ^^^IAU\_AGENTID=  ^^^IAU\_PROCESSID=  ^^^IAU\_SESSIONID=  ^^^IAU\_SSOSESSIONID=  ^^^IAU\_APPLICATIONNAME=  ^^^IAU\_APPLICATIONDOMAINNAME=  ^^^IAU\_EVENTSTATUS=  ^^^IAU\_TSTZORIGINATING=  ^^^IAU\_THREADID=  ^^^IAU\_INITIATOR=  ^^^IAU\_USERID=  ^^^IAU\_MESSAGETEXT=  ^^^IAU\_REMOTEIP=  ^^^IAU\_RESOURCE=  ^^^IAU\_DOMAINNAME=  ^^^IAU\_SERVERNAME=  ^^^IAU\_INSTANCENAME=  ^^^IAU\_AUTHORIZATIONPOLICYID=  ^^^IAU\_AUTHENTICATIONPOLICYID=  ^^^IAU\_RESOURCEHOST=  ^^^IAU\_RESOURCEURI=  ^^^IAU\_ADDITIONALINFO=  " /\>

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

- **Column 1:** [Previous Page](https://community.securid.com/t5/netwitness-platform-threat/create-custom-odbc-collection-typespec/ta-p/629193)
- **Column 2:** [Next Page](https://community.securid.com/t5/netwitness-platform-threat/custom-cef-parser/ta-p/629195)

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