Merge and Sort text log file for Awstats


In order to process the web site statistics with Awstats using 2 balanced server log file, I needed to merge 2 text files in a single file and sort it.

Awstats provide a perl script called logresolvemerge.pl but I'm not able to use perl on those servers so I was looking for a solution that doesn't require Perl.

It's quite easy using Windows Command Line COPY and SORT function.

Merge
copy logfile1.log+logfile2.log merged.log

Sort
sort merged.log /o sorted.log


Share on Google Plus

About Vittorio Pavesi

    Blogger Comment
    Facebook Comment

0 commenti: