Quantcast
Channel: HAProxy community - Latest topics
Viewing all articles
Browse latest Browse all 4832

Is there a way to view stats for a ring logbuffer like there is for server backend?

$
0
0

We check stats of the haproxy by using this command on the host it runs on

echo show stat | sudo nc -U /var/run/api.sock 

This works well when using the backend server configuration. The current use for HAProxy is to only use it for sending logs, so we don’t use the backend section, and only use this configuration

log-forward syslog
  # Listen on TCP port 514 for incoming TCP log messages
  bind 0.0.0.0:6514
  log ring@logbuffer local0

ring logbuffer
  description "buffer for logs"
  format rfc5424
  maxlen 1500
  size 65536
  timeout connect 10s
  timeout server 20s

  server filebeat-1  127.0.0.1:6515     check
  server filebeat-1  127.0.0.1:6516     check
  server filebeat-1  127.0.0.1:6517     check
  server filebeat-1  127.0.0.1:6518     check

This works well, however now when checking the stats with the first command, we see no servers or stats. I think this is expected as this tracks only backend servers, which are no longer configured.

Is there a way to see same type of stats output for the ringbuffer like I saw with the server backend using cli commands?

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 4832

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>