fluentd.conf 819 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. <source>
  2. @type forward
  3. port 24224
  4. bind 0.0.0.0
  5. </source>
  6. <filter logback.**>
  7. @type record_transformer
  8. remove_keys ["caller", "throwable"]
  9. <record>
  10. fluentd "#{Socket.gethostname}"
  11. tag ${tag}
  12. application ${tag_parts[1]}
  13. hostname ${tag_suffix[2]}
  14. </record>
  15. </filter>
  16. <match **>
  17. @type copy
  18. //<store>
  19. // @type stdout
  20. //</store>
  21. <store>
  22. @type loki
  23. url "http://192.168.56.137:3100"
  24. extra_labels {"from":"fluentd-aggr"}
  25. <label>
  26. application
  27. hostname
  28. </label>
  29. <buffer>
  30. flush_thread_count 4
  31. chunk_limit_size 8M
  32. queue_limit_length 8
  33. retry_max_interval 30
  34. retry_forever false
  35. flush_interval 15s
  36. flush_at_shutdown true
  37. </buffer>
  38. </store>
  39. </match>