[英]How to send json events to ES with Logstash Plugin for Amazon ES?
我是 ES 的新手。 尝试使用https://github.com/awslabs/logstash-output-amazon_es将 json 事件发送到 ES 但是,当我提供以下配置时,它无法识别任何事件?
input {
file {
path => "C:/Program Files/logstash-2.3.1/transactions.log"
start_position => beginning
codec => "json_lines"
}
}
filter {
json {
source => "message"
}
}
output {
amazon_es {
hosts => ["endpoint"]
region => "us-east-1"
codec => json
index => "production-logs-%{+YYYY.MM.dd}"
}
}
我在调试模式下运行它,但日志中没有任何内容 在开始从 Logstash 发送事件之前,我还需要创建索引吗?
下面的配置以某种方式工作,但它无法识别任何 json 字段
input {
file {
path => "C:/Program Files/logstash-2.3.1/transactions.log"
start_position => beginning
}
}
output {
amazon_es {
hosts => ["Endpoint"]
region => "us-east-1"
index => "production-logs-%{+YYYY.MM.dd}"
}
}
这里可能有几件事情在起作用,包括:
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.