{"action":"created","issue":{"url":"https://api.github.com/repos/fluent/fluent-plugin-s3/issues/89","labels_url":"https://api.github.com/repos/fluent/fluent-plugin-s3/issues/89/labels{/name}","comments_url":"https://api.github.com/repos/fluent/fluent-plugin-s3/issues/89/comments","events_url":"https://api.github.com/repos/fluent/fluent-plugin-s3/issues/89/events","html_url":"https://github.com/fluent/fluent-plugin-s3/issues/89","id":98116763,"number":89,"title":"Insert time variable in the s3_object_key_format","user":{"login":"papiveron","id":5762296,"avatar_url":"https://avatars.githubusercontent.com/u/5762296?v=3","gravatar_id":"","url":"https://api.github.com/users/papiveron","html_url":"https://github.com/papiveron","followers_url":"https://api.github.com/users/papiveron/followers","following_url":"https://api.github.com/users/papiveron/following{/other_user}","gists_url":"https://api.github.com/users/papiveron/gists{/gist_id}","starred_url":"https://api.github.com/users/papiveron/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/papiveron/subscriptions","organizations_url":"https://api.github.com/users/papiveron/orgs","repos_url":"https://api.github.com/users/papiveron/repos","events_url":"https://api.github.com/users/papiveron/events{/privacy}","received_events_url":"https://api.github.com/users/papiveron/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2015-07-30T08:53:41Z","updated_at":"2015-07-30T15:24:58Z","closed_at":"2015-07-30T13:39:52Z","body":"Hi,\r\n\r\nPlease, is there a **time** variable for **s3_object_key_format**?\r\nI would to get log in my bucket in folder per **year**,; **month**, **day_of_month**, and a file name containing the **time** and file extension. This is my configuration :\r\n\r\n```\r\n<match my_tag>\r\n        type s3\r\n        s3_bucket my_bucket\r\n        s3_region eu-west-1\r\n        #s3_object_key_format %{path}%{time_slice}_%{index}.%{file_extension}\r\n        s3_object_key_format %{path}%{time_slice}/stats_log-%{time}_%{index}.%{file_extension}\r\n        path logs/\r\n        buffer_path /var/log/td-agent/buffer_file.log\r\n        time_slice_format %Y/%m/%d\r\n        time_format %H:%M:%S\r\n        time_slice_wait 10m\r\n        utc\r\n</match>\r\n```\r\n\r\nAs you can see above, I added forward slashes (**\"/\"**) between the time silice format field, to separate them in directories. But is like the **%{time}** variable I put there doesn't exist and as result this field is empty in my log file. \r\nPlease how can I achieve this? \r\n\r\nThank you. \r\n\r\nBest regards,"},"comment":{"url":"https://api.github.com/repos/fluent/fluent-plugin-s3/issues/comments/126369637","html_url":"https://github.com/fluent/fluent-plugin-s3/issues/89#issuecomment-126369637","issue_url":"https://api.github.com/repos/fluent/fluent-plugin-s3/issues/89","id":126369637,"user":{"login":"papiveron","id":5762296,"avatar_url":"https://avatars.githubusercontent.com/u/5762296?v=3","gravatar_id":"","url":"https://api.github.com/users/papiveron","html_url":"https://github.com/papiveron","followers_url":"https://api.github.com/users/papiveron/followers","following_url":"https://api.github.com/users/papiveron/following{/other_user}","gists_url":"https://api.github.com/users/papiveron/gists{/gist_id}","starred_url":"https://api.github.com/users/papiveron/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/papiveron/subscriptions","organizations_url":"https://api.github.com/users/papiveron/orgs","repos_url":"https://api.github.com/users/papiveron/repos","events_url":"https://api.github.com/users/papiveron/events{/privacy}","received_events_url":"https://api.github.com/users/papiveron/received_events","type":"User","site_admin":false},"created_at":"2015-07-30T15:24:58Z","updated_at":"2015-07-30T15:24:58Z","body":"Sorry,\r\n\r\nI saw there is a **flush_interval** in s3 plugin parameter too. Apologises, Let me try on my way.\r\n\r\nRegards."}}