Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

/etc/rsyslog.conf 記述方法?

138 views
Skip to first unread message

tanaka

unread,
Jul 3, 2010, 4:36:49 AM7/3/10
to
こんばんは、
いつも参考にさせていただいています。


/etc/rsyslog.confの設定で
/var/log/xxxx
-/var/log/xxx
のように - が付く場合と付かない場合では
どのように違うのでしょうか?


auth,authpriv.* /var/log/auth.log
*.*;auth,authpriv.none -/var/log/syslog
#cron.* /var/log/cron.log
daemon.* -/var/log/daemon.log

--------------------------------------
2010 FIFA World Cup News [Yahoo!Sports/sportsnavi]
http://pr.mail.yahoo.co.jp/southafrica2010/

KISE Hiroshi

unread,
Jul 3, 2010, 5:21:53 AM7/3/10
to
From: tanaka <tanaka...@yahoo.co.jp>
Subject: [debian-users:54317] /etc/rsyslog.conf 記述方法?
Date: Sat, 3 Jul 2010 17:36:49 +0900

> /etc/rsyslog.confの設定で
> /var/log/xxxx
> -/var/log/xxx
> のように - が付く場合と付かない場合では
> どのように違うのでしょうか?

オリジナル(?)のsyslogにもあった機能で、これは man rsyslog.conf に…
ありませんね。

http://www.rsyslog.com/doc-rsyslog_conf_actions.html

>> You may prefix each entry with the minus "-'' sign to omit syncing
>> the file after every logging. Note that you might lose information
>> if the system crashes right behind a write attempt. Nevertheless
>> this might give you back some performance, especially if you run
>> programs that use logging in a very verbose manner.

マイナス記号をつけると、通常のディスク書き込み時のバッファリングが
効くので性能改善になります。ですが、クラッシュするとまだ書き込まれて
いないデータは消えるでしょうね、という話です。

上のドキュメントはrsyslog-docパッケージに入っていると
思います(未確認)。
--
喜瀬“冬猫”浩

tanaka

unread,
Jul 3, 2010, 1:07:06 PM7/3/10
to
教えていただきありがとうございました。

0 new messages