Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[tf] Modify fluentd output.conf for correct ES index prefixes for events #4575

Merged
merged 1 commit into from
Jan 29, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 30 additions & 0 deletions orc8r/cloud/deploy/terraform/orc8r-helm-aws/logging.tf
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,35 @@ resource "helm_release" "fluentd" {
</transport>
</source>
output.conf: |-
<match eventd>
@id eventd_elasticsearch
@type elasticsearch
@log_level info
include_tag_key true
host "#{ENV['OUTPUT_HOST']}"
port "#{ENV['OUTPUT_PORT']}"
scheme "#{ENV['OUTPUT_SCHEME']}"
ssl_version "#{ENV['OUTPUT_SSL_VERSION']}"
logstash_format true
logstash_prefix "eventd"
reconnect_on_error true
reload_on_failure true
reload_connections false
log_es_400_reason true
<buffer>
@type file
path /var/log/fluentd-buffers/eventd.kubernetes.system.buffer
flush_mode interval
retry_type exponential_backoff
flush_thread_count 2
flush_interval 5s
retry_forever
retry_max_interval 30
chunk_limit_size "#{ENV['OUTPUT_BUFFER_CHUNK_LIMIT']}"
queue_limit_length "#{ENV['OUTPUT_BUFFER_QUEUE_LIMIT']}"
overflow_action block
</buffer>
</match>
<match **>
@id elasticsearch
@type elasticsearch
Expand All @@ -69,6 +98,7 @@ resource "helm_release" "fluentd" {
reconnect_on_error true
reload_on_failure true
reload_connections false
log_es_400_reason true
<buffer>
@type file
path /var/log/fluentd-buffers/kubernetes.system.buffer
Expand Down