【发布时间】:2018-08-29 07:36:15
【问题描述】:
Official logstash elastic cloud module
Official doc for starting with
我的logstash.yml 看起来像:
cloud.id: "Test:testkey"
cloud.auth: "elastic:password"
在""内,前面有2个空格,最后没有空格
这就是我在logstash.yml 中的全部内容,仅此而已,
我得到了:
[2018-08-29T12:33:52,112][WARN ][logstash.outputs.elasticsearch] Attempted to resurrect connection to dead ES instance, but got an error. {:url=>"https://myserverurl:12345/", :error_type=>LogStash::Outputs::ElasticSearch::HttpClient::Pool::BadResponseCodeError, :error=>"Got response code '401' contacting Elasticsearch at URL 'https://myserverurl:12345/'"}
my_config_file_name.conf 看起来像:
input{jdbc{...jdbc here... This works, as I see data in windows console}}
output {
stdout { codec => json_lines }
elasticsearch {
hosts => ["myserverurl:12345"]
index => "my_index"
# document_id => "%{brand}"
}
我正在做的是在 Windows cmd 上点击 bin/logstash,
它从我在 conf 文件输入中配置的数据库中加载数据,然后显示错误,我想在 Cloud 上将我的数据从 MySQL 索引到 elasticsearch,我进行了 14 天的试用并创建了一个测试索引,以供学习目的,因为我以后必须部署它。
我的管道看起来像:
- pipeline.id: my_id
path.config: "./config/conf_file_name.conf"
pipeline.workers: 1
如果日志不包含敏感数据,我也可以提供。
基本上我不想在云上同步(计划检查)我的MYSQL 数据与ElasticSearch,即AWS
【问题讨论】:
标签: elasticsearch logstash elastic-cloud