logrotate

The logrotate utility is designed to simplify the administration of log files on a system which generates a lot of log files.

  • 所有者: logrotate/logrotate
  • 平台:
  • 許可證: GNU General Public License v2.0
  • 分類:
  • 主題:
  • 喜歡:
    0
      比較:

Github星跟蹤圖

logrotate

The logrotate utility is designed to simplify the administration of log files on a system which generates a lot of log files. Logrotate allows for the automatic rotation compression, removal and mailing of log files. Logrotate can be set to handle a log file hourly, daily, weekly, monthly or when the log file gets to a certain size.

Download

The latest release is:

Previous releases:

Git checkout

You can also obtain code by using git checkout:

git clone https://github.com/logrotate/logrotate.git -b master

Replace master with branch or tag you intend to checkout

Verify and unpack

After downloading the tarball and .asc signature file, check the signature:

Get Kamil's PGP key rsa4096/72A37B36
(almost any keyserver will do if pgp.mit.edu is temporarily unavailable):

$ gpg --keyserver pgp.mit.edu --recv-key 992A96E075056E79CD8214F9873DB37572A37B36

and verify the PGP signature on the distribution tarball:

$ gpg --verify logrotate-3.11.0.tar.xz.asc logrotate-3.11.0.tar.xz

If successful your GPG output should look like this:

gpg: Signature made Fri 02 Dec 2016 08:30:39 AM EST
gpg:                using RSA key 873DB37572A37B36
gpg: Good signature from "Kamil Dudka <kdudka@redhat.com>" [unknown]
gpg: WARNING: This key is not certified with a trusted signature!
gpg:          There is no indication that the signature belongs to the owner.
Primary key fingerprint: 992A 96E0 7505 6E79 CD82  14F9 873D B375 72A3 7B36

You may then unpack the tarball:

$ tar -xJf logrotate-3.11.0.tar.xz

Notice that git tags are signed with same key:

$ git tag --verify 3.11.0

Compiling

Obtain source either by Downloading it or doing Git checkout.

Install dependencies for Debian systems:

apt-get update
apt-get install autoconf automake libpopt-dev libtool make xz-utils

Install dependencies for Fedora/CentOS systems:

yum install autoconf automake libtool make popt-devel xz

Compilation (autoreconf is optional if you obtained source from tarball):

cd logrotate-X.Y.Z
autoreconf -fiv
./configure
make

Patches and Questions

Open issues or pull requests on GitHub.

主要指標

概覽
名稱與所有者logrotate/logrotate
主編程語言C
編程語言Makefile (語言數: 5)
平台
許可證GNU General Public License v2.0
所有者活动
創建於2015-04-08 07:35:18
推送於2025-06-06 12:33:33
最后一次提交
發布數82
最新版本名稱3.22.0 (發布於 2024-06-01 17:40:25)
第一版名稱0-1 (發布於 )
用户参与
星數1.4k
關注者數25
派生數208
提交數1.1k
已啟用問題?
問題數287
打開的問題數40
拉請求數184
打開的拉請求數7
關閉的拉請求數193
项目设置
已啟用Wiki?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?