概要

リンク

インストール

  1. eventlog
    [root@host ~]# cd eventlog-0.2.12/
    [root@host eventlog-0.2.12]# ./configure --prefix=/opt/eventlog-0.2.12
    [root@host eventlog-0.2.12]# make install
    
  2. syslog-ng
    [root@host eventlog-0.2.12]# cd ../syslog-ng-3.3.8/
    [root@host syslog-ng-3.3.8]# export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/opt/eventlog-0.2.12/lib/pkgconfig/
    [root@host syslog-ng-3.3.8]# ./configure --prefix=/opt/syslog-ng-3.3.8
    [root@host syslog-ng-3.3.8]# make
    [root@host syslog-ng-3.3.8]# make install
    
  3. 起動スクリプトの組み込み
    [root@host syslog-ng-3.3.8]# cd contrib/rhel-packaging
    [root@host rhel-packaging]# cp syslog-ng.init /etc/init.d/syslog-ng
    [root@host rhel-packaging]# chmod 755 /etc/init.d/syslog-ng
    [root@host rhel-packaging]# chkconfig --add syslog-ng
    [root@host rhel-packaging]# chkconfig syslog-ng on
    [root@host rhel-packaging]# chkconfig --list syslog-ng
    syslog-ng       0:off   1:off   2:on    3:on    4:on    5:on    6:off
    

設定

syslog-ng.conf

オプション

options { option (value);... };

ログ受信

source id {
        src(params);
        ...
};

フィルタ

filter [ filter(value);... ];

ログ出力先

destination dst-name { file("path/filename [option]" );};
オプション説明
owner("username")
group("groupname")
perm(permission)

関連付け

log {
        source(src);
        filter(value);
        destination(dst);
};

トップ   編集 凍結 差分 バックアップ 添付 複製 名前変更 リロード   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS
Last-modified: 2020-07-08 (水) 18:10:14