- handle files with CRLF line termination as well (zabbix was guilty of

this).
This commit is contained in:
Jordan Sissel 2011-07-12 00:13:49 -07:00
parent bde12d99b5
commit fe817f5fc3
2 changed files with 4 additions and 3 deletions

View file

@ -34,7 +34,7 @@ class LogStashConfigDocGenerator
def parse(string)
buffer = ""
string.split("\n").each do |line|
string.split(/\r\n|\n/).each do |line|
# Join long lines
if line =~ COMMENT_RE
# nothing

View file

@ -5,8 +5,9 @@ require "logstash/outputs/base"
# zabbix_sender executable.
#
# For this output to work, your event must have the following fields:
# "zabbix_host" (the host configured in Zabbix)
# "zabbix_item" (the item key on the host in Zabbix)
#
# * "zabbix_host" (the host configured in Zabbix)
# * "zabbix_item" (the item key on the host in Zabbix)
#
# In Zabbix, create your host with the same name (no spaces in the name of
# the host supported) and create your item with the specified key as a