Logspout envia logs antigos do docker

0

Olá, eu tenho logspout para enviar meus logs do contêiner docker para papertrail, mas agora eu descobri que após o logspout do contêiner do docker de reinicialização envie também todos os logs antigos.
Aqui está um exemplo:

Oct 06 15:37:09 gridhub r-Default-gridhub-1-96bd5cd9:  * Running on http://0.0.0.0:5000/ (Press CTRL+C to quit) 
Oct 06 15:37:09 gridhub r-Default-gridhub-1-96bd5cd9: 172.30.100.112 - - [03/Oct/2017 12:39:05] "GET / HTTP/1.1" 200 - 
Oct 06 15:37:09 gridhub r-Default-gridhub-1-96bd5cd9: 172.30.100.112 - - [03/Oct/2017 12:39:06] "GET /static/favicon.ico HTTP/1.1" 200 - 
Oct 06 15:37:09 gridhub r-Default-gridhub-1-96bd5cd9: 172.30.100.112 - - [03/Oct/2017 12:39:06] "GET /static/issue_count_low.png HTTP/1.1" 200 - 
Oct 06 15:37:09 gridhub r-Default-gridhub-1-96bd5cd9: 172.30.100.112 - - [03/Oct/2017 12:39:06] "GET /static/issue_count_high.png HTTP/1.1" 200 - 
Oct 06 15:37:09 gridhub r-Default-gridhub-1-96bd5cd9:  * Running on http://0.0.0.0:5000/ (Press CTRL+C to quit) 
Oct 11 10:21:38 gridhub r-Default-gridhub-1-96bd5cd9:  * Running on http://0.0.0.0:5000/ (Press CTRL+C to quit) 
Oct 11 10:21:38 gridhub r-Default-gridhub-1-96bd5cd9: 172.30.100.112 - - [03/Oct/2017 12:39:05] "GET / HTTP/1.1" 200 - 
Oct 11 10:21:38 gridhub r-Default-gridhub-1-96bd5cd9: 172.30.100.112 - - [03/Oct/2017 12:39:06] "GET /static/favicon.ico HTTP/1.1" 200 - 
Oct 11 10:21:38 gridhub r-Default-gridhub-1-96bd5cd9: 172.30.100.112 - - [03/Oct/2017 12:39:06] "GET /static/issue_count_low.png HTTP/1.1" 200 - 
Oct 11 10:21:38 gridhub r-Default-gridhub-1-96bd5cd9: 172.30.100.112 - - [03/Oct/2017 12:39:06] "GET /static/issue_count_high.png HTTP/1.1" 200 - 
Oct 11 10:21:38 gridhub r-Default-gridhub-1-96bd5cd9:  * Running on http://0.0.0.0:5000/ (Press CTRL+C to quit) 
Oct 11 10:21:38 gridhub r-Default-gridhub-1-96bd5cd9:  * Running on http://0.0.0.0:5000/ (Press CTRL+C to quit) 

e no contêiner docker é somente:

10/3/2017 2:38:50 PM * Running on http://0.0.0.0:5000/ (Press CTRL+C to quit)
10/3/2017 2:39:05 PM172.30.100.112 - - [03/Oct/2017 12:39:05] "GET / HTTP/1.1" 200 -
10/3/2017 2:39:06 PM172.30.100.112 - - [03/Oct/2017 12:39:06] "GET /static/favicon.ico HTTP/1.1" 200 -
10/3/2017 2:39:06 PM172.30.100.112 - - [03/Oct/2017 12:39:06] "GET /static/issue_count_low.png HTTP/1.1" 200 -
10/3/2017 2:39:06 PM172.30.100.112 - - [03/Oct/2017 12:39:06] "GET /static/issue_count_high.png HTTP/1.1" 200 -
10/6/2017 3:37:09 PM * Running on http://0.0.0.0:5000/ (Press CTRL+C to quit)
10/11/2017 10:21:38 AM * Running on http://0.0.0.0:5000/ (Press CTRL+C to quit)

Alguém sabe como enviar apenas os últimos logs reais após o reinício?

    
por Applemann 11.10.2017 / 10:55

1 resposta

0

Ok, finalmente corrigi-lo adicionando BACKLOG=false no ambiente do contêiner logspout ..
link

    
por 11.10.2017 / 12:33