# Logstash healthcheck

**URL:** <https://discuss.elastic.co/t/logstash-healthcheck/271088>\
**Category:** Logstash\
**Tags:** docker\
**Created:** [April 23, 2021, 12:34pm UTC](https://discuss.elastic.co/t/logstash-healthcheck/271088 "2021-04-23T12:34:33Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![sulsulatoff](https://avatars.discourse-cdn.com/v4/letter/s/91b2a8/32.png) [@sulsulatoff](https://discuss.elastic.co/u/sulsulatoff)\
**Post date:** [April 23, 2021, 12:34pm UTC](https://discuss.elastic.co/t/logstash-healthcheck/271088/1 "2021-04-23T12:34:33Z")

</div>

Our Logstash runs in a pod every 30 mins. Once in a while, it stops working and we need to restart the pod.  
Is there a way logstash can notify an external server that it's up and running (an http endpoint)

---

<div class="post-metadata">

**Author:** ![A\_B](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/a_b/32/17104_2.png) [@A\_B](https://discuss.elastic.co/u/A_B)\
**Post date:** [April 23, 2021, 2:16pm UTC](https://discuss.elastic.co/t/logstash-healthcheck/271088/2 "2021-04-23T14:16:01Z")

</div>

Hi @sulsulatoff ,

there is a local API endpoint

```
# curl -s -XGET localhost:9600 | jq .
{
  "host": "logstash32.mydomain.com",
  "version": "7.8.1",
  "http_address": "127.0.0.1:9600",
  "id": "fe525a53-e769-48e0-ac5e-1a1ce334d1b0",
  "name": "logstash32.mydomain.com",
  "ephemeral_id": "9d068ad4-4c91-4552-aeea-67cb9db3de15",
  "status": "green",
  "snapshot": false,
  "pipeline": {
    "workers": 16,
    "batch_size": 125,
    "batch_delay": 50
  },
  "monitoring": {
    "hosts": [
      "10.0.0.123:9200",
      "10.0.0.124:9200",
      "10.0.0.126:9200",
      "10.0.0.127:9200"
    ],
    "username": "logstash_system"
  },
  "build_date": "2020-07-21T19:19:46+00:00",
  "build_sha": "5dcccb963be4c163647232fe4b67bdf4b8efc2cb",
  "build_snapshot": false
}

```

If an external service would need access, you could expose it I guess. Not sure what the security implications are...

---

<div class="post-metadata">

**Author:** ![sulsulatoff](https://avatars.discourse-cdn.com/v4/letter/s/91b2a8/32.png) [@sulsulatoff](https://discuss.elastic.co/u/sulsulatoff)\
**Post date:** [April 26, 2021, 1:43pm UTC](https://discuss.elastic.co/t/logstash-healthcheck/271088/3 "2021-04-26T13:43:42Z")

</div>

Thank you @A_B

---

<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:** [May 24, 2021, 1:44pm UTC](https://discuss.elastic.co/t/logstash-healthcheck/271088/4 "2021-05-24T13:44:25Z")

</div>

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