# Beat : vsphere module

**URL:** https://discuss.elastic.co/t/beat-vsphere-module/130494
**Category:** Beats
**Tags:** metricbeat
**Created:** [May 3, 2018, 3:58pm UTC](https://discuss.elastic.co/t/beat-vsphere-module/130494 "2018-05-03T15:58:07Z")
**Posts on this page:** 13
**Page:** 1

<div class="post-metadata">

### Author: ![adelbot](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/adelbot/32/30769_2.png) [@adelbot](https://discuss.elastic.co/u/adelbot)
#### Post date: [May 3, 2018, 3:58pm UTC](https://discuss.elastic.co/t/beat-vsphere-module/130494/1 "2018-05-03T15:58:08Z")

</div>

Is it possible to retrieve Tag Field like Custom field ?  
These "custom" field seems be in end of life at vmware.

Why not retrieve the distributed network port group ?

---

<div class="post-metadata">

### Author: ![ruflin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ruflin/32/3116_2.png) [@ruflin](https://discuss.elastic.co/u/ruflin)
#### Post date: [May 4, 2018, 7:53am UTC](https://discuss.elastic.co/t/beat-vsphere-module/130494/2 "2018-05-04T07:53:35Z")

</div>

Could you share a bit more details with links or example docs on the fields you are talking about? I assume you run our current vsphere module and didn't get the fields you needed?

---

<div class="post-metadata">

### Author: ![adelbot](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/adelbot/32/30769_2.png) [@adelbot](https://discuss.elastic.co/u/adelbot)
#### Post date: [May 4, 2018, 9:02am UTC](https://discuss.elastic.co/t/beat-vsphere-module/130494/3 "2018-05-04T09:02:32Z")

</div>

Hi,

In my use case, i want use two type of informations from vcenter :

First : The network name is a distributed port group

Second : We use Tags on virtualmachine.

In the API Explorer :

 ![](https://us1.discourse-cdn.com/elastic/original/3X/0/8/08bf1a4cf436a4c362bba520c638de1f20efafac.png)

---

<div class="post-metadata">

### Author: ![ruflin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ruflin/32/3116_2.png) [@ruflin](https://discuss.elastic.co/u/ruflin)
#### Post date: [May 7, 2018, 7:49am UTC](https://discuss.elastic.co/t/beat-vsphere-module/130494/4 "2018-05-07T07:49:22Z")

</div>

To recap: You are already using our vsphere module with the metricsets but are missing these fields?

- For the tags: I tried to search the library we use for tags but couldn't find something inside virtual machines for it: [https://github.com/vmware/govmomi](https://github.com/vmware/govmomi) Do you have an API link for tags by chance?
- For the port group: Does this belong to the virtualmachine or host metricset?

---

<div class="post-metadata">

### Author: ![adelbot](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/adelbot/32/30769_2.png) [@adelbot](https://discuss.elastic.co/u/adelbot)
#### Post date: [May 12, 2018, 4:55pm UTC](https://discuss.elastic.co/t/beat-vsphere-module/130494/5 "2018-05-12T16:55:19Z")

</div>

I use /apiexplorer/cis

For the port group, it s for virtualmachine

---

<div class="post-metadata">

### Author: ![adelbot](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/adelbot/32/30769_2.png) [@adelbot](https://discuss.elastic.co/u/adelbot)
#### Post date: [May 17, 2018, 8:58am UTC](https://discuss.elastic.co/t/beat-vsphere-module/130494/6 "2018-05-17T08:58:11Z")

</div>

Hi,

Maybe an another information :

[https://github.com/vmware/govmomi/issues/957](https://github.com/vmware/govmomi/issues/957)

Alain

---

<div class="post-metadata">

### Author: ![ruflin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ruflin/32/3116_2.png) [@ruflin](https://discuss.elastic.co/u/ruflin)
#### Post date: [May 22, 2018, 12:34pm UTC](https://discuss.elastic.co/t/beat-vsphere-module/130494/7 "2018-05-22T12:34:44Z")

</div>

That is exactly the link I was looking for. So it seems govmomi does not support it yet but wants to add it? Can you open a feature request in Metricbeat as soon as the library has support for it? This should make the implementation pretty simple.

---

<div class="post-metadata">

### Author: ![adelbot](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/adelbot/32/30769_2.png) [@adelbot](https://discuss.elastic.co/u/adelbot)
#### Post date: [May 22, 2018, 6:20pm UTC](https://discuss.elastic.co/t/beat-vsphere-module/130494/8 "2018-05-22T18:20:40Z")

</div>

but now, we can call in rest to know the tags without new version of govmomi.

is it possible ?

---

<div class="post-metadata">

### Author: ![ruflin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ruflin/32/3116_2.png) [@ruflin](https://discuss.elastic.co/u/ruflin)
#### Post date: [May 24, 2018, 7:37am UTC](https://discuss.elastic.co/t/beat-vsphere-module/130494/9 "2018-05-24T07:37:00Z")

</div>

We probably could. The challenge is that our implementation is currently based on the library and we get all the data through it. To get tags through rest it would mean getting everything through rest and changing the implementation.

Now that I see there is a REST API I wonder what the advantage of one over the other is and it seems there are even differences. Do you know some more details here?

---

<div class="post-metadata">

### Author: ![adelbot](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/adelbot/32/30769_2.png) [@adelbot](https://discuss.elastic.co/u/adelbot)
#### Post date: [May 24, 2018, 11:38am UTC](https://discuss.elastic.co/t/beat-vsphere-module/130494/10 "2018-05-24T11:38:03Z")

</div>

Hi,

Ok for the reflexion.

I have open a ticket on vmware about library and tags.

---

<div class="post-metadata">

### Author: ![ruflin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ruflin/32/3116_2.png) [@ruflin](https://discuss.elastic.co/u/ruflin)
#### Post date: [May 25, 2018, 8:59am UTC](https://discuss.elastic.co/t/beat-vsphere-module/130494/11 "2018-05-25T08:59:55Z")

</div>

Thank you, could you link it here for other people stumbling over this?

---

<div class="post-metadata">

### Author: ![adelbot](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/adelbot/32/30769_2.png) [@adelbot](https://discuss.elastic.co/u/adelbot)
#### Post date: [May 25, 2018, 12:09pm UTC](https://discuss.elastic.co/t/beat-vsphere-module/130494/12 "2018-05-25T12:09:48Z")

</div>

Maybe, you can take a look on [https://github.com/vmware/govmomi/issues/1139](https://github.com/vmware/govmomi/issues/1139)

Alain

---

<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 22, 2018, 12:09pm UTC](https://discuss.elastic.co/t/beat-vsphere-module/130494/13 "2018-06-22T12:09:49Z")

</div>

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