{"action":"created","issue":{"url":"https://api.github.com/repos/elastic/logstash/issues/3906","labels_url":"https://api.github.com/repos/elastic/logstash/issues/3906/labels{/name}","comments_url":"https://api.github.com/repos/elastic/logstash/issues/3906/comments","events_url":"https://api.github.com/repos/elastic/logstash/issues/3906/events","html_url":"https://github.com/elastic/logstash/issues/3906","id":105974684,"number":3906,"title":"file output plugin doesn't work with dynamic output file path","user":{"login":"geshenyi","id":6367472,"avatar_url":"https://avatars.githubusercontent.com/u/6367472?v=3","gravatar_id":"","url":"https://api.github.com/users/geshenyi","html_url":"https://github.com/geshenyi","followers_url":"https://api.github.com/users/geshenyi/followers","following_url":"https://api.github.com/users/geshenyi/following{/other_user}","gists_url":"https://api.github.com/users/geshenyi/gists{/gist_id}","starred_url":"https://api.github.com/users/geshenyi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/geshenyi/subscriptions","organizations_url":"https://api.github.com/users/geshenyi/orgs","repos_url":"https://api.github.com/users/geshenyi/repos","events_url":"https://api.github.com/users/geshenyi/events{/privacy}","received_events_url":"https://api.github.com/users/geshenyi/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-09-11T09:21:55Z","updated_at":"2015-09-14T17:42:45Z","closed_at":null,"body":"What I would like to do is to output logs to another file per day.\r\n\r\nBut logstash just give me error message as follows:\r\n\r\n\u001B[31mFile: The starting part of the path should not be dynamic. {:path=>\"c:/test_%{+yyyy.MM.dd}.log\", :level=>:error}\u001B[0m\r\nError: The starting part of the path should not be dynamic.\r\n\r\nHere is my configuration\r\ninput {\r\n    file {\r\n\tcodec => multiline {\r\n      \t\tpattern => \"^\\s\"\r\n\t     \t what => \"previous\"\r\n    \t}\r\n        path => \"C:\\test1.log\"\r\n        start_position => beginning\r\n    }\r\n}\r\nfilter {\r\n    grok{\r\n    \tmatch => {\"message\" => \"^(?<datetime>\\d{4}-\\d{2}-\\d{2}\\s\\d{2}:\\d{2}:\\d{2})\\s%{DATA:exception}\\s+\r\n\r\n%{GREEDYDATA:stacktrace}$\"}\r\n\t}\r\n\r\n}\r\noutput {\r\n    file {\r\n        message_format => \"%{[message]}\"\r\n        path => \"c:\\test_%{+yyyy.MM.dd}.log\"\r\n    }\r\n    stdout {codec => rubydebug}\r\n}"},"comment":{"url":"https://api.github.com/repos/elastic/logstash/issues/comments/140156474","html_url":"https://github.com/elastic/logstash/issues/3906#issuecomment-140156474","issue_url":"https://api.github.com/repos/elastic/logstash/issues/3906","id":140156474,"user":{"login":"jordansissel","id":131818,"avatar_url":"https://avatars.githubusercontent.com/u/131818?v=3","gravatar_id":"","url":"https://api.github.com/users/jordansissel","html_url":"https://github.com/jordansissel","followers_url":"https://api.github.com/users/jordansissel/followers","following_url":"https://api.github.com/users/jordansissel/following{/other_user}","gists_url":"https://api.github.com/users/jordansissel/gists{/gist_id}","starred_url":"https://api.github.com/users/jordansissel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jordansissel/subscriptions","organizations_url":"https://api.github.com/users/jordansissel/orgs","repos_url":"https://api.github.com/users/jordansissel/repos","events_url":"https://api.github.com/users/jordansissel/events{/privacy}","received_events_url":"https://api.github.com/users/jordansissel/received_events","type":"User","site_admin":false},"created_at":"2015-09-14T17:42:45Z","updated_at":"2015-09-14T17:42:45Z","body":">  path => \"c:\\test_%{+yyyy.MM.dd}.log\"\r\n\r\nAt a glance, it looks like this _should_ work, but doesn't. hmm.."}}