Article 545K8 Logrotate ubuntu mongo

Logrotate ubuntu mongo

by
maly1990
from LinuxQuestions.org on (#545K8)
Hello

I have problem with logrotate because parameter rotate not working :(

config logrotate below:
/var/log/mongodb/* {
daily
missingok
notifempty
rotate 10
nocreate
}

and if I execute command: sudo logrotate -fv /etc/logrotate.d/mongodb, in path is above configuration logrotate

After execute command, logrotate created new file with log mongo but in file is all such as without rotate

why it works like that?latest?d=yIl2AUoC8zA latest?i=fXFYBa7q8b0:Y6KpwEmCXkI:F7zBnMy latest?i=fXFYBa7q8b0:Y6KpwEmCXkI:V_sGLiP latest?d=qj6IDK7rITs latest?i=fXFYBa7q8b0:Y6KpwEmCXkI:gIN9vFwfXFYBa7q8b0
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments