Month: July 2010
-
Awstats with Apache and mod_rewrite
I recently setup a new Awstats install and used mod_rewrite to make it easier to view web stats. Using the following configuration within a virtual host declaration, you can simply make requests in the following format: http://awstats/$CONFIG/$YEAR/$MONTH/$DAY/ This is assuming that you run daily rollups. ServerAlias awstats RewriteCond %{REQUEST_URI} !^/awstats/awstats.pl [NC] RewriteCond %{REQUEST_URI} !^/icon [NC] […]
-
Bash tip: Print begin and end timestamp on apache logs…
This morning I needed to audit some log files that I had recently processed through AWstats and received a report that there was a discrepancy in the data. The complaint was that one day was missing. I used the following bash script to print out the start and end timestamp of each log file: for […]
-
System Administrator Technical Interviews
I have had the opportunity to interview many candidates over the past few months and have a few tips: When indicating that you have VMware experience, clearly indicate which features you have experience with. I have interviewed many candidates who claim to be experts on VI3/vSphere and yet have never used clustering or shared storage. […]