{"action":"closed","issue":{"url":"https://api.github.com/repos/treasure-data/omnibus-td-agent/issues/144","repository_url":"https://api.github.com/repos/treasure-data/omnibus-td-agent","labels_url":"https://api.github.com/repos/treasure-data/omnibus-td-agent/issues/144/labels{/name}","comments_url":"https://api.github.com/repos/treasure-data/omnibus-td-agent/issues/144/comments","events_url":"https://api.github.com/repos/treasure-data/omnibus-td-agent/issues/144/events","html_url":"https://github.com/treasure-data/omnibus-td-agent/issues/144","id":256051982,"number":144,"title":"fluentd v0.14.20: \"time\" field in file name did not rotate cleanly (+ logrotate)","user":{"login":"nraddy","id":25803390,"avatar_url":"https://avatars3.githubusercontent.com/u/25803390?v=4","gravatar_id":"","url":"https://api.github.com/users/nraddy","html_url":"https://github.com/nraddy","followers_url":"https://api.github.com/users/nraddy/followers","following_url":"https://api.github.com/users/nraddy/following{/other_user}","gists_url":"https://api.github.com/users/nraddy/gists{/gist_id}","starred_url":"https://api.github.com/users/nraddy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nraddy/subscriptions","organizations_url":"https://api.github.com/users/nraddy/orgs","repos_url":"https://api.github.com/users/nraddy/repos","events_url":"https://api.github.com/users/nraddy/events{/privacy}","received_events_url":"https://api.github.com/users/nraddy/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2017-09-07T19:55:04Z","updated_at":"2017-09-07T20:16:46Z","closed_at":"2017-09-07T20:16:46Z","author_association":"NONE","body":"Config:\r\n\r\n```\r\n    <match service>\r\n        @type file\r\n        path   /var/log/service-%Y-%m-%d\r\n        append true\r\n\r\n        <buffer time>\r\n            @type file\r\n            path /var/log/service_log_buffer/\r\n\r\n            flush_mode interval\r\n            flush_interval 1m\r\n            flush_at_shutdown true\r\n\r\n            timekey             1d\r\n        </buffer>\r\n\r\n        time_format       %d/%b/%Y:%H:%M:%S %z\r\n        time_key          time\r\n    </match>\r\n```\r\n\r\nThese were the logfiles created. \r\n\r\n```\r\n-rw-r--r-- 1 td-agent td-agent    0 Sep  7 00:17 service-2017-09-05.log\r\n-rw-r--r-- 1 td-agent td-agent    0 Sep  6 00:17 service-2017-09-05.log.1\r\n-rw-r--r-- 1 td-agent td-agent  732 Sep  5 19:32 service-2017-09-05.log.2\r\n-rw-r--r-- 1 td-agent td-agent    0 Sep  7 00:17 service-2017-09-06.log\r\n-rw-r--r-- 1 td-agent td-agent 4108 Sep  6 16:12 service-2017-09-06.log.1\r\n```\r\n\r\nI have a logrotate setup up with rotating these files on a daily basis. fluentd seems to be creating log files with same date across different days. It created a logfile with \"2017-09-06\" on 6th when it received some traffic, but it continued creating logfiles with \"2017-09-05\" everyday since 5th (the day the changes was deployed)."}}
{"actor":{"display_login":"repeatedly"}}