# Module socket\_summary get open connections

**URL:** <https://discuss.elastic.co/t/module-socket-summary-get-open-connections/159117>\
**Category:** Beats\
**Tags:** metricbeat\
**Created:** [December 3, 2018, 8:49am UTC](https://discuss.elastic.co/t/module-socket-summary-get-open-connections/159117 "2018-12-03T08:49:01Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![rani](https://avatars.discourse-cdn.com/v4/letter/r/f4b2a3/32.png) [@rani](https://discuss.elastic.co/u/rani)\
**Post date:** [December 3, 2018, 8:49am UTC](https://discuss.elastic.co/t/module-socket-summary-get-open-connections/159117/1 "2018-12-03T08:49:01Z")

</div>

Hello there

I'm using the new system module "socket\_summary", to monitor my sockets. Is it possible to monitor the open TCP & UDP connections as well with this module (if not are there other options)? For example can I get a count of all open TCP connections?

Thanks in advance for your help.

---

<div class="post-metadata">

**Author:** ![Kaiyan\_Sheng](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kaiyan_sheng/32/38247_2.png) [@Kaiyan\_Sheng](https://discuss.elastic.co/u/Kaiyan_Sheng)\
**Post date:** [December 3, 2018, 4:46pm UTC](https://discuss.elastic.co/t/module-socket-summary-get-open-connections/159117/2 "2018-12-03T16:46:06Z")

</div>

Hello! Is `system.socket.summary.tcp.all.count` and `system.socket.summary.udp.all.count` what you are looking for? Please see [https://www.elastic.co/guide/en/beats/metricbeat/current/exported-fields-system.html](https://www.elastic.co/guide/en/beats/metricbeat/current/exported-fields-system.html) for more details.

---

<div class="post-metadata">

**Author:** ![rani](https://avatars.discourse-cdn.com/v4/letter/r/f4b2a3/32.png) [@rani](https://discuss.elastic.co/u/rani)\
**Post date:** [December 4, 2018, 7:18am UTC](https://discuss.elastic.co/t/module-socket-summary-get-open-connections/159117/3 "2018-12-04T07:18:50Z")

</div>

Hi @Kaiyan_Sheng thanks for your reply! This is actually exactly what I was looking for. However those metric didn't change while I was testing it. I just realized it was because I'm using the metricbeat container image ([docker.elastic.co/beats/metricbeat:6.5.0](http://docker.elastic.co/beats/metricbeat:6.5.0)) it only monitors the TCP connections of the container it's running on. Is there a possibility to monitor the connections of other containers as well, similar to the docker module? Or whats the point of the metricbeat container image? Monitoring a container where only metricbeat is running doesn't make much sense to me.

---

<div class="post-metadata">

**Author:** ![Kaiyan\_Sheng](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kaiyan_sheng/32/38247_2.png) [@Kaiyan\_Sheng](https://discuss.elastic.co/u/Kaiyan_Sheng)\
**Post date:** [December 4, 2018, 2:44pm UTC](https://discuss.elastic.co/t/module-socket-summary-get-open-connections/159117/4 "2018-12-04T14:44:09Z")

</div>

For monitoring the host machine and/or other containers, maybe [https://www.elastic.co/guide/en/beats/metricbeat/current/running-on-docker.html#monitoring-host](https://www.elastic.co/guide/en/beats/metricbeat/current/running-on-docker.html#monitoring-host) will help?

---

<div class="post-metadata">

**Author:** ![rani](https://avatars.discourse-cdn.com/v4/letter/r/f4b2a3/32.png) [@rani](https://discuss.elastic.co/u/rani)\
**Post date:** [December 5, 2018, 6:02am UTC](https://discuss.elastic.co/t/module-socket-summary-get-open-connections/159117/5 "2018-12-05T06:02:50Z")

</div>

Great, this is what I was looking for. Thank you.

---

<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:** [January 2, 2019, 6:02am UTC](https://discuss.elastic.co/t/module-socket-summary-get-open-connections/159117/6 "2019-01-02T06:02:51Z")

</div>

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