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に認証を使用しない場合、値を割り当てずに
esuser
、espassword
および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: