ufo-nginx-access.yml 827 Bytes
filebeat.prospectors:
- input_type: log
  paths:
     - /Data/logs/nginx/ufo_access.log
  document_type: nginx_access
  fields:
      source_ip: "{{ hostvars[inventory_hostname]['ansible_default_ipv4']['address'] }}"
      region: "az1"
      service: "ufo"
  fields_under_root: true
  tail_files: true

- input_type: log
  paths:
     - /Data/logs/nginx/ufo_error.log
  document_type: nginx_access_error
  fields:
      source_ip: "{{ hostvars[inventory_hostname]['ansible_default_ipv4']['address'] }}"
      region: "az1"
      service: "ufo"
  fields_under_root: true
  tail_files: true
  multiline.pattern: '^\d{4}'
  multiline.negate: true
  multiline.match: after

output.kafka:
  enabled: true
  hosts: ["ops.ckafka.yohoops.org:9092"]
  topic: '%{[type]}'
  compression: snappy
  max_message_bytes: 10000001
  worker: 2