Replies: 1 comment
-
Hi @ahoiroman, it looks like you aren't doing anything wrong and you hit a weird issue with the file source/sink. I looked into it and got a minimal config:
and used this small script to test it
It seems like Vector is kind of slow to process/send small changes in files. If you tweak some of the values and write a couple of kb/sec before spinning up Vector and let to file grow to a couple of kb and then spin up Vector you'll see that the output file size will catch up in < 1 sec but it will consistently stay a few bytes behind. This issue is even more visible when writes are smaller. Using One "solution" I found is to limit |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Question
Hi there,
I am taking my first steps with vector, so please be kind ;-)
What I want to do: At the moment, my webserver and php-fpm are logging to
/var/log/
. The structure is like this:Same for PHP:
That works and while I need to rotate them manually, this is also quite stable. But it is slow. Sometimes logs that are present in the caddy log immediately after page hit take up to 10s to be visible in the forwarded log file. And that on a local test system without real traffic.
This is an indicator for me that I am doing something that is not correct.
Vector Config
Vector Logs
Beta Was this translation helpful? Give feedback.
All reactions