######################## Filebeat Configuration ############################

# ========================== Filebeat global options ===========================

filebeat.config:
  inputs:
    enabled: true
    path: ${path.config}/inputs.d/*.yml
    reload:
      enabled: true
      period: 10s
  modules:
    enabled: true
    path: ${path.config}/modules.d/*.yml
    reload:
      enabled: true
      period: 10s

# ================================== General ===================================

name: "{{ server }}"

# ================================== Outputs ===================================

output.elasticsearch:
  enabled: true
  hosts: ["https://{{ log_server }}:443"]

  compression_level: 0
  protocol: "https"

  username: "jingrow"
  password: "{{ kibana_password }}"

  path: "/elasticsearch"

  ssl.enabled: true
  ssl.verification_mode: strict
  ssl.supported_protocols: [TLSv1.3]

  {% if server_type is defined and server_type == "Database Server" %}

  bulk_max_size: 10

  {% endif %}

# ================================== Logging ===================================

logging.to_files: true
logging.files:
  path: /var/log/filebeat
