10.2.3 Logstashの有効化

$WORKDIR/kubernetes/helmディレクトリに移動し、次のようにlogging-override-values.yamlファイルを作成します:
elk:
  imagePullSecrets:
    - name: dockercred
  IntegrationEnabled: true
  logStashImage: logstash:<ELK_VER>
  logstashConfigMap: false
  esindex: oudlogs-00001
  sslenabled: <ELK_SSL>
  eshosts: <ELK_HOSTS>
  # Note: We need to provide either esuser,espassword or esapikey
  esuser: <ELK_USER>
  espassword: elasticsearch-pw-elastic
  esapikey: elasticsearch-pw-elastic
  • <ELK_VER><ELK_SSL><ELK_HOSTS>および<ELK_USER>を、環境の値と一致するように変更します。
  • SSLを使用する場合、$WORKDIR/kubernetes/helm/oud-ds-rs/certs/elk.crtを、ElasticSearchサーバーのelk.crtに置き換えます。
  • ELK認証にAPI KEYを使用する場合、値なしでesuser:espassword:の両方を残します。
  • ELK認証にパスワードを使用する場合、esapi_key:は残しますが、elasticsearch-pw-elasticは削除します。
  • ELKに認証を使用しない場合、値を割り当てずにesuserespasswordおよびesapi_keyを残します。
  • yamlファイルの残りの行は、変更しないでください。
例:
elk:
  imagePullSecrets:
    - name: dockercred
  IntegrationEnabled: true
  logStashImage: logstash:8.3.1
  logstashConfigMap: false
  esindex: oudlogs-00001
  sslenabled: true   
  eshosts: https://elasticsearch.example.com:9200
  # Note: We need to provide either esuser,espassword or esapikey
  esuser: logstash_internal
  espassword: elasticsearch-pw-elastic
  esapikey: