mirror of
https://github.com/elastic/logstash.git
synced 2025-04-24 06:37:19 -04:00
- handle files with CRLF line termination as well (zabbix was guilty of
this).
This commit is contained in:
parent
bde12d99b5
commit
fe817f5fc3
2 changed files with 4 additions and 3 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue