Skip to content

Commit

Permalink
[tf] Modify fluentd output.conf for correct ES index prefixes for eve…
Browse files Browse the repository at this point in the history
…nts (magma#4575)

Signed-off-by: Andrei Lee <andreilee@fb.com>
  • Loading branch information
andreilee authored and chandra-77 committed Mar 26, 2021
1 parent 02fa39b commit 077a25a
Showing 1 changed file with 30 additions and 0 deletions.
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

0 comments on commit 077a25a

Please sign in to comment.