我正在尝试使用logstash将S3存储桶的根目录中的文件链接到我的Amazon ElasticSearch Service域。
我已在具有 Ubuntu 16.041 和 8 GiB通用SSD 的 t2.medium 的EC2实例上安装了logstash。
我确保按照步骤here来为logstash配置Amazon Elasticsearch Output插件。
这是我的logstash.conf文件
input{
s3 {
bucket => "BUCKET NAME"
access_key_id => "MY ID"
secret_access_key => "MY KEY"
region => "us-east-1"
}
}
#
# Connect to Amazon S3
#
#
# Connect to AmazonES Domain
#
output{
amazon_es {
hosts => "search-MYDOMAIN.us-east-1.es.amazonaws.com"
region => "us-east-1"
access_key_id => "MY ID"
secret_access_key => "MY KEY"
ssl => true
index => "production-logs-%{+YYYY.MM.dd}"
}
}
我跑步时
sudo bin/logstash -f /etc/logstash/conf.d/logstash.conf
我收到错误消息,我的kibana链接说它找不到ElasticSearch数据,但是我在ssh终端中得到了
[INFO ] 2018-09-05 01:11:00.787 [Api Webserver] agent - Successfully started Logstash API endpoint {:port=>9600}
我要去哪里错了?这是我第二次使用Logstash