Specifications

Chapter 4 Working with AFP Service 83
Keeping an Access Log for AFP Service
The access log records the times when a user connects or disconnects, opens a le, or
creates or deletes a le or folder.
To set up access logging:
1 Open Server Admin and connect to the server.
2 Click the triangle at the left of the server.
The list of services appears.
3 From the expanded Servers list, select AFP.
4 Click Settings, then click Logging.
5 Select “Enable access log.”
6 Select the events you want to record.
When choosing events to log, consider available disk space. The more events you
choose, the faster the log le will grow.
To view the log, open Server Admin, select AFP, and click Logs. Alternatively, use
Terminal to view the logs stored in /Library/Logs/AppleFileService/.
7 Click Save.
From the command line:
To set up access logging: m
$ sudo serveradmin settings
afp:activityLog = yes
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 = 0
Control-D