This file defines the path, file names, and type of logging to be used by nfslogd. Each definition is associated with a tag. Starting NFS server logging requires that you identify the tag for each file system. The global tag defines the default values. The following parameters can be used with each tag as needed.
Specifies the default directory path for the logging files.
Sets the path and file name for the log files.
Selects the path and file name for the file-handle-to-path database files.
Determines the path and file name for the buffer files.
Selects the format to be used when creating user-readable log files. The basic format produces a log file similar to some ftpd daemons. The extended format gives a more detailed view.
For the parameters that can specify both the path and the file name, if the path is not specified, the path defined by defaultdir is used. Also, you can override defaultdir by using an absolute path.
To make identifying the files easier, place the files in separate directories. Here is an example of the changes needed.
% cat /etc/nfs/nfslog.conf #ident "@(#)nfslog.conf 1.5 99/02/21 SMI" # . . # NFS server log configuration file. # global defaultdir=/var/nfs \ log=nfslog fhtable=fhtable buffer=nfslog_workbuffer publicftp log=logs/nfslog fhtable=fh/fhtables buffer=buffers/workbuffer |
In this example, any file system shared with log=publicftp would use the following values: the default directory would be /var/nfs, log files would be stored in /var/nfs/logs/nfslog*, file-handle-to-path database tables would be stored in /var/nfs/fh/fhtables, and buffer files would be stored in /var/nfs/buffers/workbuffer.