Home > AXS Visitor Tracking > Help > 1502

Converting log files

It is sometimes necessary to convert the proprietary AXS log file format into an industry standard format. This would allow you to view the AXS log in another log analyzer program, for instance.

To convert the log, use the bi-directional "convert.pl"/"convert.cgi" utility. This utility must be run from the command line. The syntax is:

Usage:
        perl convert.pl axs-to-ncsa < infile > outfile

Will convert an AXS log on standard input (infile) into an NCSA Extended
log in standard output (to outfile).

Usage:
        perl convert.pl -s:www.xav.com ncsa-to-axs < infile > outfile

Will convert an NCSA Extended log on standard input (infile) to an AXS log
in standard output (to outfile).

Note that you have to use the "perl convert.pl" syntax instead of
"convert.pl" on Windows in order for io redirection to work properly.

Errors will be written to STDERR.

Flags:

        -s:servername
        The hostname of the web server that generated the inputted
        NCSA log.  Defaults to www.xav.com

        -v      verbose output (line counts, etc., to STDOUT)
        -d      perform DNS lookups on unresolved addresses

Bugs:

Doesn't handle time zones well.
Any quotes in the raw AXS data will be stripped when writing to the NCSA
format (like a quote in a URL)

History: the "convert.pl"/"convert.cgi" utility was added to AXS in version 2.3.0.0024.


    "Converting log files"
    http://www.xav.com/scripts/axs/help/1502.html