Upgrade to Pro — share decks privately, control downloads, hide ads and more …

OCI ロギングでカスタム・ログを収集する

Sponsored · Ship Features Fearlessly Turn features on and off without deploys. Used by thousands of Ruby developers.
Avatar for yukitkns yukitkns
February 20, 2024

OCI ロギングでカスタム・ログを収集する

Avatar for yukitkns

yukitkns

February 20, 2024
Tweet

More Decks by yukitkns

Other Decks in Programming

Transcript

  1. 4:以下のログが出⼒されている事を確認 ljournalctl -u unified- monitoring- agent_config_downloader. service l <source>内のpath︓収集対象のファイ ル・パス

    ※設定変更後のファイル・パスになっている事を 確認 l fluentd outputが"true"︓Fluentdへ の出⼒が完了 ※"false"と表⽰される場合は、エージェント構 成の設定が間違っている可能性が⾼く、構成の ⾒直しを推奨 12
  2. 7. /var/log/unified-monitoring-agent/unified- monitoring-agent のログを確認 l/var/log/unified- monitoring-agent/unified- monitoring-agent l file DEFAULT_CONFIG_FILE,

    <認証 ファイルを格納しているパス>︓認証情報が配 置されているパスを表⽰ l <source>内のpath︓収集対象のファイル・ パス ※設定変更後のファイル・パスになっている事を 確認 l following tail of /var/log /messages︓ファイル・パスで設 定したログの収集を開始 15
  3. 設定変更の全体地図 OCIのロギングの設定変更後、⼿動で内容更新をできるようになること OCI ロギング OS OCI ロギング 1.unified-monitoring- agent_config_downloader.service を起動

    2.unified-monitoring- agent_config_downloader.service のログを確認 3./etc/unified-monitoring-agent/conf.d/ fluentd_config/fluentd.conf を確認 4.unified-monitoring-agent.serviceを再起動 5.unified-monitoring-agent のログを確認 6.カスタム・ログに変更内容後のログが出⼒され、設定変更が完了 ファイル・パスを 「/var/log/*」→ 「/var/log/messages」 に変更 「/var/log/messages」 のログが表⽰される 19