IMPORTANT ANNOUNCEMENT: On May 6, 2024, Carbon Black User eXchange (UeX) and Case Management will move to a new platform!
The Community will be in read-only mode starting April 19th, 7:00 AM PDT. Check out the blog post!
You will still be able to use the case portal to create and interact with your support cases until the transition, view more information here!

EDR: How to Customize Syslog Templates

EDR: How to Customize Syslog Templates

Environment

  • EDR Server: All Versions
  • SIEM
  • Rsyslog

Objective

How to customize Syslog templates

Resolution

  1. Find the templates that you will be modifying
    • Base templates can be dropped in the current working directory
    /usr/share/cb/cbsyslog -g
    • CEF format templates can be found here:
    /usr/share/cb/syslog_templates
  2. Open /etc/cb/cb.conf and add configuration based on the templates you will be customizing
    BinaryInfoSyslogTemplateGroupObserved=<path and filename>
    BinaryInfoSyslogTemplateHostObserved=<path and filename>
    BinaryInfoSyslogTemplateObserved=<path and filename>
    FeedIngressSyslogTemplateBinary=<path and filename>
    FeedIngressSyslogTemplateProcess=<path and filename>
    FeedIngressSyslogTemplateHost=<path and filename
    FeedStorageSyslogTemplateBinary=<path and filename>
    FeedStorageSyslogTemplateProcess=<path and filename>
    WatchlistSyslogTemplateBinary=<path and filename>
    WatchlistSyslogTemplateProcess=<path and filename>
    FeedQuerySyslogTemplateBinary=<path and filename>
    FeedQuerySyslogTemplateProcess=<path and filename>
    
  3. Review the CB Response Integration Guide for the event type you would like to modify and what additional fields are available
  4. What to add:
    NOTE: <tag> will be what you are mapping to in the SIEM. <key> is the value in the integration doc
    • Base Templates will be in this format
    <tag>='{{doc["<key>"]}}
    • CEF Templates will be in this format
    <tag>:{{doc["<key>"]|cef_escape}}
    
  5. Save templates
  6. Restart Services Cb Response: How to restart the server services

Additional Notes

  • Some fields are not available depending on event type. For example, cmdline is not available for ingress events, but is available for storage events. Command Line is only available after the event is indexed to Solr.
  • Template headers are set in the /etc/rsyslog/cb-coreservices.conf

Related Content


Labels (1)
Tags (2)
Was this article helpful? Yes No
No ratings
Article Information
Author:
Creation Date:
‎09-09-2020
Views:
2552
Contributors