M.C.P.C.

―むり・くり―プラスコミュニケーション(更新終了)


| トップページ |

2007年12月 3日 22:00

cronologをCentOS4に入れる

このエントリーをはてなブックマークに追加 mixiチェック

会社のWebサーバのログがlogrotate対象になっていなかったので2.5GBぐらいになってよめんぞボケ、て怒られたので、年末の大掃除もかねて重い腰を上げてcronologをインスコして、cronosplitで日ごとのログに分割しました。

cronologはRPMforgeで用意されているので、あらかじめRPMforgeを使えるようにしておく必要がありました。

CentOS で構築する自宅サーバ : yum に RPMforge リポジトリを追加する [centos.oss.sc]

インストールログ(CentOS4)

# yum --enablerepo=rpmforge provides "cronolog"
Searching Packages:
Setting up repositories
Reading repository metadata in from local files
 
 
cronolog.i386                            1.6.2-1.el4.rf         rpmforge
Matched from:
cronolog
Importing Additional filelist information for packages
 
 
cronolog.i386                            1.6.2-1.el4.rf         rpmforge
Matched from:
/usr/share/doc/cronolog-1.6.2
/usr/share/man/man1/cronolog.1m.gz
/usr/sbin/cronolog
/usr/share/doc/cronolog-1.6.2/ChangeLog
/usr/share/doc/cronolog-1.6.2/TODO
/usr/share/doc/cronolog-1.6.2/NEWS
/usr/share/doc/cronolog-1.6.2/README
/usr/share/doc/cronolog-1.6.2/AUTHORS
/usr/share/doc/cronolog-1.6.2/COPYING
/usr/share/info/cronolog.info.gz
cronolog = 1.6.2-1.el4.rf
 
 
cronolog.i386                            1.6.2-1.el4.rf         rpmforge
Matched from:
/usr/share/doc/cronolog-1.6.2
/usr/share/man/man1/cronolog.1m.gz
/usr/sbin/cronolog
/usr/share/doc/cronolog-1.6.2/ChangeLog
/usr/share/doc/cronolog-1.6.2/TODO
/usr/share/doc/cronolog-1.6.2/NEWS
/usr/share/doc/cronolog-1.6.2/README
/usr/share/doc/cronolog-1.6.2/AUTHORS
/usr/share/doc/cronolog-1.6.2/COPYING
/usr/share/info/cronolog.info.gz
cronolog = 1.6.2-1.el4.rf
 
 
cronolog.i386                            1.6.2-1.el4.rf         rpmforge
Matched from:
/usr/share/doc/cronolog-1.6.2
/usr/share/man/man1/cronolog.1m.gz
/usr/sbin/cronolog
/usr/share/doc/cronolog-1.6.2/ChangeLog
/usr/share/doc/cronolog-1.6.2/TODO
/usr/share/doc/cronolog-1.6.2/NEWS
/usr/share/doc/cronolog-1.6.2/README
/usr/share/doc/cronolog-1.6.2/AUTHORS
/usr/share/doc/cronolog-1.6.2/COPYING
/usr/share/info/cronolog.info.gz
cronolog = 1.6.2-1.el4.rf
 
 
cronolog.i386                            1.6.2-1.el4.rf         rpmforge
Matched from:
/usr/share/doc/cronolog-1.6.2
/usr/share/man/man1/cronolog.1m.gz
/usr/sbin/cronolog
/usr/share/doc/cronolog-1.6.2/ChangeLog
/usr/share/doc/cronolog-1.6.2/TODO
/usr/share/doc/cronolog-1.6.2/NEWS
/usr/share/doc/cronolog-1.6.2/README
/usr/share/doc/cronolog-1.6.2/AUTHORS
/usr/share/doc/cronolog-1.6.2/COPYING
/usr/share/info/cronolog.info.gz
cronolog = 1.6.2-1.el4.rf
 
 
cronolog.i386                            1.6.2-1.el4.rf         rpmforge
Matched from:
/usr/share/doc/cronolog-1.6.2
/usr/share/man/man1/cronolog.1m.gz
/usr/sbin/cronolog
/usr/share/doc/cronolog-1.6.2/ChangeLog
/usr/share/doc/cronolog-1.6.2/TODO
/usr/share/doc/cronolog-1.6.2/NEWS
/usr/share/doc/cronolog-1.6.2/README
/usr/share/doc/cronolog-1.6.2/AUTHORS
/usr/share/doc/cronolog-1.6.2/COPYING
/usr/share/info/cronolog.info.gz
cronolog = 1.6.2-1.el4.rf
 
 
cronolog.i386                            1.6.2-1.el4.rf         rpmforge
Matched from:
/usr/share/doc/cronolog-1.6.2
/usr/share/man/man1/cronolog.1m.gz
/usr/sbin/cronolog
/usr/share/doc/cronolog-1.6.2/ChangeLog
/usr/share/doc/cronolog-1.6.2/TODO
/usr/share/doc/cronolog-1.6.2/NEWS
/usr/share/doc/cronolog-1.6.2/README
/usr/share/doc/cronolog-1.6.2/AUTHORS
/usr/share/doc/cronolog-1.6.2/COPYING
/usr/share/info/cronolog.info.gz
cronolog = 1.6.2-1.el4.rf
# yum --enablerepo=rpmforge install cronolog
Setting up Install Process
Setting up repositories
Reading repository metadata in from local files
Parsing package install arguments
Resolving Dependencies
--> Populating transaction set with selected packages. Please wait.
---> Downloading header for cronolog to pack into transaction set.
 
cronolog-1.6.2-1.el4.rf.i 100% |=========================| 3.5 kB    00:00
---> Package cronolog.i386 0:1.6.2-1.el4.rf set to be updated
--> Running transaction check
 
Dependencies Resolved
 
=============================================================================
 Package                 Arch       Version          Repository        Size
=============================================================================
Installing:
 cronolog                i386       1.6.2-1.el4.rf   rpmforge           33 k
 
Transaction Summary
=============================================================================
Install      1 Package(s)
Update       0 Package(s)
Remove       0 Package(s)
Total download size: 33 k
Is this ok [y/N]: y
Downloading Packages:
 
(1/1): cronolog-1.6.2-1.e  47% |===========              |  16 kB    00:00 ETA
(1/1): cronolog-1.6.2-1.e 100% |=========================|  33 kB    00:00
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
 
  Installing: cronolog                     ######################### [1/1]
 
Installed: cronolog.i386 0:1.6.2-1.el4.rf
Complete!
#

使い方はググると出てくるかも

そして、せっかくだからログを圧縮したらbz2で3%ぐらいになりました。ログ読むときに解凍せないかんですけれども、まあしょうがないですよね。

投稿 大野 義貴 [Linux] | |

トラックバック(0)

トラックバックURL: http://blog.dtpwiki.jp/MTOS/mt-tb.cgi/2301

コメントする