hi. Hello there. I have seen many examples. but I can not find where the problem. Please can you help?
https://forums.freenas.org/index.ph...on-samba-shares-full_audit-freenas-9-3.13840/
1. "Volume0" named, I have to mount the new disk.
2. add to CIFS service Auxiliary parameters
Code:
3. add to all sharing-windows share (CIFS):
Code:
4.edit syslog.conf (at /conf/base/etc/) (added)
5. "/etc/local/syslog-ng.conf " and " /conf/base/etc/local/syslog-ng.conf.freenas" (added.)
and reboot freenas. but no log. I'm checking ssh. "/mnt/volume0/logs/samba/" no directory. What could be the problem? Where is wrong?
https://forums.freenas.org/index.ph...on-samba-shares-full_audit-freenas-9-3.13840/
1. "Volume0" named, I have to mount the new disk.
2. add to CIFS service Auxiliary parameters
Code:
Code:
log file = /mnt/volume0/logs/samba/%m.log full_audit:prefix = %u|%I|%S full_audit:failure = connect full_audit:success = connect disconnect opendir mkdir rmdir closedir open close read pread write pwrite sendfile rename unlink chmod fchmod chown fchown chdir ftruncate lock symlink readlink link mknod realpath full_audit:facility = local5 full_audit:priority = notice
3. add to all sharing-windows share (CIFS):
Code:
Code:
vfs object = full_audit
4.edit syslog.conf (at /conf/base/etc/) (added)
Code:
local5.notice /mnt/volume0/logs/samba/samba_docs.log local5.info /mnt/volume0/logs/samba/samba_activity.log local0.notice;local1.notice;local2.notice;local3.notice /var/log/messages local4.notice;local6.notice;local7.notice /var/log/messages
5. "/etc/local/syslog-ng.conf " and " /conf/base/etc/local/syslog-ng.conf.freenas" (added.)
Code:
destination m_samba_audit { file("/var/log/samba4/activity.log"); }; log { source(src); filter(f_local5);destination(m_samba_audit); flags(final); };
and reboot freenas. but no log. I'm checking ssh. "/mnt/volume0/logs/samba/" no directory. What could be the problem? Where is wrong?
Last edited: