From 173e724c9709f95dcc8a56d3582c09fcf072fa10 Mon Sep 17 00:00:00 2001 From: MixMuffins Date: Wed, 29 May 2013 14:49:23 -0500 Subject: [PATCH] LOGSTASH-1106 Adding additional file output path option documentation. This is to highlight functionality of the path option that was not previously documented, and to prevent additional pull requests for implementation of date-based log rotation. --- lib/logstash/outputs/file.rb | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/logstash/outputs/file.rb b/lib/logstash/outputs/file.rb index 3aa92b20e..446b4b867 100644 --- a/lib/logstash/outputs/file.rb +++ b/lib/logstash/outputs/file.rb @@ -13,6 +13,11 @@ class LogStash::Outputs::File < LogStash::Outputs::Base # The path to the file to write. Event fields can be used here, # like "/var/log/logstash/%{@source_host}/%{application}" + # One may also utilize the path option for date-based log + # rotation via the joda time format. This will use the event + # timestamp. + # E.g.: path => "./test-%{+YYYY-MM-dd}.txt" to create + # ./test-2013-05-29.txt config :path, :validate => :string, :required => true # The maximum size of file to write. When the file exceeds this