This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Accept
Reject

NetWitness Community

  • Home
  • Products
    • NetWitness Platform
      • Advisories
      • Documentation
        • Platform Documentation
        • Known Issues
        • Security Fixes
        • Hardware Documentation
        • Threat Content
        • Unified Data Model
        • Videos
      • Downloads
      • Integrations
      • Knowledge Base
    • NetWitness Cloud SIEM
      • Advisories
      • Documentation
      • Knowledge Base
    • NetWitness Detect AI
      • Advisories
      • Documentation
      • Knowledge Base
    • NetWitness Investigator
    • NetWitness Orchestrator
      • Advisories
      • Documentation
      • Knowledge Base
      • Legacy NetWitness Orchestrator
        • Advisories
        • Documentation
  • Community
    • Blog
    • Discussions
    • Events
    • Idea Exchange
  • Support
    • Case Portal
      • Create New Case
      • View My Cases
      • View My Team's Cases
    • Community Support
      • Getting Started
      • News & Announcements
      • Community Support Forum
      • Community Support Articles
    • Product Life Cycle
    • Support Information
    • General Security Advisories
  • Training
    • Blog
    • Certification Program
    • Course Catalog
      • Netwitness XDR
      • EC-Council Training
    • New Product Readiness
    • On-Demand Subscriptions
    • Student Resources
    • Upcoming Events
    • Role-Based Training
  • Technology Partners
  • Trust Center
Sign InRegister Now
cancel
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
Showing results for 
Search instead for 
Did you mean: 
NetWitness Discussions
  • NetWitness Community
  • Discussions
  • Linux log with syslog PRI not parsed
  • Options
    • Subscribe to RSS Feed
    • Mark Topic as New
    • Mark Topic as Read
    • Float this Topic for Current User
    • Bookmark
    • Subscribe
    • Mute
    • Printer Friendly Page

Linux log with syslog PRI not parsed

YacineBERREZOUG
YacineBERREZOUG New Contributor
New Contributor
Options
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Report Inappropriate Content

‎2021-01-08 05:31 AM

Hello,

 

I have a parsing issue with the following Linux log :

<37>Jan  4 19:56:01 hostname PAM-unixteam[2373]: pam_sm_acct_mgmt(service=crond, terminal=cron, user=root, ruser=UNDEF, rhost=UNDEF)

This log is not matching rhlinux devices type and is parsed as unknown.

By removing syslog PRI in the header :

Jan  4 19:56:01 hostname PAM-unixteam[2373]: pam_sm_acct_mgmt(service=crond, terminal=cron, user=root, ruser=UNDEF, rhost=UNDEF)

The log is correctly parsed as rhlinux by header 0016: 

&lt;month&gt; &lt;day&gt; &lt;time&gt; &lt;hhost&gt; &lt;messageid&gt;[&lt;process_id&gt;]: &lt;!payload:messageid&gt;"

While a windows log with PRI is correctly parsed as winevent_snare (header 1001) on the same decoder (log file import from GUI for both):

<133>Jan 5 23:04:42 hostname MSWinEventLog 1 Security 202206857 Tue Jan 05 23:04:42 2021 4648 Microsoft-Windows-Security-Auditing …..

However, 0016 rhlinux and 1001 weinevent_snare headers are similar at the beginning :

--Rhlinux 0016 header content : “&lt;month&gt; &lt;day&gt; &lt;time&gt; &lt;hhost&gt; &lt;messageid&gt;[&lt;process_id&gt;]: &lt;!payload:messageid&gt;"
--Wineventsnare 1001 header content : "&lt;month&gt; &lt;day&gt; &lt;time&gt; &lt;hostname&gt; &lt;log_type&gt;&#009;&lt;criticality&gt;&#009;&lt;msgIdPart1&gt;&#009;&lt;linenum&gt;&#009;&lt;date&gt; &lt;datetime&gt;&#009;&lt;msgIdPart2&gt;&#009;&lt;msgIdPart3&gt;&#009;&lt;!payload:log_type&gt;"

Why winevent_snare 307 with <133> PRI is well parsed and rhlinuxlog with <37> PRI is not ?

Could you please help ?

Thank you in advance.

  • Community Thread
  • devicetype
  • Discussion
  • Forum Thread
  • log parsing
  • logdecoder
  • NetWitness
  • NW
  • NWP
  • Parsing Issue
  • pri
  • RSA NetWitness
  • RSA NetWitness Platform
  • syslog
0 Likes
Reply
  • All forum topics
  • Previous Topic
  • Next Topic
6 REPLIES 6

DaveGlover
Trusted Contributor DaveGlover Trusted Contributor
Trusted Contributor
Options
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Report Inappropriate Content

‎2021-01-08 05:50 AM

Where are you seeing these parsing errors? The PRI tag is stripped off by the log decoder, it never makes it to the parsing engine. Is this coming through a relay, possibly adding a second PRI tag?

 

Can I get a little bit more information?

0 Likes
Reply

YacineBERREZOUG
YacineBERREZOUG New Contributor
New Contributor
Options
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Report Inappropriate Content

‎2021-01-08 06:20 AM

Hello Dave,

Thank you for your answer.

 

We don't see parsing errors, the log is just not parsed (match unknown device type).

This log is coming through a relay adding this PRI tag and currently it's impossible to access on this relay and remove the tag.

And it seems like the PRI tag is not stripped off by the log decoder.

 

Thank you,

0 Likes
Reply

DaveGlover
Trusted Contributor DaveGlover Trusted Contributor
Trusted Contributor
In response to YacineBERREZOUG
Options
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Report Inappropriate Content

‎2021-01-08 07:34 AM

Can you perform a tcpdump -A port 514 and post the results with the linux log on it so I can see exactly what is seen by the NW log collector

 

Thanks

0 Likes
Reply

YacineBERREZOUG
YacineBERREZOUG New Contributor
New Contributor
Options
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Report Inappropriate Content

‎2021-01-08 08:29 AM

Below the packet we see with the tcpdump : 

[][][10.10.10.10][1622212150][]<37>Jan  6 21:22:30 hostname PAM-unixteam[110242]: pam_sm_close_session(service=crond, terminal=cron, user=xxxx, ruser=UNDEF, rhost=UNDEF)

Thanks

0 Likes
Reply

DaveGlover
Trusted Contributor DaveGlover Trusted Contributor
Trusted Contributor
In response to YacineBERREZOUG
Options
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Report Inappropriate Content

‎2021-01-08 08:40 AM

I see the issue. You can not use a PRI tag when using the Z-connector header.

 

Remove the tag

 

Are you using Rsyslog? If so, I had them add a special function to do this.

 

Instead of using %rawmsg% use %rawmsg-after-pri% This works in rsyslog version eight and above

1 Like
Reply

YacineBERREZOUG
YacineBERREZOUG New Contributor
New Contributor
Options
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Report Inappropriate Content

‎2021-01-12 05:30 AM

Hello Dave,

 

Thank you for your answer.

I still don't have any way to change syslog configuration.

Do you know why windows log with PRI is well parsed ? 

<133>Jan 5 23:04:42 hostname MSWinEventLog 1 Security 202206857 Tue Jan 05 23:04:42 2021 4648 Microsoft-Windows-Security-Auditing …..

 

Thanks

0 Likes
Reply
Powered by Khoros
  • Blog
  • Events
  • Discussions
  • Idea Exchange
  • Knowledge Base
  • Case Portal
  • Community Support
  • Product Life Cycle
  • Support Information
  • About the Community
  • Terms & Conditions
  • Privacy Statement
  • Acceptable Use Policy
  • Employee Login
© 2022 RSA Security LLC or its affiliates. All rights reserved.