Skip to content
Luca Dell'Oca Principal Cloud Architect @Veeam
Virtual To The Core Virtual To The Core

Virtualization blog, the italian way.

  • Media
  • About me
Virtual To The Core
Virtual To The Core

Virtualization blog, the italian way.

La rotazione dei log

Luca Dell'Oca, March 31, 2009December 4, 2016

Benchè i sistemi esx e virtual center siano stati cconfigurati molto bene da VMware, può capitare che i vari log ruotino troppo velocemente o che i file crescano troppo, rischiando di saturare lo spazio disco. E’ possibile ovviamente modificare i parametri di rotazione dei vari log; vediamo come.

hostd

Il file di configurazione per hostd si trova in /etc/vmware/hostd/config.xml.
<config>
:
<log>
<directory>/var/log/vmware/</directory>  — Logging path
<level>verbose</level>                   — Log Level
<name>hostd</name>                       — Prefix
<outputToConsole>false</outputToConsole> — Console out
<maxFileSize>5242880</maxFileSize>       — Maximum size of each log file (in bytes)
<maxFileNum>50</maxFileNum>              — Maximum number of log files
</log>
:
</config>

vpxa

Il file di configurazione per vpxa è situato in /etc/vmware/vpxa.cfg ,mentre in ESX 3.5 è /etc/opt/vmware/vpxa/vpxa.cfg .
<config>
:
<log>
:
<maxFileNum>50</maxFileNum>              — Maximum number of log files
<maxFileSize>5242880</maxFileSize>       — Maximum size of each log file (in bytes)
</log>
:
</config>

vpxd

Il file di configurazione per vpxd è localizzato in C:\Documents and Settings\All Users\Application Data\VMware\VMware VirtualCenter\vpxd.cfg.
<config>
:
<log>
<level>trivia</level>                     — Log Level
<maxFileNum>50</maxFileNum>               — Number of log files (Approx. 5MB each)
<maxFileSize>5242880</maxFileSize>        — Maximum size of each log file (in bytes)
<directory>C:\vpxlog\</directory>         — Logging path
<name>vpxd</name>                         — Prefix
</log>
:
</config>

vpxd

Il file di configurazione per vpxd è localizzato in C:\Documents and Settings\All Users\Application Data\VMware\VMware VirtualCenter\vpxd.cfg.
<config>
:
<log>
<level>trivia</level>                     — Log Level
<maxFileNum>50</maxFileNum>               — Number of log files (Approx. 5MB each)
<maxFileSize>5242880</maxFileSize>        — Maximum size of each log file (in bytes)
<directory>C:\vpxlog\</directory>         — Logging path
<name>vpxd</name>                         — Prefix
</log>
:
</config>

vmware.log

Questo è il file di log della singola virtual machine. Per modificare i parametri è necessario editare il file vmx corrispondente.
Abbiamo a disposizione 4 parametri, che possiamo variare in questo modo:
logging = true o false
log.rotateSize = dimensione massima del file prima della rotazione, in bytes: 10000
log.keepOld = quanti file di log precedente tenere: 10
log.fileName = possiamo eventualmente cambiare il nome e il percorso del file

Share this:

  • Click to share on X (Opens in new window) X
  • Click to share on Facebook (Opens in new window) Facebook
  • Click to share on LinkedIn (Opens in new window) LinkedIn
  • Click to email a link to a friend (Opens in new window) Email
  • Click to share on Tumblr (Opens in new window) Tumblr
  • Click to share on Pinterest (Opens in new window) Pinterest
  • Click to share on Reddit (Opens in new window) Reddit
  • Click to share on WhatsApp (Opens in new window) WhatsApp
  • Click to share on Pocket (Opens in new window) Pocket
Tecnologia rotazione log

Post navigation

Previous post
Next post

Search

Sponsors

Latest Posts

  • Migrate WSL (Windows Subsystem for Linux) to a new computer
  • Pass keystrokes to a pfSense virtual machine to install it automatically
  • Automatically deploy pfSense with Terraform and Ansible
  • My Automated Lab project: #6 Create a S3 Bucket with Terraform
  • My Automated Lab project: #5 Deploy a Linux vSphere VM with Terraform and custom disks
©2025 Virtual To The Core | WordPress Theme by SuperbThemes
We use cookies to ensure that we give you the best experience on our website, and to collect anonymous data regarding navigations stats using 3rd party plugins; they all adhere to the EU Privacy Laws. If you continue to use this site we will assume that you are ok with it.OkNoPrivacy Policy