Syntax errors in table-map-custom.xml on RSA Security Analytics Log Decoder
Issue
When there is a syntax error in table-map-custom.xml you can experience a log decoder that will no longer start capture.You will see this message when attempting to start capture:
"Failed to start capture: Failed to process message start for /decoder com.rsa.netwitness.carlos.transport.TransportExc eption: Decoder did not initialize correctly, please check the logs"
Health and Wellness will report alerts:
LogDecoder Event Queue > 80% stat Logdecoder EventProcessor/The number of events currently in the queue, expressed as a percentage of the queue capacity
And
LogDecoder Log Capture Pool Depleted
What is actually happening is logged in /var/log/messages:
[LogParse] [info] Loaded mappings from /etc/netwitness/ng/envision/etc/table-map.xml
NwLogDecoder[50027]: [Engine] [failure] Module logdecoder failed to load: CDATA sections must start with "<![CDATA["
NwLogDecoder[50027]: [Engine] [failure] Module logdecoder failed to load: Diagnostic information: Throw in function nw::XmlString nw::XmlDocument::parseCDATA(const XmlString&, bool)Dynamic exception type: boost::exception_detail::clone_impl<nw::XmlParseError>std::exception::what: CDATA sections must start with "<![CDATA["[boost::errinfo_at_line_*] = 2023[boost::errinfo_file_name_*] = /etc/netwitness/ng/envision/etc/table-map-custom.xml
NwLogDecoder[50027]: [Engine] [failure] Module logdecoder failed to load: CDATA sections must start with "<![CDATA["
NwLogDecoder[50027]: [Engine] [failure] Module logdecoder failed to load: Diagnostic information: Throw in function nw::XmlString nw::XmlDocument::parseCDATA(const XmlString&, bool)Dynamic exception type: boost::exception_detail::clone_impl<nw::XmlParseError>std::exception::what: CDATA sections must start with "<![CDATA["[boost::errinfo_at_line_*] = 2023[boost::errinfo_file_name_*] = /etc/netwitness/ng/envision/etc/table-map-custom.xml