LoginSignup
10
8

More than 5 years have passed since last update.

td-agentをroot権限で起動する

Posted at

/var/log/messages他、root所有のファイルを読み取りたい場合など。
運用は慎重に行う必要がありますがこのような起動方法もあるということで。

/etc/sysconfig/td-agent を作成

DAEMON_ARGS="--user root"
TD_AGENT_ARGS="/usr/sbin/td-agent --group root --log /var/log/td-agent/td-agent.log"

td-agent再起動

# /etc/init.d/td-agent restart
10
8
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
10
8