Excessive Invalid scheme metrics-endpoint messages in syslog drain
search cancel

Excessive Invalid scheme metrics-endpoint messages in syslog drain

book

Article ID: 416997

calendar_today

Updated On:

Products

VMware Tanzu Application Service VMware Tanzu RabbitMQ VMware Tanzu for MySQL Redis for VMware Tanzu

Issue/Introduction

This issue consists of excessive generation of the following log entry:

Invalid scheme metrics-endpoint in syslog drain url

 

These log entries are found on file loggr-syslog-agent.stderr.log

Environment

Platforms with RabbitMQ, Redis or MySQL tiles.

Cause

The tiles for RabbitMQ, Redis and MySQL are not configured to filter these log messages.

Resolution

As a workaround to filter the log entries from showing in loggr-syslog-agent.stderr.log you can run the following bosh command:

bosh -d <deployment_name> ssh -c "sudo sed -i \"s/WARN_ON_INVALID_DRAINS: 'true'/WARN_ON_INVALID_DRAINS: 'false'/\" /var/vcap/jobs/loggr-syslog-agent/config/bpm.yml "

Next, you need to restart the loggr-syslog-agent monit job. The following command will restart the job an all VMs in the deployment:

bosh -d <deployment_name> ssh -c "sudo /var/vcap/bosh/bin/monit restart loggr-syslog-agent"

 

To verify the change was successfully applied you can ssh into any of the VMs previously affected, become sudo and go to /var/vcap/sys/log/loggr-syslog-agent. Here locate file loggr-syslog-agent.stderr.log and use tools like tail, cat or vim to verify the logs are no longer present