Skip to content

Commit

Permalink
create an haproxy.log to catch generic haproxy messages
Browse files Browse the repository at this point in the history
  • Loading branch information
nqb committed Jul 5, 2022
1 parent d22c909 commit d3f2447
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
7 changes: 6 additions & 1 deletion lib/pf/constants/syslog.pm
Original file line number Diff line number Diff line change
Expand Up @@ -190,13 +190,18 @@ our @SyslogInfo = (
{
'description' => 'haproxy DB log',
'name' => 'haproxy_db.log',
'conditions' => [ '$programname == "haproxy" and ($msg contains "mysq3l" or $msg contains "backend has no server available")' ]
'conditions' => [ '$programname == "haproxy" and ($msg contains "mysql" or $msg contains "backend has no server available")' ]
},
{
'description' => 'haproxy admin log',
'name' => 'haproxy_admin.log',
'conditions' => [ '$programname == "haproxy" and ($msg contains "admin-https" or $msg contains "backend has no server available")' ]
},
{
'description' => 'haproxy general log',
'name' => 'haproxy.log',
'conditions' => [ '$programname == "haproxy"' ]
},
{
'description' => 'Firewall log',
'name' => 'firewall.log',
Expand Down
4 changes: 2 additions & 2 deletions lib/pf/file_paths.pm
Original file line number Diff line number Diff line change
Expand Up @@ -367,8 +367,8 @@ $connectors_config_file = catdir($conf_dir,"connectors.conf");
radius.log redis-cache.log redis_ntlm_cache.log
redis_queue.log redis_server.log mariadb.log
mysql-probe.log galera-autofix.log haproxy_portal.log
haproxy_db.log haproxy_admin.log proxysql.log firewall.log
pfconnector-client.log pfconnector-server.log keepalived.log
haproxy.log haproxy_db.log haproxy_admin.log proxysql.log
firewall.log pfconnector-client.log pfconnector-server.log keepalived.log
innobackup.log
);

Expand Down

0 comments on commit d3f2447

Please sign in to comment.