-
[sources.nginx_logs]
type = "file"
include = [ "/var/log/nginx/access.log" ]
read_from = "end"
[sinks.my_sink_id]
type = "console"
inputs = ["nginx_logs"]
encoding.codec = "json" When trying to run the above on a fresh install of Vector from the downloaded bash script (not via apt) I encountered the same issue as this discussion:
Based on the above discussion, I tried creating fixing by creating This feels like I'm going the wrong direction due to the permissions. Instead what should I be doing? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Hello, Generally, if you install vector as a package it should automatically create the directory otherwise, you need to do it manually. |
Beta Was this translation helpful? Give feedback.
This is accurate. Some additional documentation on what the directory is used for: https://vector.dev/docs/reference/configuration/global-options/#data_dir