Diferencia entre revisiones de «Rsyslog»

De gacq wiki
Saltar a: navegación, buscar
(Página nueva: = Configs = == Send to mySQL all logons to a Samba PDC == /etc/rsyslog.d/mysql.conf <pre> $ModLoad ommysql :msg, contains, "connect to service netlogon initially as user" :ommysql:lo...)
 
(Configs)
 
(No se muestran 3 ediciones intermedias del mismo usuario)
Línea 1: Línea 1:
 
 
= Configs =
 
= Configs =
 
== Send to mySQL all logons to a Samba PDC ==
 
== Send to mySQL all logons to a Samba PDC ==
 +
aptitude install rsyslog-mysql
 +
 +
=== rsyslogd config ===
 +
;on MySQL server
 
/etc/rsyslog.d/mysql.conf
 
/etc/rsyslog.d/mysql.conf
 
<pre>
 
<pre>
 
$ModLoad ommysql
 
$ModLoad ommysql
 
:msg, contains, "connect to service netlogon initially as user" :ommysql:localhost,Syslog,rsyslog,pass
 
:msg, contains, "connect to service netlogon initially as user" :ommysql:localhost,Syslog,rsyslog,pass
 +
</pre>
 +
 +
;To receive remote notifications, for example from BDC on PDC uncomment on/etc/rsyslog.conf
 +
<pre>
 +
$ModLoad imtcp
 +
$InputTCPServerRun 514
 +
</pre>
 +
 +
and on BDC /etc/rsyslog.d/to_remote.conf
 +
<pre>
 +
$ModLoad ommysql
 +
:msg, contains, "connect to service netlogon initially as user" @@10.0.0.1
 +
</pre>
 +
 +
 +
=== Samba ===
 +
/etc/samba/smb.conf
 +
<pre>
 +
[global]
 +
syslog = 2
 
</pre>
 
</pre>
  

Revisión actual del 09:04 16 nov 2009

Configs

Send to mySQL all logons to a Samba PDC

aptitude install rsyslog-mysql

rsyslogd config

on MySQL server

/etc/rsyslog.d/mysql.conf

$ModLoad ommysql
:msg, contains, "connect to service netlogon initially as user" :ommysql:localhost,Syslog,rsyslog,pass
To receive remote notifications, for example from BDC on PDC uncomment on/etc/rsyslog.conf
$ModLoad imtcp
$InputTCPServerRun 514

and on BDC /etc/rsyslog.d/to_remote.conf

$ModLoad ommysql
:msg, contains, "connect to service netlogon initially as user" @@10.0.0.1


Samba

/etc/samba/smb.conf

[global]
syslog = 2

Referencias

Filtros