Logstash on cloud

I'm trying out the free trial of Elasticsearch on Cloud.

I'm trying to add a Logstash Pipeline to ingest data from an external source.

How do I configure the output-part to ingest my data?

output {
elasticsearch {
hosts => "https://xxxxxxxxxxxx.aws.cloud.es.io:9243"
user => "elastic"
password => "xxxxxxxxxxxxxxxx"
index => "logstash-xxxxxxxx-%{+YYYY.MM.dd}"
document_type => "mylogs"
}
}

Have you already tried the above?

You may need to put square brackets around that "hosts" value.

The document_type looks to have been deprecated now so you might be able to just remove that option:
https://www.elastic.co/guide/en/logstash/current/plugins-outputs-elasticsearch.html#plugins-outputs-elasticsearch-document_type

Tried with square brackets around host, with no success. I tried to ingest data from a local instance of metricbeat, which worked just fine. But my logstash pipeline is worse. It would be nice to try some other data without any major work input, just to make sure that it's not my input or filter-sections that causes the error.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.