From c22d52f4e197daa8e146ad75c5245f2d9935f369 Mon Sep 17 00:00:00 2001 From: idsvandermolen Date: Tue, 29 Mar 2016 14:45:00 +0200 Subject: [PATCH] fix syntax error in example logstash 2.2.2 generates a syntax error on this example: Error: Expected one of #, => at line 4, column 20 (byte 54) after output { file { path => "foobar" codec => { line Fixed by removing braces at codec line 16. During testing I used path => "foobar". --- lib/logstash/outputs/file.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/logstash/outputs/file.rb b/lib/logstash/outputs/file.rb index 858bb99..34e21ca 100644 --- a/lib/logstash/outputs/file.rb +++ b/lib/logstash/outputs/file.rb @@ -13,7 +13,7 @@ # output { # file { # path => ... -# codec => { line { format => "custom format: %{message}"}} +# codec => line { format => "custom format: %{message}"} # } # } class LogStash::Outputs::File < LogStash::Outputs::Base