Difference between revisions of "Bering-uClibc 6.x - User Guide - Basic Configuration - Log Files"
(→Log Files) |
(→Log file maintenance) |
||
Line 21: | Line 21: | ||
tbd | tbd | ||
===Log file maintenance=== | ===Log file maintenance=== | ||
+ | The task of log file maintenance is accomplished by <code class="filename">/usr/bin/logrotate</code>. | ||
+ | <code class="filename">logrotate</code> is started daily, weekly and monthly from <code class="filename">/etc/cron.daily/multicron-d</code>, <code class="filename">/etc/cron.weekly/multicron-w</code> and <code class="filename">/etc/cron.monthly/multicron-m</code>. | ||
+ | |||
+ | <code class="filename">logrotate</code> keeps the configuration files in <code class="filename">/etc/logrotate.d</code>, usually named after the application generating the log file (e.g <code class="filename">/etc/logrotate.d/ulogd</code>. | ||
+ | |||
+ | ====logrotate options==== | ||
tbd | tbd | ||
+ | |||
===Using Spacecheck in lrp.conf=== | ===Using Spacecheck in lrp.conf=== | ||
tbd | tbd |
Revision as of 14:16, 29 May 2016
Basic Configuration - Log Files | ||
---|---|---|
Prev | Bering-uClibc 6.x - User Guide | Next |
Contents
Log Files
This chapter explains the location and contents of log files generated on a LEAF Bering-uClibc router, the configuration
in syslog-ng
, maintenance with logrotate
and how to use spacecheck
in lrp.conf
.
In a space constraint and long running environment like LEAF Bering-uClibc, it will be useful to understand how log files, which tends to grow unlimited, are created and maintained.
Note: Remote logging is not described in this chapter.
Location and contents of main log files
tbd
Configuration of syslog-ng
tbd
Log file maintenance
The task of log file maintenance is accomplished by /usr/bin/logrotate
.
logrotate
is started daily, weekly and monthly from /etc/cron.daily/multicron-d
, /etc/cron.weekly/multicron-w
and /etc/cron.monthly/multicron-m
.
logrotate
keeps the configuration files in /etc/logrotate.d
, usually named after the application generating the log file (e.g /etc/logrotate.d/ulogd
.
logrotate options
tbd
Using Spacecheck in lrp.conf
tbd
Prev | Up | Next |