mapwoc
(usa Debian)
Enviado em 13/04/2016 - 10:36h
arasouza escreveu:
mapwoc escreveu:
arasouza escreveu:
mapwoc escreveu:
arasouza escreveu:
Cara não existe bolo pronto sem pesquisar a receita e fazer acontecer, se não consegue tem que rever sua área... mas vamos lá
posta o conteúdo do seu logrotate.conf, e vamos analisar juntos:
cat /etc/logrotat.conf
Em relação aos logs, considere a possibilidade de ir morar na China em uma região que apenas se fala mandarim, tem que aprender cara, os logs são parte crucial do sistema, você não vai conseguir resolver nem 5% dos problemas no S.O. sem uma analise mínima no log da aplicação... portanto...
Arasouza, eu não trabalho com a área de informática, entrei nela de paraquedas, pois meus conhecimentos nessa área são bastante difusos, a minha área de atuação é administrativa empresarial, e por tanto nunca tive nenhum aprendizado fixo nessa área, se você poder me ajudar a aprender sobre isso eu agradeceria muito, confesso que apos ter entrado no mundo Linux eu descobri muita coisa que anteriormente não me passava pela cabeça e agora eu estou aprendendo bastante, mas invariavelmente os meus conhecimentos é baseados nos erros que faço no meu computador pessoal.
Quanto ao conteúdo do seu logrotate.conf, esta ai abaixo:
mapwoc@metamorphose:~$ cat /etc/logrotate.conf
# see "man logrotate" for details
# rotate log files weekly
daily
# keep 4 weeks worth of backlogs
rotate 4
# create new (empty) log files after rotating old ones
create
# uncomment this if you want your log files compressed
#compress
# packages drop log rotation information into this directory
include /etc/logrotate.d
# no packages own wtmp, or btmp -- we'll rotate them here
/var/log/wtmp {
missingok
monthly
create 0664 root utmp
rotate 1
}
/var/log/btmp {
missingok
monthly
create 0660 root utmp
rotate 1
}
# system-specific logs may be configured here
Blz, cara seguinte:
# rotate log files weekly
daily <==== Aqui veja que seus logs já estão sendo rotacionados diariamente, portanto não tem muito o que fazer
# keep 4 weeks worth of backlogs
rotate 4
# create new (empty) log files after rotating old ones
create
# uncomment this if you want your log files compressed
#compress <=== aqui vc pode retirar o comentário "#" e ativar a compressão dos arquivos log.1, assim teríamos um redução nos demais arquivos dos logs
Em suma cara sera necessário a análise dos arquivos de log citados, pois algo está gerando informações demasiadamente aumentando o tamanho dos mesmos, vamos começar pelo kern veja o q vc acha de anormal (repetido etc), e posta aqui para analisarmnos.
Bom dia eu alterei ele conforme o comentario de uma outra pessoa que respondeu primeiro me passando alguns artigos de como mexer no logrotate e coloquei daily no lugar de monthly, e assim meio que resolveu parte do problema, agora os log não passam de 200mb, mas mesmo assim acho que talvez seja muito alto o consumo, se eu postar o log vc tem como me ajudar a decifrar o log para mim poder conseguir resoplver alguns problemas que de vez em quando eu crio aqui no meu computador, outra coisa se tiver alguma apostila ou artigo para poder me ajudar a descobrir o que esta escrito nos logs eu agradeço muito.
Ok, mas a intenção é essa mesmo mapwoc, e de ajuda mutua, o q vc fez foi amenizar o efeito, agora precisa descobrir a causa, com certeza, foi exatamente o q eu disse, primeiro analise os logs, e vá postando o q vc achar interessante e estranho, comece pelo kernel, messages, e veja também as dicas:
https://www.vivaolinux.com.br/dica/Syslog-Gerenciamento-de-logs-do-sistema
https://www.vivaolinux.com.br/topico/vivaolinux/Visualizar-LOGs
Oi bom dia tem como me ajudar a entender esse log abaixo
Apr 13 10:36:21 metamorphose kernel: [25799.357669] evbug: Event. Dev: input9, Type: 0, Code: 0, Value: 0
Apr 13 10:36:22 metamorphose kernel: [25800.363894] evbug: Event. Dev: input9, Type: 4, Code: 4, Value: 458831
Apr 13 10:36:22 metamorphose kernel: [25800.363906] evbug: Event. Dev: input9, Type: 1, Code: 106, Value: 1
Apr 13 10:36:22 metamorphose kernel: [25800.363911] evbug: Event. Dev: input9, Type: 0, Code: 0, Value: 0
Apr 13 10:36:22 metamorphose kernel: [25800.427970] evbug: Event. Dev: input9, Type: 4, Code: 4, Value: 458831
Apr 13 10:36:22 metamorphose kernel: [25800.427983] evbug: Event. Dev: input9, Type: 1, Code: 106, Value: 0
Apr 13 10:36:22 metamorphose kernel: [25800.427986] evbug: Event. Dev: input9, Type: 0, Code: 0, Value: 0
Apr 13 10:36:22 metamorphose kernel: [25800.603192] evbug: Event. Dev: input9, Type: 4, Code: 4, Value: 458831
Apr 13 10:36:22 metamorphose kernel: [25800.603205] evbug: Event. Dev: input9, Type: 1, Code: 106, Value: 1
Apr 13 10:36:22 metamorphose kernel: [25800.603210] evbug: Event. Dev: input9, Type: 0, Code: 0, Value: 0
Apr 13 10:36:22 metamorphose kernel: [25800.652247] evbug: Event. Dev: input9, Type: 4, Code: 4, Value: 458831
Apr 13 10:36:22 metamorphose kernel: [25800.652257] evbug: Event. Dev: input9, Type: 1, Code: 106, Value: 0
Apr 13 10:36:22 metamorphose kernel: [25800.652261] evbug: Event. Dev: input9, Type: 0, Code: 0, Value: 0
Apr 13 10:36:22 metamorphose kernel: [25800.786412] evbug: Event. Dev: input9, Type: 4, Code: 4, Value: 458832
Apr 13 10:36:22 metamorphose kernel: [25800.786422] evbug: Event. Dev: input9, Type: 1, Code: 105, Value: 1
Apr 13 10:36:22 metamorphose kernel: [25800.786426] evbug: Event. Dev: input9, Type: 0, Code: 0, Value: 0
Apr 13 10:36:22 metamorphose kernel: [25800.964635] evbug: Event. Dev: input9, Type: 4, Code: 4, Value: 458832
Apr 13 10:36:22 metamorphose kernel: [25800.964646] evbug: Event. Dev: input9, Type: 1, Code: 105, Value: 0
Apr 13 10:36:22 metamorphose kernel: [25800.964650] evbug: Event. Dev: input9, Type: 0, Code: 0, Value: 0
Apr 13 10:36:22 metamorphose kernel: [25801.200925] evbug: Event. Dev: input9, Type: 4, Code: 4, Value: 458828
Apr 13 10:36:22 metamorphose kernel: [25801.200936] evbug: Event. Dev: input9, Type: 1, Code: 111, Value: 1
Apr 13 10:36:22 metamorphose kernel: [25801.200940] evbug: Event. Dev: input9, Type: 0, Code: 0, Value: 0
Apr 13 10:36:23 metamorphose kernel: [25801.296053] evbug: Event. Dev: input9, Type: 4, Code: 4, Value: 458828
Apr 13 10:36:23 metamorphose kernel: [25801.296058] evbug: Event. Dev: input9, Type: 1, Code: 111, Value: 0
Apr 13 10:36:23 metamorphose kernel: [25801.296060] evbug: Event. Dev: input9, Type: 0, Code: 0, Value: 0
Apr 13 10:36:23 metamorphose kernel: [25801.397167] evbug: Event. Dev: input9, Type: 4, Code: 4, Value: 458828
Apr 13 10:36:23 metamorphose kernel: [25801.397178] evbug: Event. Dev: input9, Type: 1, Code: 111, Value: 1
Apr 13 10:36:23 metamorphose kernel: [25801.397182] evbug: Event. Dev: input9, Type: 0, Code: 0, Value: 0
Apr 13 10:36:23 metamorphose kernel: [25801.477261] evbug: Event. Dev: input9, Type: 4, Code: 4, Value: 458828
Apr 13 10:36:23 metamorphose kernel: [25801.477271] evbug: Event. Dev: input9, Type: 1, Code: 111, Value: 0
Apr 13 10:36:23 metamorphose kernel: [25801.477275] evbug: Event. Dev: input9, Type: 0, Code: 0, Value: 0
Apr 13 10:36:23 metamorphose kernel: [25801.574375] evbug: Event. Dev: input9, Type: 4, Code: 4, Value: 458828
Apr 13 10:36:23 metamorphose kernel: [25801.574385] evbug: Event. Dev: input9, Type: 1, Code: 111, Value: 1
Apr 13 10:36:23 metamorphose kernel: [25801.574389] evbug: Event. Dev: input9, Type: 0, Code: 0, Value: 0
Apr 13 10:36:23 metamorphose kernel: [25801.663477] evbug: Event. Dev: input9, Type: 4, Code: 4, Value: 458828
Apr 13 10:36:23 metamorphose kernel: [25801.663487] evbug: Event. Dev: input9, Type: 1, Code: 111, Value: 0
Apr 13 10:36:23 metamorphose kernel: [25801.663491] evbug: Event. Dev: input9, Type: 0, Code: 0, Value: 0
Apr 13 10:36:23 metamorphose kernel: [25801.752598] evbug: Event. Dev: input9, Type: 4, Code: 4, Value: 458828
Apr 13 10:36:23 metamorphose kernel: [25801.752607] evbug: Event. Dev: input9, Type: 1, Code: 111, Value: 1
Apr 13 10:36:23 metamorphose kernel: [25801.752611] evbug: Event. Dev: input9, Type: 0, Code: 0, Value: 0
Apr 13 10:36:23 metamorphose kernel: [25801.840707] evbug: Event. Dev: input9, Type: 4, Code: 4, Value: 458828
Apr 13 10:36:23 metamorphose kernel: [25801.840716] evbug: Event. Dev: input9, Type: 1, Code: 111, Value: 0
Apr 13 10:36:23 metamorphose kernel: [25801.840720] evbug: Event. Dev: input9, Type: 0, Code: 0, Value: 0
Apr 13 10:36:23 metamorphose kernel: [25801.932818] evbug: Event. Dev: input9, Type: 4, Code: 4, Value: 458828
Apr 13 10:36:23 metamorphose kernel: [25801.932828] evbug: Event. Dev: input9, Type: 1, Code: 111, Value: 1
Apr 13 10:36:23 metamorphose kernel: [25801.932832] evbug: Event. Dev: input9, Type: 0, Code: 0, Value: 0
Apr 13 10:36:23 metamorphose kernel: [25801.989867] evbug: Event. Dev: input9, Type: 4, Code: 4, Value: 458828
Apr 13 10:36:23 metamorphose kernel: [25801.989874] evbug: Event. Dev: input9, Type: 1, Code: 111, Value: 0
Apr 13 10:36:23 metamorphose kernel: [25801.989876] evbug: Event. Dev: input9, Type: 0, Code: 0, Value: 0
Apr 13 10:36:23 metamorphose kernel: [25802.074998] evbug: Event. Dev: input9, Type: 4, Code: 4, Value: 458828
Apr 13 10:36:23 metamorphose kernel: [25802.075012] evbug: Event. Dev: input9, Type: 1, Code: 111, Value: 1
Apr 13 10:36:23 metamorphose kernel: [25802.075015] evbug: Event. Dev: input9, Type: 0, Code: 0, Value: 0
Apr 13 10:36:23 metamorphose kernel: [25802.161103] evbug: Event. Dev: input9, Type: 4, Code: 4, Value: 458828
Apr 13 10:36:23 metamorphose kernel: [25802.161113] evbug: Event. Dev: input9, Type: 1, Code: 111, Value: 0
Apr 13 10:36:23 metamorphose kernel: [25802.161117] evbug: Event. Dev: input9, Type: 0, Code: 0, Value: 0
Apr 13 10:36:24 metamorphose kernel: [25802.233190] evbug: Event. Dev: input9, Type: 4, Code: 4, Value: 458828
Apr 13 10:36:24 metamorphose kernel: [25802.233200] evbug: Event. Dev: input9, Type: 1, Code: 111, Value: 1
Apr 13 10:36:24 metamorphose kernel: [25802.233204] evbug: Event. Dev: input9, Type: 0, Code: 0, Value: 0
Apr 13 10:36:24 metamorphose kernel: [25802.330319] evbug: Event. Dev: input9, Type: 4, Code: 4, Value: 458828
Apr 13 10:36:24 metamorphose kernel: [25802.330332] evbug: Event. Dev: input9, Type: 1, Code: 111, Value: 0
Apr 13 10:36:24 metamorphose kernel: [25802.330337] evbug: Event. Dev: input9, Type: 0, Code: 0, Value: 0
Apr 13 10:36:24 metamorphose kernel: [25802.419427] evbug: Event. Dev: input9, Type: 4, Code: 4, Value: 458828
Apr 13 10:36:24 metamorphose kernel: [25802.419440] evbug: Event. Dev: input9, Type: 1, Code: 111, Value: 1
Apr 13 10:36:24 metamorphose kernel: [25802.419443] evbug: Event. Dev: input9, Type: 0, Code: 0, Value: 0
Apr 13 10:36:24 metamorphose kernel: [25802.507529] evbug: Event. Dev: input9, Type: 4, Code: 4, Value: 458828
Apr 13 10:36:24 metamorphose kernel: [25802.507540] evbug: Event. Dev: input9, Type: 1, Code: 111, Value: 0
Apr 13 10:36:24 metamorphose kernel: [25802.507545] evbug: Event. Dev: input9, Type: 0, Code: 0, Value: 0
Apr 13 10:36:24 metamorphose kernel: [25802.601647] evbug: Event. Dev: input9, Type: 4, Code: 4, Value: 458828
Apr 13 10:36:24 metamorphose kernel: [25802.601658] evbug: Event. Dev: input9, Type: 1, Code: 111, Value: 1
Apr 13 10:36:24 metamorphose kernel: [25802.601662] evbug: Event. Dev: input9, Type: 0, Code: 0, Value: 0
Apr 13 10:36:24 metamorphose kernel: [25802.700769] evbug: Event. Dev: input9, Type: 4, Code: 4, Value: 458828
Apr 13 10:36:24 metamorphose kernel: [25802.700780] evbug: Event. Dev: input9, Type: 1, Code: 111, Value: 0
Apr 13 10:36:24 metamorphose kernel: [25802.700784] evbug: Event. Dev: input9, Type: 0, Code: 0, Value: 0
Apr 13 10:36:24 metamorphose kernel: [25802.784869] evbug: Event. Dev: input9, Type: 4, Code: 4, Value: 458828
Apr 13 10:36:24 metamorphose kernel: [25802.784879] evbug: Event. Dev: input9, Type: 1, Code: 111, Value: 1
Apr 13 10:36:24 metamorphose kernel: [25802.784883] evbug: Event. Dev: input9, Type: 0, Code: 0, Value: 0
Apr 13 10:36:24 metamorphose kernel: [25802.881992] evbug: Event. Dev: input9, Type: 4, Code: 4, Value: 458828
Apr 13 10:36:24 metamorphose kernel: [25802.882006] evbug: Event. Dev: input9, Type: 1, Code: 111, Value: 0
Apr 13 10:36:24 metamorphose kernel: [25802.882009] evbug: Event. Dev: input9, Type: 0, Code: 0, Value: 0
Apr 13 10:36:24 metamorphose kernel: [25802.973102] evbug: Event. Dev: input9, Type: 4, Code: 4, Value: 458828
Apr 13 10:36:24 metamorphose kernel: [25802.973112] evbug: Event. Dev: input9, Type: 1, Code: 111, Value: 1
Apr 13 10:36:24 metamorphose kernel: [25802.973116] evbug: Event. Dev: input9, Type: 0, Code: 0, Value: 0
Apr 13 10:36:24 metamorphose kernel: [25803.057207] evbug: Event. Dev: input9, Type: 4, Code: 4, Value: 458828
Apr 13 10:36:24 metamorphose kernel: [25803.057218] evbug: Event. Dev: input9, Type: 1, Code: 111, Value: 0
Apr 13 10:36:24 metamorphose kernel: [25803.057222] evbug: Event. Dev: input9, Type: 0, Code: 0, Value: 0
Apr 13 10:36:24 metamorphose kernel: [25803.148315] evbug: Event. Dev: input9, Type: 4, Code: 4, Value: 458828
Apr 13 10:36:24 metamorphose kernel: [25803.148324] evbug: Event. Dev: input9, Type: 1, Code: 111, Value: 1
Apr 13 10:36:24 metamorphose kernel: [25803.148328] evbug: Event. Dev: input9, Type: 0, Code: 0, Value: 0
Apr 13 10:36:25 metamorphose kernel: [25803.253451] evbug: Event. Dev: input9, Type: 4, Code: 4, Value: 458828
Apr 13 10:36:25 metamorphose kernel: [25803.253462] evbug: Event. Dev: input9, Type: 1, Code: 111, Value: 0
Apr 13 10:36:25 metamorphose kernel: [25803.253466] evbug: Event. Dev: input9, Type: 0, Code: 0, Value: 0
Apr 13 10:36:25 metamorphose kernel: [25803.332548] evbug: Event. Dev: input9, Type: 4, Code: 4, Value: 458828
Apr 13 10:36:25 metamorphose kernel: [25803.332559] evbug: Event. Dev: input9, Type: 1, Code: 111, Value: 1
Apr 13 10:36:25 metamorphose kernel: [25803.332563] evbug: Event. Dev: input9, Type: 0, Code: 0, Value: 0
Apr 13 10:36:25 metamorphose kernel: [25803.482737] evbug: Event. Dev: input9, Type: 4, Code: 4, Value: 458828
Apr 13 10:36:25 metamorphose kernel: [25803.482748] evbug: Event. Dev: input9, Type: 1, Code: 111, Value: 0
Apr 13 10:36:25 metamorphose kernel: [25803.482752] evbug: Event. Dev: input9, Type: 0, Code: 0, Value: 0
Apr 13 10:36:25 metamorphose kernel: [25803.724033] evbug: Event. Dev: input9, Type: 4, Code: 4, Value: 458792
Apr 13 10:36:25 metamorphose kernel: [25803.724044] evbug: Event. Dev: input9, Type: 1, Code: 28, Value: 1
Apr 13 10:36:25 metamorphose kernel: [25803.724049] evbug: Event. Dev: input9, Type: 0, Code: 0, Value: 0