How can I process all input files then exit? #23100
-
I want to run vector in a cronjob from a hosting service to ship apache logs to betterstack.com This means I'd like vector to run once, process all new files/lines since it last ran then exit. Is there some way to do this? Thanks, R. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Vector is designed to be more of an agent so it doesn't stop and start like that. If you started it as a service and let it run it would do what your wanting in real time but if you looking for more of a batching functionality I think you would have to write a more custom script cron. Something that would start vector, wait |
Beta Was this translation helpful? Give feedback.
Vector is designed to be more of an agent so it doesn't stop and start like that. If you started it as a service and let it run it would do what your wanting in real time but if you looking for more of a batching functionality I think you would have to write a more custom script cron.
Something that would start vector, wait
n
time limit, then stop the process. However sense this isnt how Vector was designed to be used im not certain the reliability of this architecture.