2
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

fluentdでCloudWatchにログを転送する

Posted at

EKS上のPodのログをCloudWatchに転送するためのtips

fluentdのymlファイルが公開されていますが、運用するにあたり一部設定をする必要があるのでそれの共有になります。(ドキュメントにも記載あります)
以下の2つを設定します。

  • nodeのロールにarn:aws:iam::aws:policy/CloudWatchFullAccessを追加
  • ymlファイルにFLUENT_UIDを追加

ymlファイルの修正箇所(抜粋)

fluentd-daemonset-cloudwatch-rbac.yaml
      containers:
      - name: fluentd
        image: fluent/fluentd-kubernetes-daemonset:cloudwatch
        env:
          - name: LOG_GROUP_NAME
            value: "your log group name"
          - name: AWS_REGION
            value: "your region"
          - name: FLUENT_UID
            value: "0"
2
3
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
2
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?