Qiita Teams that are logged in
You are not logged in to any team

Log in to Qiita Team
Community
OrganizationAdvent CalendarQiitadon (β)
Service
Qiita JobsQiita ZineQiita Blog
Help us understand the problem. What is going on with this article?

fluentdでCloudWatchにログを転送する

More than 1 year has passed since last update.

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"
ishigero
Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away