I have Amazon Cloud account and configured Amazon linux. We are using tomcat on server. Tomcat logs need to rotate.
I successfully configured log rotate and it rotate logs as well. But log rotate creates archive file in same directory..
I want to configure logrotate such a way that it create every year & month directory and then put daily logfiles inside it.
Here is sample of directory structure..
Help would really appreciated.
|- Jan (Month)
| - 01 (Date)
| - 02 (Date)
Here is my configuration for tomcat
Also I require to copy compressed logs to another server. So please help me on that too.
Also welcomed some other tool or advise.
Help would be really appreciated.
Thanks in advance.