# Single event for all the metrics

**URL:** https://discuss.elastic.co/t/single-event-for-all-the-metrics/180406
**Category:** Beats
**Tags:** metricbeat
**Created:** [May 9, 2019, 4:16pm UTC](https://discuss.elastic.co/t/single-event-for-all-the-metrics/180406 "2019-05-09T16:16:41Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![whiletruelearn](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/whiletruelearn/32/43331_2.png) [@whiletruelearn](https://discuss.elastic.co/u/whiletruelearn)
#### Post date: [May 9, 2019, 4:16pm UTC](https://discuss.elastic.co/t/single-event-for-all-the-metrics/180406/1 "2019-05-09T16:16:41Z")

</div>

Hi ,

I could see in this post[1] that it will be possible to have multiple events from various metricssets such as cpu, load, memory etc written as a single event.

As mentioned in the post

> Having all the related metrics in a single event also makes it easier to look at other values when one of the metrics for a service seems off.

I would like to know how this could be done.

[1] [Key metricbeat features | Metricbeat Reference [8.11] | Elastic](https://www.elastic.co/guide/en/beats/metricbeat/current/key-features.html#multiple-events-in-one)

---

<div class="post-metadata">

### Author: ![Mario\_Castro](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mario_castro/32/35107_2.png) [@Mario\_Castro](https://discuss.elastic.co/u/Mario_Castro)
#### Post date: [May 13, 2019, 4:56pm UTC](https://discuss.elastic.co/t/single-event-for-all-the-metrics/180406/2 "2019-05-13T16:56:58Z")

</div>

Hi @whiletruelearn 🙂

Metricbeat already sends events grouped in a nested JSON but it doesn't group more than one Metricset per event. This is like this by design, of course.

What docs refers to is that Metricbeat doesn't have a behavior like, for example, statsd where each single metric is sent to a collector in a different TCP or UDP request but that all related metrics in a metricset are sent together in a single TCP request.

Hope this 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: [June 10, 2019, 4:57pm UTC](https://discuss.elastic.co/t/single-event-for-all-the-metrics/180406/3 "2019-06-10T16:57:02Z")

</div>

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