Hi all,
I'm trying to setup the zabbix plugin with the multi_values key without success. This is the config
filter {
add_field => { "multivalue" => [ "foo", "bar" ] }
}
output {
zabbix{
zabbix_server_host => "zabbix_host"
zabbix_server_port => "10051"
zabbix_host => host
multi_value => multivalue
}
Unfortunately, I'm receiving the following error:
[...]
config LogStash::Outputs::Zabbix/@multi_value = ["multivalue"] {:level=>:debug, :file=>"logstash/config/mixin.rb", :line=>"154", :method=>"config_init"}
[...]
Pipeline aborted due to error {:exception=>"LogStash::ConfigurationError", :backtrace=>["/opt/logstash/vendor/bundle/jruby/1.9/gems/logstash-output-zabbix-3.0.1/lib/logstash/outputs/zabbix.rb:101:in `register'"[...]
It seems as if instead of using the field is using the field's name "multivalue"
I'm new to logstash, maybe the
add_field => { "multivalue" => [ "foo", "bar" ] }
is not valid?
How can I create the array in the filter section?
Thanks