lib/logstash/outputs/file.rb in logstash-output-file-4.0.2 vs lib/logstash/outputs/file.rb in logstash-output-file-4.1.0
- old
+ new
@@ -35,12 +35,10 @@
#
# If you use an absolute path you cannot start with a dynamic string.
# E.g: `/%{myfield}/`, `/test-%{myfield}/` are not valid paths
config :path, :validate => :string, :required => true
- config :message_format, :validate => :string, :obsolete => "You can achieve the same behavior with the 'line' codec"
-
# Flush interval (in seconds) for flushing writes to log files.
# 0 will flush on every message.
config :flush_interval, :validate => :number, :default => 2
# Gzip the output stream before writing to disk.
@@ -90,14 +88,9 @@
now = Time.now
@last_flush_cycle = now
@last_stale_cleanup_cycle = now
@flush_interval = @flush_interval.to_i
@stale_cleanup_interval = 10
-
- if @message_format
- @codec = LogStash::Plugin.lookup("codec", "line").new
- @codec.format = @message_format
- end
end # def register
private
def validate_path
if (root_directory =~ FIELD_REF) != nil