VMware {code} Community
anshul1217d
Contributor
Contributor

eventHistoryCollector.readNextEvents retuning Empty String or No Logs

Hi,

 

We have a Java Client to pull the logs from vmware vsphere and vcentre. We are using VMware SDK vim25.jar, vim.jar and yavijava-6.0.0.1.jar file to pull these logs. We are using method "eventHistoryCollector.readNextEvents" to read the events. 

Sample is : Event[] events = eventHistoryCollector.readNextEvents(Math.min(maxEvents, eventBufferSize));

We have a customer who is using a vcentre I am trying to connect to the vcentre and was able to connect to their device but after successful authentication the we are not getting any logs. It was always blank. There is no error coming and the result is always blank.

 

I am using the following parameter to connect to the device :

 

Server Host Name/IP

Server Port : 443

Connection Protocol : HTTPS

Username of Vcentre : ReadOnly User Privileges

Password:  Password of the above user

Number of History Days: Set to 10

IgnoreSSLCertificat: Disabled.

 

I have already pulled the certificate. So no issues there and no error related to that as well. 

If someone can help with this issue. Because we have tried to pull the vpsd logs and no error there as well regarding connection. Please the attached file. We have added extra logging in our client and still no error there.

Thanks,

Anshul

0 Kudos
0 Replies