---
### General logging settings
openshift_logging_fluentd_image_pull_secret: "{{ openshift_logging_image_pull_secret }}"
openshift_logging_fluentd_master_url: "https://kubernetes.default.svc.{{ openshift.common.dns_domain }}"
openshift_logging_fluentd_namespace: openshift-logging

### Common settings
# map_from_pairs is a custom filter plugin in role lib_utils
openshift_logging_fluentd_nodeselector:
  logging-infra-fluentd: 'true'
openshift_logging_fluentd_cpu_limit: null
openshift_logging_fluentd_cpu_request: 100m
openshift_logging_fluentd_memory_limit: 756Mi
openshift_logging_fluentd_hosts: ['--all']

# float time in seconds to wait between node labelling
openshift_logging_fluentd_label_delay: '0.5'

# Fluentd deployment type
openshift_logging_fluentd_deployment_type: "hosted"

### Used by "hosted" and "secure-host" deployments

# Destination for the application based logs
openshift_logging_fluentd_app_host: "logging-es"
openshift_logging_fluentd_app_port: 9200
# Destination for the operations based logs
openshift_logging_fluentd_ops_host: "{{ openshift_logging_fluentd_app_host }}"
openshift_logging_fluentd_ops_port: "{{ openshift_logging_fluentd_app_port }}"

#openshift_logging_fluentd_refresh_interval: 5
#openshift_logging_fluentd_rotate_wait: 5

# openshift_logging_fluentd_merge_json_log configures fluentd to parse
# JSON log messages into the top level payload envelope
openshift_logging_fluentd_merge_json_log: "true"
# these are all undefined by default - listed here for reference
#openshift_logging_fluentd_extra_keep_fields: "field1,field2"
#openshift_logging_fluentd_keep_empty_fields: "field1,field2"
#openshift_logging_fluentd_use_undefined: "true"
#openshift_logging_fluentd_undefined_name: "undefined"
#openshift_logging_fluentd_undefined_to_string: "true"
#openshift_logging_fluentd_undefined_dot_replace_char: "_"
#openshift_logging_fluentd_undefined_max_num_fields: 200
#openshift_logging_fluentd_use_multiline_json: "true"
#openshift_logging_fluentd_use_multiline_journal: "true"

### Used by "hosted" and "secure-aggregator" deployments
openshift_logging_fluentd_journal_source: ""
openshift_logging_fluentd_journal_read_from_head: ""

openshift_logging_fluentd_app_client_cert: /etc/fluent/keys/cert
openshift_logging_fluentd_app_client_key: /etc/fluent/keys/key
openshift_logging_fluentd_app_ca: /etc/fluent/keys/ca
openshift_logging_fluentd_ops_client_cert: /etc/fluent/keys/ops-cert
openshift_logging_fluentd_ops_client_key: /etc/fluent/keys/ops-key
openshift_logging_fluentd_ops_ca: /etc/fluent/keys/ops-ca


# used by "secure-host" and "secure-aggregator" deployments
openshift_logging_fluentd_shared_key: "{{ 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789' | random_word(128) }}"
openshift_logging_fluentd_aggregating_port: 24284
openshift_logging_fluentd_aggregating_host: "${HOSTNAME}"
openshift_logging_fluentd_aggregating_secure: "no"
openshift_logging_fluentd_aggregating_strict: "no"
openshift_logging_fluentd_aggregating_cert_path: none
openshift_logging_fluentd_aggregating_key_path: none
openshift_logging_fluentd_aggregating_passphrase: none

# set openshift_logging_use_mux=maximal by default.
# if the cluster is not configured with mux, this default value is going to be ignored.
openshift_logging_mux_client_mode: "maximal"

### Deprecating in 3.6
# following can be uncommented to provide values for configmaps -- take care when providing file contents as it may cause your cluster to not operate correctly
#fluentd_config_contents:
#fluentd_throttle_contents:
#fluentd_secureforward_contents:

openshift_logging_fluentd_file_buffer_limit: 256Mi

# Configure fluentd to tail audit log file and filter out container engine's logs from there
# These logs are then stored in ES operation index
openshift_logging_fluentd_audit_container_engine: False

# If this is set to true then the logging-fluentd configmap will be overridden
# by the default values. If set to false, the existing logging-fluentd
# configmap will be left in tact.
openshift_logging_fluentd_replace_configmap: no
