Learn linux log rotate from dovcot

2011-08-18  来源:本站原创  分类:OS  人气:84 

linux will automatically default in the log rotation, but sometimes run into some third-party software. For example, email in the dovcot, there is no automatic rotation, resulting in a very long period of time, the log file will be large, may result in serious system downtime.

Very simple example, after reading the configuration you should be able to own it!

Reference article: http://optics.csufresno.edu/ ~ kriehn/fedora/fedora_files/f9/howto/dovecot.html

Focus on this, translation is

Create the file / etc / logrotate.d / dovecot, and write the following

/var/log/dovecot/dovecot.log {
        notifempty
        weekly
        missingok
        rotate 4
}

Time can be daily, weekly, monthly, yearly estimates should not people use it. So you will see that dovecot.log will automatically delete the oldest production and turn the log of (in this case, the log will be saved the first 4 weeks)

Further reading:

http://www.ducea.com/2006/06/06/rotating-linux-log-files-part-2-logrotate/

http://miracle88.homeip.net/?p=1271

相关文章
  • Learn linux log rotate from dovcot 2011-08-18

    linux will automatically default in the log rotation, but sometimes run into some third-party software. For example, email in the dovcot, there is no automatic rotation, resulting in a very long period of time, the log file will be large, may result

  • learn linux - sed, sort, uniq, join, cut, paste, split 2010-12-31

    learn linux - sed, sort, uniq, join, cut, paste, split November 5 learn linux - sed, sort, uniq, join, cut, paste, split ============================== Sed =================== ======= 1, call sed Sed call in three ways: in the command line, type the

  • Learn linux / unix programming methodology, learning the four steps in Linux 2010-08-05

    Suppose you are a computer technical education, computer science courses such as basic data structures, operating systems, architecture, compiler theory, computer networks, like me you are completely repair can be divided into four stages from low to

  • [Reserved] recommended sites to learn linux script 2011-08-11

    Recommended sites to learn linux script http://linux.vbird.org/linux_basic/0320bash.php

  • Learn linux 2012-04-10

    I have to learn linux

  • Bird Brother linux private kitchens (Basics - 2. How to learn linux) Notes 2010-05-13

    1, X Window System In order to enhance the utilization rate of desktop computers, Linux and X Window System combines! Like the previous chapter, the note inside, should be noted that, X Window System is only just above a Linux software, rather than t

  • Learn linux / unix programming recommendations 2010-04-16

    First of all, learn first editor, vim, emacs what do. Then learn make file documents, as long as that point on the line, so you are ready to compile proceedings. Then take a look at "C Programming Language" K & R, so it basically can be prog

  • Bird Brother linux private kitchens (Basics - 2. How to learn linux) Note 2 2010-05-13

    1, then how to cultivate an interest and a sense of achievement then? There are several directions can be provided for your reference: • the establishment of interests: Linux can play above what is really too much, you can choose an interesting topic

  • Some advice to learn linux 2010-06-20

    1. Not when the "missionary" Many people in the discussion area caused by constant "Linux vs. Windows" like to discuss or even dispute the red in the face, it is not necessary. This debate is a waste of time without any help. Yes, you

  • Learn Linux, compile and install mysql-5.0.45.tar.gz 2011-04-24

    Compiled under Linux install mysql-5.0.45.tar.gz Reproduced <! - Body start -> (1) ------------- ---------- Preparatory work 1: If the downloaded file is named: mysql-5.0.45.tar.gz 2: If the copy to the / home under the 3: groupadd mysql # add the m

  • under linux log space is too large the solution 2011-08-31

    After the log is too large, if handled manually each time, is a very difficult thing. Here are some common methods you can use a simple linux command execution time: 1 delete <br /> time earlier log that has been useless, delete it. Here the mysql b

  • Outline Introduction to learn Linux 2010-10-10

    linux command must be familiar with the find.sed, awk to be more familiar with, will be regular. Understanding of unix programming, compiling, that many well-known under the gnu software and will be used. example: m4, automake, autoconfig, binutils,

  • linux log analysis work notes _resin 2010-10-13

    1, the display does not contain 'Mozilla' line. cat resin.log | grep-v 'Mozilla' | more Description: grep-v is not included, remove-v that contains 2, only the contents of the output to a file, the results of the analysis can also be written to the f

  • learn linux in the port view 2010-11-27

    netstat-anp | grep 8088 / / View the 8088 port usage Netstat-tln the port command is used to view the use of netstat-anp | grep 80 This table shows 7710 open ports, then the port belongs to which program? We can use the lsof-i: 7710 command to query:

  • To learn Linux commands 2010-12-21

    1. Kill Role: According to the process ID to kill the process Usage: kill [signal code] process ID For example: [Root @ localhost ~] # ps auxf | grep httpd Note: kill -9 to force the termination exit For example [root @ localhost ~] # ps aux | grep g

  • How to learn linux device drivers 2011-06-23

    Author: Julien Qing, China Qingyuan see embedded training center instructor. Linux systems are two major maintenance kernel version 2.4 and 2.6 in http://www.kernel.org/ available for download on the website to the latest 2.6 kernel linux-2.6.38.6, a

  • Way to learn Linux - Linux automatically mount the disk under Windows 2011-09-25

    Use the command Wrote fdisk-l View disk information I have the following: Wrote Disk / dev / sda: 320.1 GB, 320072933376 bytes 255 heads, 63 sectors / track, 38913 cylinders, total 625142448 sectors Units = sectors of 1 * 512 = 512 bytes Sector size

  • Recommend some good place to learn Linux 2010-09-05

    joyfire Study Notes System management, system startup, the project java open source Daquan The IDE to build Vim for PHP Chart to explain the use of five basic operation of VIM VIM uses a series of tutorials A Taiwan author VIM teaching, although very

  • The way to learn Linux - Oracle. MySQL client management tools navicat9 2010-11-25

    Download free version: http://download.navicat.com/download/navicat9_lite_cs.tar.gz No installation, simply double-click start_navicat after decompression to start. Problems: Link to a remote oracle database using navicat encountered 12737 error, Int

  • A good place to learn Linux bash 2011-04-21

    http://www.freeos.com/guides/lsst/ Absolute value ah. . .