# Elastic APM log every 10 seconds?

**URL:** <https://discuss.elastic.co/t/elastic-apm-log-every-10-seconds/326870>\
**Category:** APM\
**Tags:** nodejs, server\
**Created:** [March 2, 2023, 2:56pm UTC](https://discuss.elastic.co/t/elastic-apm-log-every-10-seconds/326870 "2023-03-02T14:56:23Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![pocketcolin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/pocketcolin/32/117585_2.png) [@pocketcolin](https://discuss.elastic.co/u/pocketcolin)\
**Post date:** [March 2, 2023, 2:56pm UTC](https://discuss.elastic.co/t/elastic-apm-log-every-10-seconds/326870/1 "2023-03-02T14:56:23Z")

</div>

I've been slowly cleaning up my Elastic integration and fine tuning the logs I'm getting, but one thing I can't figure out is a log from APM that my integration is receiving every 10 seconds. Is it some sort of heartbeat monitor? Can I configure it? I see the following exactly every 10 seconds in my APM index:

```auto
{
  "_index": ".ds-metrics-apm.internal-default-2023.02.17-000001",
  "_id": "REDACTED",
  "_version": 1,
  "_score": 0,
  "_source": {
    "container": {
      "id": "REDACTED"
    },
    "system.process.cpu.total.norm.pct": 0.0002935195085644799,
    "agent": {
      "name": "nodejs",
      "version": "3.42.0"
    },
    "nodejs.memory.external.bytes": 24946495,
    "system.cpu.total.norm.pct": 0.3384908904123949,
    "observer": {
      "hostname": "REDACTED",
      "type": "apm-server",
      "version": "8.6.2"
    },
    "nodejs.eventloop.delay.avg.ms": 0.16460999593220293,
    "system.process.memory.size": 22757142528,
    "system.process.cpu.system.norm.pct": 0.00006289703754953141,
    "host": {
      "hostname": "srv-REDACTED",
      "os": {
        "platform": "linux"
      },
      "ip": [
        "REDACTED"
      ],
      "name": "srv-REDACTED",
      "architecture": "x64"
    },
    "system.memory.actual.free": 25462472704,
    "system.memory.total": 66245554176,
    "nodejs.requests.active": 3,
    "nodejs.memory.heap.used.bytes": 70463240,
    "event": {
      "agent_id_status": "missing",
      "ingested": "2023-03-02T14:38:01Z"
    },
    "process": {
      "args": [
        "/opt/render/project/nodes/node-16.14.0/bin/node",
        "/opt/render/project/src/dist/index.js"
      ],
      "parent": {
        "pid": 61
      },
      "pid": 62,
      "title": "node"
    },
    "data_stream.namespace": "default",
    "nodejs.memory.heap.allocated.bytes": 78667776,
    "nodejs.handles.active": 5,
    "nodejs.memory.arrayBuffers.bytes": 23241960,
    "data_stream.type": "metrics",
    "processor": {
      "name": "metric",
      "event": "metric"
    },
    "labels": {
      "hostname": "srv-REDACTED",
      "env": "development"
    },
    "system.process.memory.rss.bytes": 125304832,
    "metricset.name": "app",
    "@timestamp": "2023-03-02T14:37:49.955Z",
    "system.process.cpu.user.norm.pct": 0.00023062247101494852,
    "service": {
      "node": {
        "name": "REDACTED"
      },
      "environment": "development",
      "framework": {
        "name": "express",
        "version": "4.17.1"
      },
      "name": "server",
      "runtime": {
        "name": "node",
        "version": "16.14.0"
      },
      "language": {
        "name": "javascript"
      },
      "version": "3.8.12"
    },
    "data_stream.dataset": "apm.internal"
  },
  "fields": {
    "system.process.cpu.total.norm.pct": [
      0
    ],
    "process.parent.pid": [
      61
    ],
    "host.hostname": [
      "srv-REDACTED"
    ],
    "process.pid": [
      62
    ],
    "service.language.name": [
      "javascript"
    ],
    "container.id": [
      "REDACTED"
    ],
    "process.title.text": [
      "node"
    ],
    "system.process.memory.size": [
      22757142528
    ],
    "system.process.cpu.system.norm.pct": [
      0
    ],
    "processor.event": [
      "metric"
    ],
    "system.memory.actual.free": [
      25462472704
    ],
    "agent.name": [
      "nodejs"
    ],
    "system.memory.total": [
      66245554176
    ],
    "host.name": [
      "srv-REDACTED"
    ],
    "nodejs.requests.active": [
      3
    ],
    "nodejs.memory.heap.used.bytes": [
      70463240
    ],
    "event.agent_id_status": [
      "missing"
    ],
    "nodejs.memory.heap.allocated.bytes": [
      78667776
    ],
    "processor.name": [
      "metric"
    ],
    "service.runtime.version": [
      "16.14.0"
    ],
    "data_stream.type": [
      "metrics"
    ],
    "host.architecture": [
      "x64"
    ],
    "ecs.version": [
      "8.6.0-dev"
    ],
    "observer.type": [
      "apm-server"
    ],
    "observer.version": [
      "8.6.2"
    ],
    "agent.version": [
      "3.42.0"
    ],
    "process.title": [
      "node"
    ],
    "service.framework.version": [
      "4.17.1"
    ],
    "nodejs.memory.external.bytes": [
      24946495
    ],
    "service.node.name": [
      "REDACTED"
    ],
    "system.cpu.total.norm.pct": [
      0.338
    ],
    "host.ip": [
      "3.129.111.220"
    ],
    "nodejs.eventloop.delay.avg.ms": [
      0.165
    ],
    "labels.env": [
      "development"
    ],
    "service.environment": [
      "development"
    ],
    "service.name": [
      "server"
    ],
    "service.framework.name": [
      "express"
    ],
    "data_stream.namespace": [
      "default"
    ],
    "service.runtime.name": [
      "node"
    ],
    "process.args": [
      "/opt/render/project/nodes/node-16.14.0/bin/node",
      "/opt/render/project/src/dist/index.js"
    ],
    "nodejs.handles.active": [
      5
    ],
    "nodejs.memory.arrayBuffers.bytes": [
      23241960
    ],
    "observer.hostname": [
      "f91b453669f0"
    ],
    "metricset.name": [
      "app"
    ],
    "system.process.memory.rss.bytes": [
      125304832
    ],
    "event.ingested": [
      "2023-03-02T14:38:01.000Z"
    ],
    "@timestamp": [
      "2023-03-02T14:37:49.955Z"
    ],
    "service.version": [
      "3.8.12"
    ],
    "host.os.platform": [
      "linux"
    ],
    "system.process.cpu.user.norm.pct": [
      0
    ],
    "data_stream.dataset": [
      "apm.internal"
    ],
    "labels.hostname": [
      "srv-REDACTED"
    ]
  }
}

```

---

<div class="post-metadata">

**Author:** ![trentm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/trentm/32/77647_2.png) [@trentm](https://discuss.elastic.co/u/trentm)\
**Post date:** [March 2, 2023, 5:20pm UTC](https://discuss.elastic.co/t/elastic-apm-log-every-10-seconds/326870/2 "2023-03-02T17:20:24Z")

</div>

Hi @pocketcolin,

That looks like one of the "metricset" records that the Node.js agent sends every [`metricsInterval`](https://www.elastic.co/guide/en/apm/agent/nodejs/current/configuration.html#metrics-interval). Some details on what metrics are collected are here: [Metrics | APM Node.js Agent Reference [3.x] | Elastic](https://www.elastic.co/guide/en/apm/agent/nodejs/current/metrics.html)

You can configure that interval, or disable metrics collection altogether via `metricsInterval: '0s'`.

---

<div class="post-metadata">

**Author:** ![pocketcolin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/pocketcolin/32/117585_2.png) [@pocketcolin](https://discuss.elastic.co/u/pocketcolin)\
**Post date:** [March 2, 2023, 5:22pm UTC](https://discuss.elastic.co/t/elastic-apm-log-every-10-seconds/326870/3 "2023-03-02T17:22:00Z")

</div>

Perfect. Thanks for the explanation!

---

<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 23, 2023, 1:22pm UTC](https://discuss.elastic.co/t/elastic-apm-log-every-10-seconds/326870/4 "2023-03-23T13:22:15Z")

</div>

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