how often does the letter a occur in:
q: how to use timestamp in apache customlog directive i was trying to use a timestamp in apache customlog directive so that a new file is created every hour
i set it to:
customlog /var/log/apache2/healthd/application.log.%{%y-%m-%d-%h}t healthd

and it created a file with that literal name:
$ ls -la
total 20
drwxrwxrwx 2 root root 4096 feb 11 16:24 .
drwxrwxrwx 4 root root 4096 feb 11 16:24 ..
-rw-r--r-- 1 root root 9919 feb 11 16:36 application.log.%{%y-%m-%d-%h}t

whats the right way to do it?

a: solution is to use apache rotatelogs.
it can be installed with apt-get install apache2-utils on debian. 
apache must be configured to use it:
customlog |/usr/bin/rotatelogs -l /var/log/apache2/healthd/application.log.%y-%m-%d-%h 3600 logformat


user
In the text, there are 51 "a"s.
assistant