Article Rating (8 Votes)
Rate this article
Home » Categories » Multiple Categories

Logging data to text file.

Question

How do I log data to a live file as it is being collected?

Solution

Both MultiPing and PingPlotter can use the alert system to log live data (as it is being collected) to a text file.

This technique requires setting up an alert with an event to "Log to file", setting the parameters on the alert to always fire, and then associating the alert to the targets you want to log.

Create the alert:

 

  • In either MultiPing or PingPlotter, go to Edit -> Alert Setup...
  • Create a new alert by hitting the "New" button.
  • Pick an alert name, ie: "Always log to file"
  • Set "Samples to Examine:" to 10, Alert when "1" or more samples are over "-1" ms. Yes, that's a negative 1. This means the alert will always fire - on every sample.
  • In "Event 1", set the "Event Type" to Log to file.
  • Enter a variable filename. You might use c:\ping data\$host\$host $year-$month-$day.log. This will put each host's data in its own directory, and will put each day's worth of data into its own log file. ****IMPORTANT**** Make sure the first level directory, in this case, the "c:\ping data" directory. The tool will only create the very tip directory, ensuring that a typo doesn't cause a bunch of errant directories to be created.
  • Close the alert dialog by hitting "OK".

 

Associate the alert to a target:

A newly created alert will not automatically monitor any targets, you need to configure which targets you want it to monitor.

  • In MultiPing or PingPlotter, start pinging or tracing to a target.
  • Right-click on the host you want to "Watch" (or, in this case, which host you want data logged for).
  • From the right-click menu, select "Watch this host (Alerts)...".
  • In the popup dialog, move your newly configured alert to the "Selected Alert(s)" side of things
  • Close the dialog.

 

OK, all your data should now be logged to file! If you want more information about configuring alerts, visit our tutorial and look at the alerts section, or check out the alert troubleshooting section.

Attachments Attachments
There are no attachments for this article.
Related Articles
"Connection Closed Gracefully" error when testing alerts.
Viewed 6620 times since Fri, Feb 4, 2011
Alerts not firing
Viewed 3658 times since Wed, Oct 15, 2003
MultiPing as a service with FireDaemon
Viewed 5901 times since Tue, Jan 18, 2005
Socket error 10053 when testing email alerts
Viewed 27761 times since Fri, Jan 14, 2005
E-mail us