# Use the Example Perl Scripts

This section describes how to push event data to your Statistics Server using one of the example Perl scripts.

To record statistics, ensure that the component you want to monitor and the Statistics Server are both running.

To push events using the example Perl script

- Run the script, as in the following example:

      perl script.pl datafile.log host port idolname

  where,

  - `script.pl` is the script to run.
  - `datafile.log` is the path of the log file to read events from.
  - `host` is the host name or IP address of the Statistics Server.
  - `port` is the event port of the Statistics Server.
  - `idolname` is the name assigned to the component being monitored. This argument is optional for the `stats-query.pl` script but required for running `stats-qms-rules.pl`. Use the same name as the name you specified with the `IDOLName` parameter in the Statistics Server configuration file (see Record Statistics from Multiple IDOL Servers).

_FT_HTML5_bannerTitle.htm