# Monitoring .NET Core EventCounters with Metricbeat or Filebeat?

**URL:** https://discuss.elastic.co/t/monitoring-net-core-eventcounters-with-metricbeat-or-filebeat/306414
**Category:** Beats
**Tags:** filebeat, metricbeat
**Created:** [June 5, 2022, 10:19pm UTC](https://discuss.elastic.co/t/monitoring-net-core-eventcounters-with-metricbeat-or-filebeat/306414 "2022-06-05T22:19:48Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Inammathe\_Inna](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/inammathe_inna/32/40656_2.png) [@Inammathe\_Inna](https://discuss.elastic.co/u/Inammathe_Inna)
#### Post date: [June 5, 2022, 10:19pm UTC](https://discuss.elastic.co/t/monitoring-net-core-eventcounters-with-metricbeat-or-filebeat/306414/1 "2022-06-05T22:19:48Z")

</div>

Hi guys,

So apparently .NET Core on Windows no longer writes to the metricset perfmon.  
It instead uses EventCounters - [EventCounters in .NET Core | Microsoft Docs](https://docs.microsoft.com/en-us/dotnet/core/diagnostics/event-counters)

Has anybody found an elegant way to send these metrics up to Elastic?  
We were thinking writing something custom that dumps the counter metrics we are interested in to a file and sending that via filebeats or something.

Thoughts?

Thanks!

---

<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: [July 4, 2022, 12:20am UTC](https://discuss.elastic.co/t/monitoring-net-core-eventcounters-with-metricbeat-or-filebeat/306414/2 "2022-07-04T00:20:20Z")

</div>

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