Skip to content

Debugging Tips

Output to File

[sinks.file_out]
  # General
  type = "file" # required
  inputs = ["log_files"]
  compression = "none" # optional, default
  path = "./app-logs/access_token-%Y-%m-%d.log" # required

  # Encoding
  encoding.codec = "ndjson" # required

  # Healthcheck
  healthcheck.enabled = true # optional, default

Dummy Sink

[sinks.blackhole]
  type = "blackhole"
  inputs = ["format_haproxy_logs"]

Console Sink

[sinks.console_out]
  type = "console"
  inputs = ["log_files"]
  target = "stdout"
  encoding.codec = "json"

CLI Commands

$ vector vrl
$ vector top