Server logging - confused

Core FTP Server questions and answers
Post Reply
cashsale
Posts: 5
Joined: Fri Aug 03, 2007 3:59 pm

Server logging - confused

Post by cashsale »

Hi,

I'm having a difficult time with logging on build 201. I want to log everything. I started with this and checked the daily option:

%Y%m%d.log

That created a file in every folder I accessed which made a big mess. It also didn't properly add the extension to the file, but gave me names like 20070731log instead of 20070731.log

I changed it to this:

%Y%m%d\.log

That gave the correct filename, but still left a mess of log files all over the place, none of which really seemed to contain the actions taken by the user. I read that you can specify a static path, so I changed it to this:

c:\log\%Y%m%d\.log

Now I get no logs at all. The service account has full rights to that folder. So my question: How do I get a daily log showing all user activity and keep that file in one place and have it contain EVERY action by the user?

Thanks.
cashsale
Posts: 5
Joined: Fri Aug 03, 2007 3:59 pm

Post by cashsale »

Tried your suggested change and updated to 206, but I get no logging whatsoever. The file never gets created. Permissions on the folder are good (full control for the service account).

Other thoughts?
cashsale
Posts: 5
Joined: Fri Aug 03, 2007 3:59 pm

Post by cashsale »

Windows 2003 server SP1
guerrero
Posts: 1
Joined: Tue Aug 21, 2007 11:18 am

Logging questions

Post by guerrero »

I am not sure how the logging function works. From this forum got that the format c:\log\%Y%m%d.log can be used
But there are 2 places where one can log:
1. is accessible from the view -- options menu, there you can insert the previous mentioned format

2 the second is from the scheduler, when one is scheduling a task there is also a place to mark that a log is needed.

I would like to have this clear: Which one to use and how?
At the moment only the 2nd option is working(?) but I only get 1 file COREFTP.LOG in the System directory and that is not what is wanted.

thanks
cashsale
Posts: 5
Joined: Fri Aug 03, 2007 3:59 pm

Post by cashsale »

Further weirdness:

I used ntfilemon to trace what the service is doing. I am running as a service, and I enter the log filename in the field provided in domain properties, logging, more..

When I enter this: c:\sftp\log.log
The trace says the service is trying to open this: C:\sftp\c:\

Enter this: c:\\sftp\\%Y%m%d\.log
Is opens this: C:\sftp\20070821\c:\

Note the invalid path and lack of actual filename or extension in both, plus the 'c:\' added for some reason at the end, and the upper-case "C" at the beginning. Something very strange with that.

I did get it work using forward slashes:
Enter this: c:/sftp/%Y%m%d.log
Opens this: c:\sftp\20070821.log

Still, it doesn't log all activity, only directory listings, even though I have every box checked. At least I can see that someone connected now.
Post Reply