DEPSTRCZ

.yaml

Nov 7th, 2023
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.33 KB | None | 0 0
  1. # __ __ __
  2. # \ \ / / / /
  3. # \ V / / /
  4. # \_/ \/
  5. #
  6. # V E C T O R
  7. # Configuration
  8. #
  9. # ------------------------------------------------------------------------------
  10. # Website: https://vector.dev
  11. # Docs: https://vector.dev/docs
  12. # Chat: https://chat.vector.dev
  13. # ------------------------------------------------------------------------------
  14.  
  15. # Change this to use a non-default directory for Vector data storage:
  16. # data_dir = "/var/lib/vector"
  17.  
  18. # Random Syslog-formatted logs
  19. sources:
  20. dummy_logs:
  21. type: "demo_logs"
  22. format: "syslog"
  23. interval: 1
  24.  
  25. # Parse Syslog logs
  26. # See the Vector Remap Language reference for more info: https://vrl.dev
  27. transforms:
  28. parse_logs:
  29. type: "remap"
  30. inputs: ["dummy_logs"]
  31. source: |
  32. . = parse_syslog!(string!(.message))
  33.  
  34. # Print parsed logs to stdout
  35. sinks:
  36. print:
  37. type: "console"
  38. inputs: ["parse_logs"]
  39. encoding:
  40. codec: "json"
  41.  
  42. # Vector's GraphQL API (disabled by default)
  43. # Uncomment to try it out with the `vector top` command or
  44. # in your browser at http://localhost:8686
  45. # api:
  46. # enabled: true
  47. # address: "127.0.0.1:8686"
Advertisement
Add Comment
Please, Sign In to add comment