System Management Guide Event and Accounting Logs
Edition: 01 3HE 11018 AAAC TQZZA 303
5.12.2.1.4 Log File Commands
file-id
Syntax [no] file-id log-file-id
Context config>log
Description This command enables the context to configure a file ID template that is used as a destination
for an event log or an accounting (billing) file.
The template defines the file location and characteristics of the destination for a log event
message stream or for accounting and billing information. The log-file-id variable defined in
this context is subsequently specified in the to command under config>log>log-id or
config>log>accounting-policy contexts, to direct specific logging or accounting source
streams to the file destination.
A file ID can only be assigned to either one log-id or one accounting-policy. It cannot be
reused for multiple instances. A file ID and associated file definition must exist for each log
and accounting file that will be stored in the file system.
A file is created when the file ID defined by this command is selected as the destination type
for a specific log or accounting record. Log files are collected in a “log” directory. Accounting
files are collected in an “act” directory.
The filenames for a log or accounting file are created by the system (see Table 35).
where:
• ll is the log-id
• aa is the accounting policy-id
• ff is the file-id
• timestamp is the actual timestamp when the file is created. The format for the timestamp
is yyyymmdd-hhmmss, where:
− yyyy is the year (for example, 2016)
− mm is the month number (for example, 12 for December)
− dd is the day of the month (for example, 03 for the 3rd of the month)
− hh is the hour of the day in 24-hour format (for example, 04 for 4 a.m.)
Table 35 Log Filenames
File Type Filename
Log File logllff-timestamp
Accounting File actaaff-timestamp