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 Event Forwarder: 'hostname detection failed' Error When Applying Profile

EDR Event Forwarder: 'hostname detection failed' Error When Applying Profile

Environment

  • EDR Event Forwarder: 3.8.1

Symptoms

  • Error seen when attempting to save the profile in the EDR Web UI and the /var/log/cb/integrations/cb-event-forwarder/cb-event-forwarder.startup.log log file:
level=fatal msg="Configuration errors:\n hostname detection failed - set the system hostname or cb_server_url in the event-forwarder configuration file"

Cause

  • Possible defect in 3.8.1 EDR Event Forwarder.

Resolution

  • The hostname is missing from /etc/hosts in the localhost section. 
    • Add a new line at the beginning with the loopback address and your hostname, this should be on a separate line from the current loopback address line and first in the hosts file. 
      127.0.0.1   myhostnamehere
      127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4
    • Restart your network adapter
      sudo systemctl restart network

       

Labels (2)
Was this article helpful? Yes No
No ratings
Article Information
Author:
Creation Date:
‎04-06-2022
Views:
1291
Contributors