mirror of
https://github.com/netbirdio/plugins.git
synced 2026-05-22 18:44:07 -07:00
net: plugin proper remote log settings
This commit is contained in:
@@ -35,7 +35,13 @@
|
||||
function haproxy_syslog()
|
||||
{
|
||||
$syslogconf = array();
|
||||
$syslogconf['haproxy'] = array("facility" => array('haproxy'), "local" => "/var/run/haproxy/var/run/log");
|
||||
|
||||
$syslogconf['haproxy'] = array(
|
||||
'local' => '/var/run/haproxy/var/run/log',
|
||||
'facility' => array('haproxy'),
|
||||
'remote' => 'relayd',
|
||||
);
|
||||
|
||||
return $syslogconf;
|
||||
}
|
||||
|
||||
|
||||
@@ -63,7 +63,12 @@ function if_l2tp_services()
|
||||
function if_l2tp_syslog()
|
||||
{
|
||||
$logfacilities = array();
|
||||
$logfacilities['l2tps'] = array('facility' => array('l2tps'));
|
||||
|
||||
$logfacilities['l2tps'] = array(
|
||||
'facility' => array('l2tps'),
|
||||
'remote' => 'vpn',
|
||||
);
|
||||
|
||||
return $logfacilities;
|
||||
}
|
||||
|
||||
|
||||
@@ -70,7 +70,12 @@ function if_pppoe_services()
|
||||
function if_pppoe_syslog()
|
||||
{
|
||||
$logfacilities = array();
|
||||
$logfacilities['poes'] = array('facility' => array('poes'));
|
||||
|
||||
$logfacilities['poes'] = array(
|
||||
'facility' => array('poes'),
|
||||
'remote' => 'vpn',
|
||||
);
|
||||
|
||||
return $logfacilities;
|
||||
}
|
||||
|
||||
|
||||
@@ -63,7 +63,12 @@ function if_pptp_services()
|
||||
function if_pptp_syslog()
|
||||
{
|
||||
$logfacilities = array();
|
||||
$logfacilities['pptps'] = array('facility' => array('pptps'));
|
||||
|
||||
$logfacilities['pptps'] = array(
|
||||
'facility' => array('pptps'),
|
||||
'remote' => 'vpn',
|
||||
);
|
||||
|
||||
return $logfacilities;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user