---
title: NetWitness having parsing issues when collecting Ubuntu Apache logs
description: "Issue\nApache (HTTP) syslog will not be parsed correctly if the following conditions are true:\nApache is installed on Ubuntu system.you follow the"
---

[Skip to content](https://mydev.netwitness.com/knowledge-base/netwitness-having-parsing-issues-when-collecting-ubuntu-apache-logs#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 having parsing issues when collecting Ubuntu Apache logs

#### Issue

 Apache (HTTP) syslog will not be parsed correctly if the following conditions are true:

- Apache is installed on Ubuntu system.
- you follow the steps in [Apache HTTP Server Event Source Configuration Guide](https://community.netwitness.com/t5/netwitness-platform-integrations/apache-http-server-event-source-configuration-guide/ta-p/572454) section "**Configure Syslog Collection for Apache HTTP Server on UNIX**" :

 1\. Open the \\etc\\httpd\\conf\\httpd.conf file, and find several lines that begin with LogFormat. Add the following line after the final LogFormat line:

 LogFormat "\\"%m: %h %l %u %t \\"%m \\"%V\\" \\"%U\\" \\"%q\\" %H\\" %\>s %b \\"%{Referer}i\\" \\"%{User-Agent}i\\" \\"%{Cookie}i\\"" rsa 

 2\. Find the following line:

 CustomLog logs/access\_log combined 

 and replace combined with rsa, so that the line reads as follows:

 CustomLog logs/access\_log rsa 

 3\. Add the following lines to the end of the /etc/rsyslog.conf file:

 \#### MODULES ####   
$ModLoad imfile # load the imfile input module   
\# Watch /var/log/httpd/access\_log   
$InputFileName /var/log/httpd/access\_log   
$InputFileTag %APACHE-   
$InputFileStateFile state-apache-access   
$InputRunFileMonitor   
\*.\* @ ipaddress 

 where ipaddress is the IP address of your RSA NetWitness Suite Log Decoder or RSA NetWitness Suite Remote Log Collector.

After you complete the steps and syslog is sent to NetWitness from Ubuntu device, the apache log will not be parsed correctly and you will probably see word metas in **Events** page.

#### Cause

This issue occurs because LogFormat and CustomLog do not take effect.The configuration and apache package is slightly different on Ubuntu.

#### Resolution

 1\. On Ubuntu, add the following line in  **/etc/apache2/apache2.conf**

 LogFormat "\\"%m: %h %l %u %t \\"%m \\"%V\\" \\"%U\\" \\"%q\\" %H\\" %\>s %b \\"%{Referer}i\\" \\"%{User-Agent}i\\" \\"%{Cookie}i\\"" rsa1 

 2\. Change the following line in  **/etc/apache2/sites-available/000-default.conf**

From

 CustomLog ${APACHE\_LOG\_DIR}/access.log combined 

 To   
CustomLog ${APACHE\_LOG\_DIR}/access.log rsa1

 CustomLog ${APACHE\_LOG\_DIR}/access.log rsa1 

 3\. Add the following lines in /etc/rsyslog.conf

 \#### MODULES ####   
$ModLoad imfile # load the imfile input module   
\# Watch /var/log/apache2/access.log   
$InputFileName /var/log/apache2/access.log   
$InputFileTag %APACHE-   
$InputFileStateFile state-apache-access   
$InputRunFileMonitor   
\*.\* @ ipaddress 

 where ipaddress is the IP address of your RSA NetWitness Suite Log Decoder or RSA NetWitness Suite Remote Log Collector.

4\. Restart **rsyslog** and **apache2** services for the change to take effect.

#### Product Details

**NetWitness Product Set:** NetWitness Platform   
**NetWitness Product/Service Type:** LogCollector LogDecoder   
**NetWitness Version/Condition:** 12.x   
**Platform:** CentOS 7 / Alma

#### Summary

Collect Apache (HTTP) syslog from Ubuntu. Apache device configuration guide does not apply to environment whether Apache installed on Ubuntu system.

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