lib/logstash/outputs/zabbix.rb in logstash-output-zabbix-0.1.0 vs lib/logstash/outputs/zabbix.rb in logstash-output-zabbix-0.1.1
- old
+ new
@@ -13,17 +13,17 @@
# * "send_field" (the field name that is sending to 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
# Zabbix Trapper item. Also you need to set field that will be send to zabbix
-# as item.value, otherwise @message wiil be sent.
+# as item.value, otherwise `@message` will be sent.
#
# The easiest way to use this output is with the grep filter.
# Presumably, you only want certain events matching a given pattern
# to send events to zabbix, so use grep or grok to match and also to add the required
# fields.
-#
+# [source,ruby]
# filter {
# grep {
# type => "linux-syslog"
# match => [ "@message", "(error|ERROR|CRITICAL)" ]
# add_tag => [ "zabbix-sender" ]
@@ -42,9 +42,10 @@
# "send_field", "data"
# ]
# }
# }
#
+# [source,ruby]
# output {
# zabbix {
# # only process events with this tag
# tags => "zabbix-sender"
#