我有以下配置文件。但是,当我运行这个时,我得到在终端中更改的时间戳,但日志没有发送到ElasticSearch。Logstash日期过滤器不起作用
下面是配置文件:
input {
stdin {
type => "stdin-type"
}
}
filter {
grok {
type => "stdin-type"
patterns_dir=>["./patterns"]
pattern => "%{PARSE_ERROR}"
add_tag=>"%{type1},%{type2},%{slave},ERR_SYSTEM"
}
mutate
{
type=>"stdin-type"
replace => ["@message", "%{message}" ]
replace =>["@timestamp","2013-05-09T05:19:16.876Z"]
}
}
output {
stdout { debug => true debug_format => "json"}
elasticsearch
{
}
}
在取出取代线,该日志被运出。我哪里错了?