Write-To-File Alert
To write to a file as a result of an alert, please specify the file name to write to and the format in which the results should be written.
You will use probably wish to use substitution variables (described below).
File name
File contents
Note: To add a TAB character, type \t
Help and Examples
Below is a complete list of substitution variables which you may use.
For example, to write the date of each test triggered by the alert, its session ID and download speed, separated by commas, to a file named log.txt, you would specify: File name:log.txt File contents:%TIME%,%SID%,%SPEED.DSPEED%
If you want to have a different log file for each day, then you can include the time in the file name. For example: File name:log-%YYYYMMDD%.txt
So for example a test on 21st July 2013 will be written to a file named log-20130721.txt, whereas a test the next day will be
written to log-20130722.txt. You can customize how the date appears using the %YYYY%, %YY%, %MM%, %DD%, %HH% and %NN% variables.
Unless you specify a folder location, the file will be saved in the MyConnection Server install directory.
Variable Reference General
%RECORDID% - the unique ID number for this single record
%TESTID% - the unique ID number for this group of tests
%TIME% - the date and time of the test (GMT string)
%TIMEINT% - the date and time as a number (eg: 20130725140500 for 14:05 on 25-Jul-2013)
%DATETIME% - the date and time in the format of yyyy-mm-dd hh:mm:ss
%DETAILLINK% - the URL for the detail report
%SID% - the session ID number
%IP% - the IP address of the system which performed the test
%DNSNAME% - the host name of the system which performed the test
%CC% - the two-letter country code representing the system's location
%ISP% - the name of the ISP to which the system is connected
Time fields (applies to File Name only)
%YYYYMMDDHHMM% - year-month-day-hour-minute, eg: 201307251405 for 14:05 on 25-Jul-2013