Prefer xtail for log tailing to support new files
For gitlab-org/charts/gitlab#1957 (closed)
Prefer using the xtail
utility so we can see new logs as they are written into the log directory in containers, example:
$ xtail /var/log/gitlab
** /var/log/gitlab/sidekiq_exporter.log ***
[2020-03-18T08:57:08.909+0000] 10.235.3.11 - - [18/Mar/2020:08:57:08 UTC] "GET /metrics HTTP/1.1" 200 4998 "-" "Prometheus/2.15.2"
[2020-03-18T08:57:15.552+0000] 10.232.20.41 - - [18/Mar/2020:08:57:15 UTC] "GET /readiness HTTP/1.1" 200 15 "-" "kube-probe/1.14+"
[2020-03-18T08:57:25.552+0000] 10.232.20.41 - - [18/Mar/2020:08:57:25 UTC] "GET /readiness HTTP/1.1" 200 15 "-" "kube-probe/1.14+"
[2020-03-18T08:57:35.552+0000] 10.232.20.41 - - [18/Mar/2020:08:57:35 UTC] "GET /readiness HTTP/1.1" 200 15 "-" "kube-probe/1.14+"
*** '/var/log/gitlab/new-file.log' has been created ***
*** /var/log/gitlab/new-file.log ***
foo
Edited by John Jarvis