This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: internal-sftp logs


On Fri, Aug 17, 2012 at 01:46:42PM -0400, James Calfee wrote:
> Where are the logs in Cygwin for sftp?
> 
> I'm using the sftp subsystem.  There is nothing to be found in
> /var/log/sshd.log or /var/log/*.  I have already enabled logging in my
> sshd_config file as follows:
> 
> Subsystem       sftp    internal-sftp -l INFO

Just define the subsystem and configure the SyslogFacility option
to suit your needs, which in turn depends on how you've configured
your syslog daemon. E.g. :

sshd_config:

Subsystem       sftp    internal-sftp
SyslogFacility AUTH

syslog-ng.conf:

source s_src { system(); internal(); };
destination d_auth { file("/var/log/auth.log"); };
filter f_auth { facility(auth, authpriv) and not filter(f_debug); };
log { source(s_src); filter(f_auth); destination(d_auth); };

-- 
Primary key fingerprint: AD8F BDC0 5A2C FD5F A179  60E7 F79B AB04 5299 EC56

Attachment: signature.asc
Description: Digital signature


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]