ユーザ用ツール

syslog

概要

VineLinux ではsyslogが長く使われていたが、rsyslogに変わっている。 この設定や運用についてまとめておく。

設定

リモートからのログを受信する

ルータからのログなど、自前でとっているログを吐き出させた方が便利なものについては、まとめて受信しておきたい。

リモートからの受信に関する定義は、rsyslog.conf の13行目あたりからに書かれている。

# Provides UDP syslog reception
$ModLoad imudp
$UDPServerRun 514

# Provides TCP syslog reception
#$ModLoad imtcp
#$InputTCPServerRun 514

デフォルトでは、コメントアウトされているので、UDPの方をコメントアウトする。 1)

VineLinuxに関して

1)
一般にsyslogのプロトコルはUDPを使っているので。TCPが必要なら下の方をコメントアウトすればよい。

This website uses cookies. By using the website, you agree with storing cookies on your computer. Also, you acknowledge that you have read and understand our Privacy Policy. If you do not agree, please leave the website.

More information