Friday, November 13, 2015

Centralized async logging from VBS scripts

Borrow a page out of the snowplow book and log asynchronously from any script with a GET request to a central system.

In Visual Basic Script:
URLGet "" & WshNetwork.ComputerName & "/" & activity & "/message/" & strValue

Function URLGet(URL)
  Set Http = CreateObject("Microsoft.XMLHTTP")
  Http.Open "GET",URL,True
End Function

And get analytics for free on top of your scripts with logstash (or snowplow).