From 95f9b0728d576d7ba9219e43c9f04ede1c94319a Mon Sep 17 00:00:00 2001 From: Benedikt Bauer Date: Tue, 3 Dec 2013 23:56:28 +0100 Subject: [PATCH] Update logstash.conf example to comply with deprecation in logstash 1.2.x Changed format => "json_event" to codec => json_lines... --- recipes/apache-json-logs/logstash.conf | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/recipes/apache-json-logs/logstash.conf b/recipes/apache-json-logs/logstash.conf index b9ce75e..989163d 100644 --- a/recipes/apache-json-logs/logstash.conf +++ b/recipes/apache-json-logs/logstash.conf @@ -3,8 +3,10 @@ input { path => "/var/log/httpd/access_json.log" type => apache - # This format tells logstash to expect 'logstash' json events from the file. - format => json_event + # This codec tells logstash to expect json events seperated by newlines from the file. + codec => json_lines { + charset => "UTF-8" + } } }