source: trunk/server/fedora/config/etc/httpd/statistics_log_mitonly.sh @ 1331

Last change on this file since 1331 was 1316, checked in by quentin, 15 years ago
Handle ~urls as well when gathering statistics
  • Property svn:executable set to *
File size: 316 bytes
RevLine 
[1314]1#!/bin/sh
[1316]2perl -ne 'BEGIN { $| = 1 }
3next unless /^18\./;
4next if /^18\.181\./;
5chomp; split;
6if ($_[1] eq "scripts.mit.edu" && $_[2] =~ m|/(~[^/]+)/|) {
7print "$1\n";
8} else {
9print "$_[1]\n";
10}' >> /var/log/httpd/statistics_log
11#awk '/^18\./ && ! /^18.181/ { print $2; fflush() }' >> /var/log/httpd/statistics_log
Note: See TracBrowser for help on using the repository browser.