Operating System - OpenVMS
1751817 Members
5594 Online
108781 Solutions
New Discussion юеВ

Re: Openvms FTP Server Log File

 
SOLVED
Go to solution
Imker
New Member

Openvms FTP Server Log File

Is there a way to controll, limit or configure
the log file size of the ftp server in Openvms?
14 REPLIES 14
Ian Miller.
Honored Contributor

Re: Openvms FTP Server Log File

probably.

What version of OpenVMS and which version of what TCPIP Product are you using?
____________________
Purely Personal Opinion
Hoff
Honored Contributor

Re: Openvms FTP Server Log File

>Is there a way to controll, limit or configure
the log file size of the ftp server in Openvms?

Yes.
Imker
New Member

Re: Openvms FTP Server Log File

thanks.

OpenVMS V8.3-1H1

$ ! Product: HP TCP/IP Services for OpenVMS
$ ! Version: V5.6-ECO3
Imker
New Member

Re: Openvms FTP Server Log File

Yes is part of the answer I hoped for. Please provide some hints on how to achieve such a configuration.

Thanks.
Steven Schweda
Honored Contributor

Re: Openvms FTP Server Log File

What would you like to happen when the log
file gets too big? Stop logging? (Then why
have a log file?)

It should be pretty easy to rename+compress
the log file periodically (or periodically
check it to see if it's too big, and then
rename+compress it). Sufficiently old
(partial) log files can also be deleted
(where the exact meaning of "sufficiently
old" is your decision).

Do you get a new log file version if you
disable+enable the FTP service?

Is there some actual problem which you are
trying to solve?
Imker
New Member

Re: Openvms FTP Server Log File

there should be a roll over configuration or something like that.

The problem now is that the log file (one single big file) grows large and larger (beyond gigabytes of data).

it should not stop logging, but at least it should splitt the files... on a date or size rollover. the way it is now, the large file is to big to be of any use.
Steven Schweda
Honored Contributor
Solution

Re: Openvms FTP Server Log File

> Do you get a new log file version if you
> disable+enable the FTP service?

Ok. If you won't try it, then I suppose that
I'll need to.

alp $ dg ftplog

Directory SYS$SYSDEVICE:[TCPIP$FTP]

TCPIP$FTP_RUN.LOG;2572
115 6-APR-2011 00:13:41.70 (RWED,RWED,RE,)
TCPIP$FTP_RUN.LOG;2571
1 6-APR-2011 00:09:43.25 (RWED,RWED,RE,)
[...]


ALP $ tcpip disable service ftp
ALP $ tcpip enable service ftp


alp $ dg ftplog

Directory SYS$SYSDEVICE:[TCPIP$FTP]

TCPIP$FTP_RUN.LOG;2573
0 20-APR-2011 10:21:50.09 (RWED,RWED,RE,)
TCPIP$FTP_RUN.LOG;2572
115 6-APR-2011 00:13:41.70 (RWED,RWED,RE,)
TCPIP$FTP_RUN.LOG;2571
1 6-APR-2011 00:09:43.25 (RWED,RWED,RE,)
[...]


So, yes, apparently you get a new log file
version if you disable+enable the FTP
service. This does disable the FTP service
(very) briefly. (But it is faster than a
reboot.)

> [...] (beyond gigabytes of data).

Your FTP server must be much busier than
mine. (Or else you're logging is much more
detailed than mine.)
Hoff
Honored Contributor

Re: Openvms FTP Server Log File

You'd think that there would be an automatic roll-over or automatic housekeeping or related, yes. But there is not. This is VMS, and the system manager gets to implement this sort of on-going maintenance stuff specifically for each local site. For better or worse.

Here are some general introductions to the topic of housekeeping on a VMS server...

http://h71000.www7.hp.com/wizard/wiz_5964.html

http://h30499.www3.hp.com/t5/System-Management/House-keeping-for-file-version-in-Openvms/m-p/4467712#M24960


http://h30499.www3.hp.com/t5/System-Management/Disable-FTP-Log-and-anonymous-log/m-p/4199045#M21095

 

What generally happens here is a periodic purge as part of the usual housekeeping job most everybody runs (usually a batch job) that might zip files or purge older versions of the logs or whatever is locally preferred.

Here are some of the typical considerations and targets; FTP is among these, but accounting and auditing and operator logs are, too.

http://www3.sympatico.ca/n.rieck/docs/openvms_notes_system_manager.html

It's also possible to set a directory version limit on the logs and related, which then gets rid of the older files automatically.

Here's the general template of the batch job, and some of the usual targets for purges and related:

http://labs.hoffmanlabs.com/node/97
http://labs.hoffmanlabs.com/node/939

Some folks will just brute-force the ftp-related problem and shut off all FTP logging. There are a couple of ways to do that, not the least of which is creating a runt ;32767 version as the current log version. That'll block new logs.

Assuming that was you, please post up the answer over on Superuser, too. (There's not a big VMS population over on SU, FWIW.)

Jess Goodman
Esteemed Contributor

Re: Openvms FTP Server Log File

If you are willing to change FTP servers, I am running an unreleased version of the HGftp software that has this capability.

Our site's VMS FTP servers handle over 125,000 sessions per day. That's more than one ftp login every second, and on average about 7 files get transferred per second.

The logs for these servers record all of this activity, and that takes up about 160MB per day. We are a 24x7 shop, but I can create new versions of the log files every day without dropping one user session.

That's very useful for running our daily reports. If you are interested, one of us can check with Hunter Goatley, but I doubt that he would have any problem releasing it to you.

Jess
I have one, but it's personal.