# How to setup Hyper V with winlogbeat

**URL:** <https://discuss.elastic.co/t/how-to-setup-hyper-v-with-winlogbeat/212807>\
**Category:** Beats\
**Tags:** winlogbeat\
**Created:** [December 23, 2019, 6:01am UTC](https://discuss.elastic.co/t/how-to-setup-hyper-v-with-winlogbeat/212807 "2019-12-23T06:01:28Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![tahseen\_fatima](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tahseen_fatima/32/67789_2.png) [@tahseen\_fatima](https://discuss.elastic.co/u/tahseen_fatima)\
**Post date:** [December 23, 2019, 6:01am UTC](https://discuss.elastic.co/t/how-to-setup-hyper-v-with-winlogbeat/212807/1 "2019-12-23T06:01:29Z")

</div>

Hey,

I want to monitor hyper v events using winlogbeat.  
How to do that, can someone please help.

Thanks,  
Tahseen.

---

<div class="post-metadata">

**Author:** ![andrewkroh](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/andrewkroh/32/3784_2.png) [@andrewkroh](https://discuss.elastic.co/u/andrewkroh)\
**Post date:** [January 3, 2020, 3:18am UTC](https://discuss.elastic.co/t/how-to-setup-hyper-v-with-winlogbeat/212807/2 "2020-01-03T03:18:55Z")

</div>

Get a list of the Hyper-V event log channel names and then add them to your winlogbeat.yml file.

As mentioned in [Winlogbeat - How to determine correct channel names](https://discuss.elastic.co/t/winlogbeat-how-to-determine-correct-channel-names/136722/4) try using `Get-WinEvent -ListLog * | Format-List -Property LogName | Select-String -Pattern "Hyper-V"`. Then for each channel name add an entry to the config file.

---

<div class="post-metadata">

**Author:** ![tahseen\_fatima](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tahseen_fatima/32/67789_2.png) [@tahseen\_fatima](https://discuss.elastic.co/u/tahseen_fatima)\
**Post date:** [January 9, 2020, 9:19am UTC](https://discuss.elastic.co/t/how-to-setup-hyper-v-with-winlogbeat/212807/3 "2020-01-09T09:19:57Z")

</div>

Yes I did and it worked.  
i have configured in windows module using metricbeat.

```
> - module: windows
> metricsets:
> - perfmon
> period: 1s
> perfmon.counters:
> - instance_label: processor.name
> instance_name: total
> measurement_label: processor.time.total.pct
> query: '\Processor Information(_Total)\% Processor Time'
> 
> - instance_label: physical_disk.name
> measurement_label: physical_disk.write.per_sec
> query: '\PhysicalDisk(*)\Disk Writes/sec'
> 
> - instance_label: physical_disk.name
> measurement_label: physical_disk.write.time.pct
> query: '\PhysicalDisk(*)\% Disk Write Time'
> ###### making changes below.
> - instance_label: logical_processor.name
> instance_name: hyper v
> measurement_label: logical_processor.time.total.pct
> query: '\Hyper-V Hypervisor Logical Processor(_Total)\% Total Run Time'
> 
> 
> - instance_label: logical_disk.usage
> instance_name: hyper v disk-write
> measurement_label: logical_disk.write.per_sec
> query: '\LogicalDisk(_Total)\Avg. Disk sec/Write'
> 
> - instance_label: logical_disk.usage
> instance_name: hyper v disk-read
> measurement_label: logical_disk.read.per_sec
> query: '\LogicalDisk(_Total)\Avg. Disk sec/Read'
> 
> - instance_label: Memory.usage
> instance_name: hyper v ram
> measurement_label: memory.write.time.pct
> query: '\Memory\Available MBytes'

```

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:** [February 6, 2020, 9:19am UTC](https://discuss.elastic.co/t/how-to-setup-hyper-v-with-winlogbeat/212807/4 "2020-02-06T09:19:59Z")

</div>

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