{"action":"created","issue":{"url":"https://api.github.com/repos/fluent/fluentd/issues/684","labels_url":"https://api.github.com/repos/fluent/fluentd/issues/684/labels{/name}","comments_url":"https://api.github.com/repos/fluent/fluentd/issues/684/comments","events_url":"https://api.github.com/repos/fluent/fluentd/issues/684/events","html_url":"https://github.com/fluent/fluentd/issues/684","id":111825397,"number":684,"title":"in_tail with time_format '%Q' with integer value failed","user":{"login":"dieend","id":1404443,"avatar_url":"https://avatars.githubusercontent.com/u/1404443?v=3","gravatar_id":"","url":"https://api.github.com/users/dieend","html_url":"https://github.com/dieend","followers_url":"https://api.github.com/users/dieend/followers","following_url":"https://api.github.com/users/dieend/following{/other_user}","gists_url":"https://api.github.com/users/dieend/gists{/gist_id}","starred_url":"https://api.github.com/users/dieend/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dieend/subscriptions","organizations_url":"https://api.github.com/users/dieend/orgs","repos_url":"https://api.github.com/users/dieend/repos","events_url":"https://api.github.com/users/dieend/events{/privacy}","received_events_url":"https://api.github.com/users/dieend/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-10-16T12:52:00Z","updated_at":"2015-10-19T14:49:41Z","closed_at":null,"body":"I am using in_tail with json input (log4j2 with json layout), examples of log:\r\n```\r\n{\"timeMillis\":1444998011395,\"thread\":\"http-nio-5000-exec-5\",\"level\":\"WARN\",\"loggerName\":\"org.springframework.web.servlet.PageNotFound\",\"message\":\"No mapping found for HTTP request with URI [/health] in DispatcherServlet with name 'dispatcherServlet'\",\"endOfBatch\":false,\"loggerFqcn\":\"org.apache.commons.logging.impl.SLF4JLocationAwareLog\"}\r\n```\r\nI uses in_tail configuration like this:\r\n```\r\n<source>\r\n  type tail\r\n  tag log.*\r\n  format json\r\n  time_key timeMillis\r\n  time_format %Q\r\n  path /var/log/web.log\r\n</source>\r\n```\r\nBut it gives error:\r\n```\r\nerror=\"value must be string: 1444998011395\"\r\n```\r\nI tried adding ` types timeMillis:string` in configuration but doesn't helps.\r\n```\r\n$> fluentd --version\r\nfluentd 0.12.12\r\n```\r\n\r\nAny idea for workaround?"},"comment":{"url":"https://api.github.com/repos/fluent/fluentd/issues/comments/149237800","html_url":"https://github.com/fluent/fluentd/issues/684#issuecomment-149237800","issue_url":"https://api.github.com/repos/fluent/fluentd/issues/684","id":149237800,"user":{"login":"repeatedly","id":16928,"avatar_url":"https://avatars.githubusercontent.com/u/16928?v=3","gravatar_id":"","url":"https://api.github.com/users/repeatedly","html_url":"https://github.com/repeatedly","followers_url":"https://api.github.com/users/repeatedly/followers","following_url":"https://api.github.com/users/repeatedly/following{/other_user}","gists_url":"https://api.github.com/users/repeatedly/gists{/gist_id}","starred_url":"https://api.github.com/users/repeatedly/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/repeatedly/subscriptions","organizations_url":"https://api.github.com/users/repeatedly/orgs","repos_url":"https://api.github.com/users/repeatedly/repos","events_url":"https://api.github.com/users/repeatedly/events{/privacy}","received_events_url":"https://api.github.com/users/repeatedly/received_events","type":"User","site_admin":false},"created_at":"2015-10-19T14:49:40Z","updated_at":"2015-10-19T14:49:40Z","body":"`format json` doesn't support `types` because `types` for string base parser.\r\nWithout `time_format`, `format json` assumes time is integer so it should work.\r\nBut your time is millisecond integer so the problem may happen with second assumed plugins.\r\n"}}