Показаны различия между двумя версиями страницы.
| Предыдущая версия справа и слева Предыдущая версия | |||
|
linux:samba:audit [2012/02/17 11:32] linko22@gmail.com |
linux:samba:audit [2012/02/17 11:34] (текущий) linko22@gmail.com |
||
|---|---|---|---|
| Строка 82: | Строка 82: | ||
| Add these lines: | Add these lines: | ||
| + | < | ||
| filter f_local5 {facility(local5); | filter f_local5 {facility(local5); | ||
| destination m_samba_audit { file("/ | destination m_samba_audit { file("/ | ||
| log { source(src); | log { source(src); | ||
| + | </ | ||
| BEFORE line | BEFORE line | ||
| + | < | ||
| log { source(src); | log { source(src); | ||
| - | + | </ | |
| - | This will tell syslog-ng to filter only LOCAL5 message and write them to | + | This will tell syslog-ng to filter only LOCAL5 message and write them to **/ |
| - | + | ||
| - | / | + | |
| - | and skip this audit records from being recorded in / | + | |
| Configuring | Configuring | ||
| Строка 98: | Строка 98: | ||
| In standard configuration of syslogd there is a line in file syslog.conf : | In standard configuration of syslogd there is a line in file syslog.conf : | ||
| + | < | ||
| *.*; | *.*; | ||
| + | </ | ||
| To filter audit messages away from main syslog file, change this line to: | To filter audit messages away from main syslog file, change this line to: | ||
| + | < | ||
| *.*; | *.*; | ||
| - | Add following line after | + | </ |
| + | Add following line after | ||
| + | < | ||
| local5.notice / | local5.notice / | ||
| + | </ | ||
| Restaring | Restaring | ||
| Строка 110: | Строка 116: | ||
| Restart samba | Restart samba | ||
| - | # / | + | |
| and syslog, ususally this is done via this command | and syslog, ususally this is done via this command | ||
| - | # / | + | |
| However in your distro may be different way. | However in your distro may be different way. | ||
| Строка 125: | Строка 131: | ||
| Create new file / | Create new file / | ||
| + | < | ||
| / | / | ||
| | | ||
| Строка 135: | Строка 142: | ||
| | | ||
| } | } | ||
| + | </ | ||
| References | References | ||
| - | http:// | + | [[http:// |
| - | The syslog-ng 3.0 Administrator Guide | + | |
| + | [[http:// | ||