Specifications

7 Select the events you want AFP service to log.
An entry is added to the log when a user performs an action you select.
When you choose the number of events to log, consider available disk space. The more
events you choose, the faster the log le will grow.
8 To specify how often the error log le contents are saved to an archive, select “Error
Log: Archive every __ days” and enter the number of days.
9 Click Save.
You can keep the archived logs for your records or manually delete them to free
disk space when they’re no longer needed. Log les are stored in /Library/Logs/
AppleFileService/. You can use the log rolling scripts supplied with Mac OS X Server
to reclaim disk space used by log les.
From the command line:
To change AFP service Logging settings: m
$ sudo serveradmin settings
afp:activityLog = value
afp:activityLogTime = value
afp:loggingAttributes:logLogin = value
afp:loggingAttributes:logLogout = value
afp:loggingAttributes:logOpenFork = value
afp:loggingAttributes:logCreateFile = value
afp:loggingAttributes:logCreateDir = value
afp:loggingAttributes:logDelete = value
afp:errorLogTime = value
Control-D
To view all AFP service settings: m
$ sudo serveradmin settings afp
Parameter Description
activityLog
Turn activity logging on or o.
Default =
no
loggingAttributes: logLogin
Record user logins in the activity log.
Default =
yes
loggingAttributes: logLogout
Log user logouts in the activity log.
Default =
yes
74 Chapter 4 Working with AFP Service