1. max_procs: 4
    2. queue.mem.events: 4096
    3. queue.mem.f lush.min_events: 2048
    4. filebeat.inputs:
    5. - type: log
    6. enabled: true
    7. max_bytes: 20480
    8. recursive_glob.enabled: true
    9. paths:
    10. - /home/xxx/netlog/*/*/*.txt
    11. - type: filestream
    12. enabled: false
    13. paths:
    14. - /var/log/*.log
    15. - type: udp
    16. enabled: true
    17. host: 'localhost:9000'
    18. max_message_size: 10KiB
    19. read_buffer: 0
    20. filebeat.config.modules:
    21. path: ${path.config}/modules.d/*.yml
    22. reload.enabled: false
    23. setup.template.settings:
    24. index.number_of_shards: 1
    25. setup.kibana:
    26. #host: "localhost:5601"
    27. #space.id:
    28. output.kafka:
    29. enabled: true
    30. hosts: ["kafka_host:port"]
    31. topic: uat_log_net
    32. partition.round_robin:
    33. reachable_only: true
    34. worker: 4
    35. required_acks: 1
    36. compression: gzip
    37. max_message_bytes: 1000000
    38. processors:
    39. - add_host_metadata:
    40. when.not.contains.tags: forwarded
    41. - add_cloud_metadata: ~
    42. - add_docker_metadata: ~
    43. - add_kubernetes_metadata: ~