I'm trying to utilize the elastic logstash to obtain VMware vcenter datacenter metrics via API but failed to connect them.
The vCenter version is 8.0.1.
I had successfully configured "syslog" as input and recieved logs from vCenter before therefore I assumed that the basic connection is good.
However when i try "http_poller" to access vCenter API, it didn't work. No data is recieved.
The basic codes that i utilized in the input section are shown below:
The reason why I wanna connect logstash to vSphere is due to the need for monitoring datacenter events and metrics, such as audit failure or disk utilization performance...etc, and the "syslog" is limited to do so.
If the metricbeat vsphere module is the best way to achieve this then I'm going to research it now.
By the way, is there any recommended modules/methods to utilize if i wanna do the same thing to other VMware products?(e.g. vRealize, NSX)
Filebeat or logstash for log files like syslog etc
Metricbeat for metrics.
And of course there's the new elastic agent that has many integrations, but that's another subject.
As to your other systems. I don't think there's out of the box solutions, but if there are log shippers, log files, Prometheus scrapers or other shippers elastic is open, you just need to POST json to it.
thank you stephen, the information is helpful.
may i confirm some last details please?
According to "Quick start: installation and configuration", if I want to acquire metrics from VMware vCenter server then the typical metricbeat should be installed on it? (the vcenter is utilizing Photon OS so i assume it's supported.)
The "vSphere module"(and also the "modules lists") only described that three metricsets are supported(datastore, vm, host), so currently these are the only options to collect data from?
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.