# How to get CPU, Memory and Storage from VCenter not VM's using Logstash

**URL:** <https://discuss.elastic.co/t/how-to-get-cpu-memory-and-storage-from-vcenter-not-vms-using-logstash/334747>\
**Category:** Logstash\
**Created:** [May 31, 2023, 6:32am UTC](https://discuss.elastic.co/t/how-to-get-cpu-memory-and-storage-from-vcenter-not-vms-using-logstash/334747 "2023-05-31T06:32:05Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![gaetano](https://avatars.discourse-cdn.com/v4/letter/g/b9e5f3/32.png) [@gaetano](https://discuss.elastic.co/u/gaetano)\
**Post date:** [May 31, 2023, 6:32am UTC](https://discuss.elastic.co/t/how-to-get-cpu-memory-and-storage-from-vcenter-not-vms-using-logstash/334747/1 "2023-05-31T06:32:05Z")

</div>

I'm trying to send CPU, Memory and Storage parameters of VCenter Server (VMWare) to Elasticsearch node (8.6.1 verson) passing by Logstash 8.6.1. What MIB file should I use to get those specific parameters?  
This is my Logstash configuration file:

```auto
input {
  snmp {
    get => ["1.3.6.1.4.1.6876.3.2.1.0"]
    hosts => [{host => "udp:10.4.1.183/161" version => "3"}]
	mib_paths => ["C:\Monitoring\logging\logstash-8.6.1-server\mibs"]
	security_name => "user1"
	auth_protocol => "sha"
    auth_pass => "test1"
	priv_protocol => "aes128"
	priv_pass => "test1"
	interval => 30
	security_level => "authPriv"
  }
}
output {
  elasticsearch {
		    hosts => ["https://XX.X.X.XXX:9200"]
			index => "server-%{+YYYY.MM.dd}"
			user => "elastic"
			password => "test"
			ssl => true
			ssl_certificate_verification => false
		}
}

```

The parameters that I want to get are in the following image on the right:

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/6/a/6abf972c5fa85161af3c566b7e567ba7215f1c48.png)

---

<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 28, 2023, 6:33am UTC](https://discuss.elastic.co/t/how-to-get-cpu-memory-and-storage-from-vcenter-not-vms-using-logstash/334747/2 "2023-06-28T06:33:02Z")

</div>

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