Time stamp in log files

Hey Everyone,

Is anyone else having this issue. For some reason in the logs directory, there are log files like elasticsearch.log.2016-12-16. I am not sure if this is logrotate, or something seafile is doing. Logrotate seems to be working well, with the exception of time stamped elasticsearch.log files.

root@seafile:/home/seafile/seafile/logs# ls -la -1t
total 348
-rw-r--r--  1 seafile seafile 20233 Dez 23 14:38 index.log
-rw-r--r--  1 seafile seafile 30092 Dez 23 14:38 seafevents.log
-rw-r--r--  1 seafile seafile  5382 Dez 23 14:38 seahub_email_sender.log
-rw-r--r--  1 seafile seafile   907 Dez 23 14:08 seafile.log
-rw-r--r--  1 seafile seafile  1591 Dez 23 12:46 ccnet.log
-rw-r--r--  1 seafile seafile    95 Dez 23 07:33 seahub_django_request.log
-rw-r--r--  1 seafile seafile  1739 Dez 23 04:08 elasticsearch.log
drwxr-xr-x  2 seafile seafile  4096 Dez 23 04:08 .
-rw-r--r--  1 root    root      121 Dez 23 04:08 seahub.init.log
-rw-r--r--  1 root    root      174 Dez 23 04:08 seafile.init.log
-rw-r--r--  1 seafile seafile  2273 Dez 23 04:08 controller.log
-rw-r--r--  1 seafile seafile     0 Dez 23 04:08 seahub.log
-rw-r--r--  1 seafile seafile     0 Dez 23 04:08 elasticsearch_index_indexing_slowlog.log
-rw-r--r--  1 seafile seafile     0 Dez 23 04:08 elasticsearch_index_search_slowlog.log
-rw-r--r--  1 seafile seafile  3218 Dez 23 03:58 index.log.1.gz
-rw-r--r--  1 seafile seafile  3385 Dez 23 03:58 seafevents.log.1.gz
-rw-r--r--  1 seafile seafile   894 Dez 23 03:38 seahub_email_sender.log.1.gz
-rw-r--r--  1 seafile seafile   216 Dez 23 03:08 seafile.log.1.gz
-rw-r--r--  1 seafile seafile   342 Dez 22 21:10 ccnet.log.1.gz
-rw-r--r--  1 seafile seafile   719 Dez 22 18:34 seahub_django_request.log.1.gz
-rw-r--r--  1 seafile seafile  1808 Dez 22 04:08 elasticsearch.log.2016-12-22
-rw-r--r--  1 seafile seafile   119 Dez 22 04:08 elasticsearch.log.1.gz
-rw-r--r--  1 root    root      138 Dez 22 04:08 seahub.init.log.1.gz
-rw-r--r--  1 root    root      159 Dez 22 04:08 seafile.init.log.1.gz
-rw-r--r--  1 seafile seafile   545 Dez 22 04:08 controller.log.1.gz
-rw-r--r--  1 seafile seafile    20 Dez 22 04:08 elasticsearch_index_indexing_slowlog.log.1.gz
-rw-r--r--  1 seafile seafile    20 Dez 22 04:08 elasticsearch_index_search_slowlog.log.1.gz
-rw-r--r--  1 seafile seafile    20 Dez 22 04:08 seahub.log.1.gz
-rw-r--r--  1 seafile seafile  3107 Dez 22 03:58 index.log.2.gz
-rw-r--r--  1 seafile seafile  3360 Dez 22 03:58 seafevents.log.2.gz
-rw-r--r--  1 seafile seafile   883 Dez 22 03:38 seahub_email_sender.log.2.gz
-rw-r--r--  1 seafile seafile   240 Dez 22 03:08 seafile.log.2.gz
-rw-r--r--  1 seafile seafile   342 Dez 21 17:45 ccnet.log.2.gz
-rw-r--r--  1 seafile seafile   546 Dez 21 10:09 seahub_django_request.log.2.gz
-rw-r--r--  1 seafile seafile  1963 Dez 21 04:08 elasticsearch.log.2016-12-21
-rw-r--r--  1 seafile seafile   126 Dez 21 04:08 elasticsearch.log.2.gz
-rw-r--r--  1 root    root      138 Dez 21 04:08 seahub.init.log.2.gz
-rw-r--r--  1 root    root      160 Dez 21 04:08 seafile.init.log.2.gz
-rw-r--r--  1 seafile seafile   546 Dez 21 04:08 controller.log.2.gz
-rw-r--r--  1 seafile seafile    20 Dez 21 04:08 elasticsearch_index_indexing_slowlog.log.2.gz
-rw-r--r--  1 seafile seafile    20 Dez 21 04:08 elasticsearch_index_search_slowlog.log.2.gz
-rw-r--r--  1 seafile seafile    20 Dez 21 04:08 seahub.log.2.gz
-rw-r--r--  1 seafile seafile  3159 Dez 21 03:58 index.log.3.gz
-rw-r--r--  1 seafile seafile  3402 Dez 21 03:58 seafevents.log.3.gz
-rw-r--r--  1 seafile seafile   894 Dez 21 03:38 seahub_email_sender.log.3.gz
-rw-r--r--  1 seafile seafile   216 Dez 21 03:08 seafile.log.3.gz
-rw-r--r--  1 seafile seafile   359 Dez 20 18:29 ccnet.log.3.gz
-rw-r--r--  1 seafile seafile   131 Dez 20 15:02 seahub_django_request.log.3.gz
-rw-r--r--  1 seafile seafile  1767 Dez 20 04:08 elasticsearch.log.2016-12-20
-rw-r--r--  1 seafile seafile   117 Dez 20 04:08 elasticsearch.log.3.gz
-rw-r--r--  1 root    root      138 Dez 20 04:08 seahub.init.log.3.gz
-rw-r--r--  1 root    root      160 Dez 20 04:08 seafile.init.log.3.gz
-rw-r--r--  1 seafile seafile   546 Dez 20 04:08 controller.log.3.gz
-rw-r--r--  1 seafile seafile    20 Dez 20 04:08 elasticsearch_index_indexing_slowlog.log.3.gz
-rw-r--r--  1 seafile seafile    20 Dez 20 04:08 elasticsearch_index_search_slowlog.log.3.gz
-rw-r--r--  1 seafile seafile    20 Dez 20 04:08 seahub.log.3.gz
-rw-r--r--  1 seafile seafile 54856 Dez 19 23:58 seafevents.log.2016-12-13
-rw-r--r--  1 seafile seafile  1935 Dez 19 04:08 elasticsearch.log.2016-12-19
-rw-r--r--  1 seafile seafile  1837 Dez 18 04:08 elasticsearch.log.2016-12-18
-rw-r--r--  1 seafile seafile  1697 Dez 17 04:08 elasticsearch.log.2016-12-17
-rw-r--r--  1 seafile seafile  1795 Dez 16 16:10 elasticsearch.log.2016-12-16

Thanks

This is generated by the ElasticSearch server. You don’t need to config log rotate for elaticsearch.log.