# Logstash on one EC2 instance and ES & Kibana on another - how to provide creds in LS output?

**URL:** <https://discuss.elastic.co/t/logstash-on-one-ec2-instance-and-es-kibana-on-another-how-to-provide-creds-in-ls-output/159483>\
**Category:** Elasticsearch\
**Created:** [December 5, 2018, 8:36am UTC](https://discuss.elastic.co/t/logstash-on-one-ec2-instance-and-es-kibana-on-another-how-to-provide-creds-in-ls-output/159483 "2018-12-05T08:36:26Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![GitSpree23](https://avatars.discourse-cdn.com/v4/letter/g/65b543/32.png) [@GitSpree23](https://discuss.elastic.co/u/GitSpree23)\
**Post date:** [December 5, 2018, 8:36am UTC](https://discuss.elastic.co/t/logstash-on-one-ec2-instance-and-es-kibana-on-another-how-to-provide-creds-in-ls-output/159483/1 "2018-12-05T08:36:26Z")

</div>

I've split the Elastic Stack into 2 EC2 instances:  
`instance1` : 2Gig, 1CPU : Logstash  
`instance2` : 8Gig, 2CPUs : ElasticSearch & Kibana

I will be providing the public IP of `instance2` in the logstash elasticsearch output plugin. Do I need to provide AWS key in there?  
Also, do I need the key in Kibana? Or just providing the public IP will do?

---

<div class="post-metadata">

**Author:** ![GitSpree23](https://avatars.discourse-cdn.com/v4/letter/g/65b543/32.png) [@GitSpree23](https://discuss.elastic.co/u/GitSpree23)\
**Post date:** [December 6, 2018, 10:22am UTC](https://discuss.elastic.co/t/logstash-on-one-ec2-instance-and-es-kibana-on-another-how-to-provide-creds-in-ls-output/159483/2 "2018-12-06T10:22:24Z")

</div>

I've set `network.host` to `0.0.0.0` in elasticsearch (`instance1`), and set logstash output to public IP of `instance1`. But it says `HostUnreachableError`.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [January 3, 2019, 10:22am UTC](https://discuss.elastic.co/t/logstash-on-one-ec2-instance-and-es-kibana-on-another-how-to-provide-creds-in-ls-output/159483/3 "2019-01-03T10:22:26Z")

</div>

Closed on January 3, 2019, 10:22am UTC

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