Statistics logging

Statistics log files are generated in the DNCA log directory.

The maintenance utility generates a file that contains various runtime statistics over time. This file is intended for debugging and diagnosis of various capture and hit delivery problems.

Statistics log files are generated in the DNCA log directory, which is the following location by default:


/var/log/Discover/

Log files have the following file name format: statistics_yyyymmdd.log.

  • Newer logs are in plaintext format.
  • Older logs are compressed into compress files.

Converting statistics log files to output format

If needed, you can use a script that is provided by Discover to convert a DNCA statslog file into .csv or .xml format for more analysis. The script is in the following location:


/usr/local/dncauser/sbin/stat2csv

Note: This script assumes that the DNCA software is installed in /usr/local/dncauser. If the DNCA software is installed in another location, the shebang at line 1 of the script must be changed to point to the correct location of the php binary: <DNCA install location>/bin/php.

Usage:


./stat2csv -t type -f infile -w outfile

where:

  • infile - the statistics log file in plain text or compress format.
  • outfile - the name of the .csv or .xml file to output.
  • type - the type of file to output: csv or xml

Examples:


./stat2csv -t csv -f statistics_20090406.log -w statistics_20090406.csv
./stat2csv -t xml -f statistics_20090406.log.gz -w statistics_20090406.xml