Warning: "esx.problem.vmsyslogd.remote.logmessages.dropped The host has lost log messages", when remote syslog server log messages or audit records are dropped
search cancel

Warning: "esx.problem.vmsyslogd.remote.logmessages.dropped The host has lost log messages", when remote syslog server log messages or audit records are dropped

book

Article ID: 424922

calendar_today

Updated On:

Products

VMware vSphere ESXi

Issue/Introduction

The following warnings are observed on an ESXi host when log messages or audit records to a remote syslog server are dropped:

  • esx.problem.vmsyslogd.remote.logmessages.dropped
    • The host "://:" has lost log messages. Please refer to KB 424922 for details.
  • esx.problem.vmsyslogd.remote.auditrecords.dropped
    • The host "://:" has lost audit records. Please refer to KB 424922 for details.

Environment

  • VVF 9.1.
  • VCF 9.1.

Cause

The vSphere warnings can be observed in the following scenarios:

  1. Connection to the remote syslog server was not established or is unstable.
  2. Network congestion/latency.
  3. Log spew on ESX.

Resolution

  1. Verify that connection was established to the remote syslog server.
    1. In case of connection establishment failure, the following vSphere warning will be observed:

      1. The host Protocol://ip:port has become unreachable. Remote logging to this host has stopped.

    2. In case of connection failure, the following log will be seen in var/log/vmsyslogd.log:

      1. Connect: Failed to establish connection to syslog collector NetworkLogger::Protocol://ip:port

    3. Ensure that the remote syslog server is reachable using the following command:

      1. ping <remote-syslog-server-ip>

    4. If the remote syslog server can be pinged, but connection was not established, this could be due to firewall settings.

      1. Verify firewall settings: Refer to the section “Configuring ESXi Firewall Exception using the esxcli command/syslog port” in Configuring syslog on ESX. Also, ensure that the  syslog server-side firewall is not blocking the logs.

  2. To identify network issues, run the scoreboard command to check network stats:
    1. Execute the following command:

      1. /bin/viewScoreboard.py var/log/vmsyslog2_stats.scoreboard | grep -i network

    2. For a loghost, if there are bytes dropped, you will see:

      1. NetworkLogging.Loghost.<n>.(Name) Bytes: [<drop-bytes>]

    3. The corresponding connectionDown/slowTransmission stats can be checked:

      1. NetworkLogging.Loghost.<n>.BytesDropped.ConnectionDown.Total Count: [<drop-bytes>]
      2. NetworkLogging.Loghost.<n>.BytesDropped.SlowTransmission.Total Count: [<drop-bytes>]

    4. Based on this, please check your network connection.

  3. For investigating log spew, run the scoreboard command to check the input thread bytes dropped stats:
    1. Execute the following command:

      1. /bin/viewScoreboard.py var/log/vmsyslog2_stats.scoreboard | grep -i drop | more

    2. If there are input thread bytes dropped, you will see:

      1. InputThread.BytesDropped.Total Count: [<drop-bytes>]

    3. The bytes dropped for various idents can be investigated to see the culprit:

      1. InputThread.BytesDropped.identSockets.ESXShell.Total Count: [<drop-bytes>]

    4. If log spew is being observed for a particular ident, log filtering can be enabled for the particular ident using the steps mentioned in: Configure log filtering on ESXi hosts.

  4. File a Service Request
    1. If none of the remediation steps are helpful, contact Global Support for further help.