-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #50 from deskpro/logging-export-files
Clean up log file export
- Loading branch information
Showing
24 changed files
with
203 additions
and
206 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
.git/ | ||
.scratch/ | ||
hooks/ | ||
test/ | ||
|
||
.editorconfig | ||
.gitignore | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,30 @@ | ||
[program:vector] | ||
command=/usr/local/bin/vector --quiet --config /etc/vector/vector.toml --config /etc/vector/vector.d/*.toml --color never --log-format json | ||
command=/usr/local/bin/vector --watch-config --config /etc/vector/vector.toml --config /etc/vector/vector.d/*.toml --color never --log-format json | ||
user=vector | ||
umask=002 | ||
numprocs=1 | ||
startsecs=0 | ||
autostart=true | ||
autorestart=true | ||
# output would be from console sink, which we want to pass | ||
# on to stdout on the container (which would get consumed by docker logs) | ||
stdout_logfile=/dev/fd/1 | ||
stdout_logfile_maxbytes=0 | ||
stderr_logfile=/dev/fd/2 | ||
stderr_logfile_maxbytes=0 | ||
redirect_stderr=false | ||
redirect_stderr=true | ||
stdout_logfile=/var/log/vector.log | ||
stdout_logfile_maxbytes=10000000 | ||
stdout_logfile_backups=0 | ||
stopsignal=TERM | ||
stopwaitsecs=8 | ||
stopwaitsecs={{ getenv "FAST_SHUTDOWN" "false" | ternary "0" "8" }} | ||
# makes vector start first and shut down last so it | ||
# will read logs from other processes during shutdown | ||
priority=0 | ||
environment=VECTOR_MARKER="{{ getenv "VECTOR_MARKER" "" }}" | ||
environment=VECTOR_MARKER="{{ getenv "VECTOR_MARKER" "" }}",VECTOR_COLOR=never | ||
|
||
[eventlistener:rotate_logs] | ||
command=/etc/supervisor/rotate-logs | ||
events=TICK_60 | ||
autorestart=true | ||
buffer_size=1 | ||
stderr_logfile=/var/log/supervisor/rotate_logs.log | ||
stdout_logfile_maxbytes=10000000 | ||
stdout_logfile_backups=1 | ||
stdout_logfile_maxbytes=0 {{/* Our rotate-logs task will handle rotation */}} | ||
stdout_logfile_backups=0 | ||
stopsignal=KILL | ||
stopwaitsecs=0 | ||
environment=VECTOR_MARKER="{{ getenv "VECTOR_MARKER" "" }}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.