# CollectGuestLogs.exe – High Disk Usage on Azure VM

CollectGuestLogs.exe is one of Microsoft Tools that is installed with VM’s stored on Azure. While I’m sure it has many…

blog

26 Jun 2018 pl

![CollectGuestLogs.exe – High Disk Usage on Azure VM](/wp-content/uploads/2018/06/img_5b3283c0eeb85.png)

[Zobacz obrazy (4)](#pf-content-image-1-0)

**CollectGuestLogs.exe** is one of Microsoft Tools that is installed with VM's stored on Azure. While I'm sure it has many advantages in case of our Client it made sure machines are heavily impacted when it comes to disk speed. During debugging why our machines are so slow I've noticed that **CollectGuestLogs.exe** is doing some heavy reading on **Security.evtx**. While normally you wouldn't notice this it seems there is a bug in **CollectGuestLogs.exe** which manifest itself when **Security.evtx** file is quite big. For some reason it's not able to process Event Log therefore it continues to read/write to disk all the time 24/7. It can range from 5MB/s to 30MB/s. Quite a hit…

[!\[Aktywnosc procesu pokazujaca, ze CollectGuestLogs.exe powoduje wysokie zuzycie dysku na maszynie wirtualnej Azure\](/wp-content/uploads/2018/06/img_5b32830de520a.png)](/wp-content/uploads/2018/06/img_5b32830de520a.png)

Fortunately there is a fix to this…

### 💡 How can I fix it?

- Open **C:\WindowsAzure**

[!\[Folder WindowsAzure otwarty w celu znalezienia katalogu instalacyjnego Azure Guest Agent\](/wp-content/uploads/2018/06/img_5b32835ce8c5b.png)](/wp-content/uploads/2018/06/img_5b32835ce8c5b.png)

- Find newest version of **Guest Agent**

[!\[Folder z wersja Azure Guest Agent pokazujacy miejsce edycji pliku CommonAgentConfig.config\](/wp-content/uploads/2018/06/img_5b328383767a6.png)](/wp-content/uploads/2018/06/img_5b328383767a6.png)

- Find CommonAgentConfig.config and open it up

[!\[Plik CommonAgentConfig.config z ustawieniem enablePushInVMLogs na false, aby zatrzymac aktywnosc CollectGuestLogs.exe\](/wp-content/uploads/2018/06/img_5b3283c0eeb85.png)](/wp-content/uploads/2018/06/img_5b3283c0eeb85.png)

- Find **enablePushInVMLogs** and set it to **false**
- Restart **RDAgent **service

That's it!

## Powiązane projekty

Projekty powiązane z tagami, kategoriami i treścią tego wpisu.

[Wszystkie projekty](/projekty/)

Trwa dopasowywanie projektów...

[Powrót do bloga](/blog/)

## Powiązane wpisy

- [Check an API write after a PowerShell timeout](/blog/verify-uncertain-api-outcomes-powershell/)
- [Inspect and convert mixed Office archives with PSWriteOffice](/blog/inspect-and-convert-mixed-office-archives-pswriteoffice/)
- [Compose PDF reports and automate page workflows with PSWriteOffice](/blog/automate-pdf-reports-and-page-workflows-pswriteoffice/)

<!-- PowerForge markdown artifact sha256:2B0CF2DCEB20283069D8982C3DD5C7BB133E6EDD0A373AD992455E8AD68B7F2A -->
