vmware / vmware/pyvmomi

Can I access the log file of a virtual machine (vmware.log) from the API?

Open
#264 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

question VMware Staff Assist Needed
Dominant language
Python
Stars
2.3k
Forks
763
PR merge metrics
No merged PRs in 30d

Description

Hi,

I am trying to create some script that will be able to monitor if a specific error appeared at the virtual machine log file (vmware.log). if to be more specific, i am trying to catch the "Lost connectivity to SVM" error. As far as I know there is now event/alarm associated with this error.

Is there a way i can access the virtual machine log file from the API, maybe something similar to the DiagnosticManager?

I know I can use the SearchDatastoreSubfolder method to find all log files, generate a url and download the file, but i'm looking for something a little more efficient.

Thanks!

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing the pyvmomi bindings for DiagnosticManager and SearchDatastoreSubfolder, then check whether the VMware API exposes a more direct virtual-machine log access method. Done means establishing whether vmware.log and the “Lost connectivity to SVM” message can be accessed through an existing API or require the datastore-download approach.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
api, backend-api-design
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.