Hi,
I'm trying to parse a log-file with Logstash (1.5.0) and send output to Zabbix. Unfortunately, I'm receiving the following error:
←[33mSkipping zabbix output; field referenced by quik.exp is missing {:level=>:warn}←[0m
{
"message" => "E: 08 Jun 15 (Mon) 13:09:28.966 (3028:1488:NegDeal): Running C:\\QUIK\\ExportQ\\Export.exe: Error: Error process NegTrade\r",
"@version" => "1",
"@timestamp" => "2015-06-08T09:09:29.857Z",
"type" => "QUIKExporter-log",
"host" => "VS-MSK11-EXP02",
"path" => "C:\\QUIK\\ExportQ\\export.log"
My logstash.conf is below:
input {
file {
path => ["C:\QUIK\ExportQ\export.log"]
type => "QUIKExporter-log"
codec => plain { charset => "CP1251" }
start_position => "beginning"
sincedb_path => "C:\Progra~1\logstash\sincedb"
}
}
filter {
if [message] !~ /Error|Critical/ {
drop { }
}
}
output {
stdout { codec => rubydebug }
zabbix {
zabbix_host => "host"
zabbix_key => "quik.exp"
zabbix_server_host => "10.1.110.71"
zabbix_value => "message"
}
}
On Zabbix server (10.1.110.71) I've added:
- host (VS-MSK11-EXP02)
- Item "quik.exp" for this host
Could you please advise how to resolve this issue?
Thanks in advance!