# How to automate reading logs?

**URL:** <https://discuss.elastic.co/t/how-to-automate-reading-logs/297873>\
**Category:** Logstash\
**Tags:** docker\
**Created:** [February 22, 2022, 10:42am UTC](https://discuss.elastic.co/t/how-to-automate-reading-logs/297873 "2022-02-22T10:42:51Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mariem](https://avatars.discourse-cdn.com/v4/letter/m/a6a055/32.png) [@Mariem](https://discuss.elastic.co/u/Mariem)\
**Post date:** [February 22, 2022, 10:42am UTC](https://discuss.elastic.co/t/how-to-automate-reading-logs/297873/1 "2022-02-22T10:42:51Z")

</div>

Hi, i'm using elk on docker and i want to automate reading logs from different server  
can someone help me ??

---

<div class="post-metadata">

**Author:** ![sholzhauer](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sholzhauer/32/110282_2.png) [@sholzhauer](https://discuss.elastic.co/u/sholzhauer)\
**Post date:** [February 23, 2022, 5:21pm UTC](https://discuss.elastic.co/t/how-to-automate-reading-logs/297873/2 "2022-02-23T17:21:57Z")

</div>

Hi,

First step would be to determine if your Elasticsearch is reachable from the other server.  
(telnet works great for this)

You then have to determine if you want to use logstash, filebeat or elastic-agent.  
(i'd suggest agent as this is the way forward)

---

<div class="post-metadata">

**Author:** ![nastasiya09](https://avatars.discourse-cdn.com/v4/letter/n/ecd19e/32.png) [@nastasiya09](https://discuss.elastic.co/u/nastasiya09)\
**Post date:** [February 23, 2022, 6:43pm UTC](https://discuss.elastic.co/t/how-to-automate-reading-logs/297873/3 "2022-02-23T18:43:45Z")

</div>

thanks this is really helpful

---

<div class="post-metadata">

**Author:** ![Mariem](https://avatars.discourse-cdn.com/v4/letter/m/a6a055/32.png) [@Mariem](https://discuss.elastic.co/u/Mariem)\
**Post date:** [February 24, 2022, 1:32pm UTC](https://discuss.elastic.co/t/how-to-automate-reading-logs/297873/4 "2022-02-24T13:32:02Z")

</div>

Hello ,  
How can i determine if Elasticsearch is reachable or no ?  
I'm gonna use logstash

---

<div class="post-metadata">

**Author:** ![sholzhauer](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sholzhauer/32/110282_2.png) [@sholzhauer](https://discuss.elastic.co/u/sholzhauer)\
**Post date:** [February 24, 2022, 1:38pm UTC](https://discuss.elastic.co/t/how-to-automate-reading-logs/297873/5 "2022-02-24T13:38:14Z")

</div>

First make sure your Elasticsearch docker is exposing ports (port mapping).  
This is part of the run command (or config).

Second from another host try to use telnet to connect to the exposed port or use a browser.  
Elasticsearch is HTTP(S) so opening the http(s)://\<hostrunning\_elastic\>: should show you a webpage with json.

---

<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:** [March 24, 2022, 1:38pm UTC](https://discuss.elastic.co/t/how-to-automate-reading-logs/297873/6 "2022-03-24T13:38:58Z")

</div>

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