# Message: app heartbeat--8.4.3-d6501b26: Missed two check-in elastic-agent standalone

**URL:** <https://discuss.elastic.co/t/message-app-heartbeat-8-4-3-d6501b26-missed-two-check-in-elastic-agent-standalone/325050>\
**Category:** Beats\
**Tags:** beats-module, heartbeat\
**Created:** [February 8, 2023, 6:21pm UTC](https://discuss.elastic.co/t/message-app-heartbeat-8-4-3-d6501b26-missed-two-check-in-elastic-agent-standalone/325050 "2023-02-08T18:21:04Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bhrugu\_Sharma](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bhrugu_sharma/32/116623_2.png) [@Bhrugu\_Sharma](https://discuss.elastic.co/u/Bhrugu_Sharma)\
**Post date:** [February 8, 2023, 6:21pm UTC](https://discuss.elastic.co/t/message-app-heartbeat-8-4-3-d6501b26-missed-two-check-in-elastic-agent-standalone/325050/1 "2023-02-08T18:21:04Z")

</div>

I've used the code mentioned below, and when i log into one of the agents and do `./elastic-agent status` i get the following error

 ![Capture](https://us1.discourse-cdn.com/elastic/original/3X/4/e/4eede05cd3b0d63bac99f736df5da4d4a36795e8.png)  
and the logs for kibana states  
 ![Capture](https://us1.discourse-cdn.com/elastic/original/3X/0/7/07249a47347f9a57d367e77ba9a462c87827543f.png)

sample code

```auto
apiVersion: v1
kind: ConfigMap
metadata:
  name: agent-node-datastreams
  namespace: elastic
  labels:
    k8s-app: elastic-agent-standalone
data:
  agent.yml: |-
    outputs:
      default:
        type: elasticsearch
        protocol: https
        ssl.verification_mode: 'none'
        allow_older_versions: true
        hosts:
          - >-
            ${ES_HOST}
        username: ${ES_USERNAME}
        password: ${ES_PASSWORD}
    agent:
      monitoring:
        enabled: true
        use_output: default
        logs: true
        metrics: false
    providers.kubernetes:
      node: ${NODE_NAME}
      scope: node
    inputs:
      - id: heartbeat
        type: synthetics
        use_output: default
        data_stream:
          namespace: heartbeat
        streams:
          - data_stream:
              dataset: heartbeat
              type: synthetics
            hosts: ["x.x.x.x"]
            schedule: '@every 3s'
            timeout: 16s
            check.response.status: [200]

```

any response on this would be much appreciated by this novice.

---

<div class="post-metadata">

**Author:** ![Andrew\_Cholakian1](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/andrew_cholakian1/32/3612_2.png) [@Andrew\_Cholakian1](https://discuss.elastic.co/u/Andrew_Cholakian1)\
**Post date:** [February 9, 2023, 1:15am UTC](https://discuss.elastic.co/t/message-app-heartbeat-8-4-3-d6501b26-missed-two-check-in-elastic-agent-standalone/325050/2 "2023-02-09T01:15:55Z")

</div>

Sorry to hear about this issue, but we're here to help. Can you share your logs for heartbeat from the Fleet UI? You can find information on how to do that here: [Monitor Elastic Agents | Fleet and Elastic Agent Guide [8.6] | Elastic](https://www.elastic.co/guide/en/fleet/current/monitor-elastic-agent.html#view-agent-logs)

---

<div class="post-metadata">

**Author:** ![Bhrugu\_Sharma](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bhrugu_sharma/32/116623_2.png) [@Bhrugu\_Sharma](https://discuss.elastic.co/u/Bhrugu_Sharma)\
**Post date:** [February 9, 2023, 4:16am UTC](https://discuss.elastic.co/t/message-app-heartbeat-8-4-3-d6501b26-missed-two-check-in-elastic-agent-standalone/325050/3 "2023-02-09T04:16:32Z")

</div>

I am using standalone elastic agent, not managed by fleet

---

<div class="post-metadata">

**Author:** ![emilioalvap](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/emilioalvap/32/99310_2.png) [@emilioalvap](https://discuss.elastic.co/u/emilioalvap)\
**Post date:** [February 14, 2023, 9:34pm UTC](https://discuss.elastic.co/t/message-app-heartbeat-8-4-3-d6501b26-missed-two-check-in-elastic-agent-standalone/325050/4 "2023-02-14T21:34:13Z")

</div>

Hi @Bhrugu_Sharma,

When Heartbeat is reported as `DEGRADED`, it won't appear inside elastic-agent diagnostics since it's an error preventing ipc.

This issue in K8s is most of the times related to user/file permissions. I'd recommend avoiding running `elastic-agent` under `root`. There's a default `elastic-agent` user (id=1000) which is configured with required file permissions inside the container.  
If running as `root` is required, I'd suggest setting up the underlying filesystem by hand and making sure file permissions allow access for `id=1000`.  
This should be fixed for `8.7`, but until then it's a constraint we have to work with.

If you have access to the container, it's still possbile to get heartbeat logs (if there any) by reading directly from `/usr/share/elastic-agent/state/data/logs/default/heartbeat*`. If there isn't any log files, then it's most likely a directory permission error.

Hope it helps.

---

<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 14, 2023, 9:35pm UTC](https://discuss.elastic.co/t/message-app-heartbeat-8-4-3-d6501b26-missed-two-check-in-elastic-agent-standalone/325050/5 "2023-03-14T21:35:11Z")

</div>

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