[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: logging samba access



## Dariush Pietrzak (eyck@forumakad.pl):

> > > Is it possible to log the file/dir accesses to samba server? I.e. I got 
> > > a share, and when someone mounts (from win or unix) it and access file, 
> > > or write files I want samba to log it to the smb.log. Is this possible?
> > Ever had a look in /var/log/samba/? If you are missing something,
> > increase log level in smb.conf.
>  The problem is - in order to see file/dir accesses you need to increase
> log level in smb.conf. 

I said so. "log level = 2" does the job.

>  This sounds innocent enough unless you actually do it - the level in which
> you see those accesses is one of 'DEBUG' ones, and you get GIGs of logfiles
> per day/hour, and then parsing this becomes a nightmare.

Depends on your traffic. You might want to set "max log size".
Use perl to extract the relevant information, so you don't need to
keep the whole logfiles around.

Regrads,
Christoph

-- 
Spare Space



Reply to: