Monitoring the VDI.Log File

  • This may not be the right place to pose this question, but thought I would give it a try.  We had a few instances where the VDI.Log file grew to rather large size.  It caused issues on the servers holding those log files.  We have determined what caused it and have been able to fix it, but we would like to monitor the size of that file in the future.  Does anyone have any suggestions?  Thanks.

  • Hi,

    I don't know what is VDI logs but the very simple VB script can monitor the size of the file. This is the example of how to get a file size, add a part that sends you an email in case the size is bigger than you would like:

    Set fso = CreateObject("Scripting.FileSystemObject")

    Set f1 = fso.GetFile("C:\z_MyLog1.txt")

    MsgBox f1.size & " Bytes"

    place these 3 lines in Notepad and save with the extention .vbs

    After that you can double-click or schedule to run. This example has the third line a message box, This has to be replaced with other processing if scheduling running the file.

    Regards,Yelena Varsha

Viewing 2 posts - 1 through 1 (of 1 total)

You must be logged in to reply to this topic. Login to reply