Cisco Cisco Application Extension Platform for SRE

Page of 124
Cisco Application eXtension Platform 1.1 User Guide
Configuring the Application Service Environment
80
Cisco Application eXtension Platform 1.1 User Guide
OL-14815-01
Configuring Log File Size Limits
To configure the log file size, perform the following steps.
SUMMARY STEPS
1.
configure terminal 
2.
app-service application-name 
3.
limit log-file size megabytes 
DETAILED STEPS
Configuring Remote Logging
To configure remote logging, perform the following steps.
SUMMARY STEPS
1.
configure terminal
Command or Action
Purpose
Step 1
configure terminal
 
Enters global configuration mode.
Step 2
app-service 
application-name 
Enters application service mode.
Step 3
limit log-file size
 megabytes 
Sets the size of the log file /var/log/messages.log. Each 
virtual instance writes a syslog to its own file 
/var/log/messages.log
Once this file reaches the limit specified by this 
command, its contents are moved to a backup log file 
messages.log.prev and a new messages.log file is 
started. 
The range is 0–40 MB with a default size of 5 MB for 
two files. 
When the log file size reaches its limit, messages are 
moved to an alternate file messages.log.prev
megabytes—The range of the log file size from 
0–40 MB. 
When the value is out of range, the following message 
appears: 
%Invalid input detected at ‘^’ marker 
If the log file size limits are not set (no limit log-file 
size
), the size reverts to the default value of 5 MB. 
If the log file size is set to 0 MB, a minimum file size 
of 10 KB is set. 
To view log files under the /var/log directory, use the show 
log name
 command in the