example_serial.conf 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. [Serial logs]
  2. ## Example: Log collector that will collect logs from a serial interface.
  3. ## Required settings
  4. enabled = no
  5. log type = flb_serial
  6. ## Optional settings, common to all log source.
  7. ## Uncomment to override global equivalents in netdata.conf.
  8. # update every = 1
  9. # update timeout = 10
  10. # use log timestamp = auto
  11. # circular buffer max size MiB = 64
  12. # circular buffer drop logs if full = no
  13. # compression acceleration = 1
  14. # db mode = none
  15. # circular buffer flush to db = 6
  16. # disk space limit MiB = 500
  17. ## Set up configuration specific to flb_serial
  18. log path = /dev/pts/4
  19. bitrate = 115200
  20. min bytes = 1
  21. # separator = X
  22. # format = json
  23. ## Submit structured log entries to the system journal
  24. # submit logs to system journal = no
  25. ## Charts to enable
  26. # collected logs total chart enable = no
  27. # collected logs rate chart enable = yes
  28. ## Example of extracting custom metrics from serial interface messages:
  29. # custom 1 chart = UART0
  30. # # custom 1 regex name = test
  31. # custom 1 regex = .*\bUART0\b.*
  32. # # custom 1 ignore case = no