Warning message

This translation is outdated. For the most up-to-date information, please refer to the English version.

rsyslog を使用して、ログの出力元ホスト毎に別のログファイルに出力するにはどのようにすれば良いですか?

Solution Verified - Updated -

Issue

  • syslogデーモンは、リモートからのログを、ホスト毎に別ファイルに出力する事をサポートしていないようですが、rsyslog を使用した場合は、どのように設定すれば良いですか?

  • リモートからのログを別々のファイル(例えば、host1.log、host2.logというように)出力したり、日付毎に出力(host1-20120912.log というように)するにはどのようにすれば良いですか?

Environment

  • Red Hat Enterprise Linux 5
  • Red Hat Enterprise Linux 6
  • rsyslog

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.