config.yaml 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. file:
  2. file/2:
  3. # This will write the pipeline data to a JSON file.
  4. # The data is written in Protobuf JSON encoding
  5. # (https://developers.google.com/protocol-buffers/docs/proto3#json).
  6. # Note that there are no compatibility guarantees for this format, since it
  7. # just a dump of internal structures which can be changed over time.
  8. # This intended for primarily for debugging Collector without setting up backends.
  9. path: ./filename.json
  10. rotation:
  11. max_megabytes: 10
  12. max_days: 3
  13. max_backups: 3
  14. localtime: true
  15. file/3:
  16. path: ./filename
  17. rotation:
  18. max_megabytes: 10
  19. max_days: 3
  20. max_backups: 3
  21. localtime: true
  22. format: proto
  23. compression: zstd
  24. file/no_rotation:
  25. path: ./foo
  26. file/rotation_with_default_settings:
  27. path: ./foo
  28. rotation:
  29. file/rotation_with_custom_settings:
  30. path: ./foo
  31. rotation:
  32. max_megabytes: 1234
  33. file/format_error:
  34. path: ./filename.log
  35. format: text
  36. file/compression_error:
  37. path: ./filename.log
  38. compression: gzip
  39. file/flush_interval_5:
  40. path: ./flushed
  41. flush_interval: 5
  42. file/flush_interval_5s:
  43. path: ./flushed
  44. flush_interval: 5s
  45. file/flush_interval_500ms:
  46. path: ./flushed
  47. flush_interval: 500ms
  48. file/flush_interval_negative_value:
  49. path: ./flushed
  50. flush_interval: "-1s"