Adding a Debug Logger to NewRegistrationCallback
search cancel

Adding a Debug Logger to NewRegistrationCallback

book

Article ID: 437726

calendar_today

Updated On:

Products

Carbon Black EDR

Issue/Introduction

How to add debugging for a custom NewRegistrationCallback script to handle VDI

Environment

  • Carbon Black EDR: All Versions

Resolution

  1. Open /etc/cb/sensorservices-logger.conf for edit
  2. Update the [loggers] keys section by adding cb.sensor.NewRegistrationCallback 
    From: 
    [loggers]
    keys=root, gunicorn.access
    
    To:
    [loggers]
    keys=root, gunicorn.access, cb.sensor.NewRegistrationCallback
  3. Next, add a new logger section between the last [logger_] and the first [handler_] 
    [logger_cb.sensor.NewRegistrationCallback]
    level=DEBUG
    handlers=debug_syslog
    propagate=0
    qualname=cb.sensor.NewRegistrationCallback
  4. Python will pick up the change automatically in the logger, a restart of services is not needed. 

Additional Information

  • This is only needed for the primary server in a cluster.