13.06.2015 Views

Introduction to the Apache Web Server - ApacheCon

Introduction to the Apache Web Server - ApacheCon

Introduction to the Apache Web Server - ApacheCon

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

• Precisely how many visi<strong>to</strong>rs<br />

• Name, address, credit card number<br />

• If you want <strong>to</strong> know something, you have <strong>to</strong> ask<br />

16.6.3 Log file parsing<br />

• <strong>Web</strong>alizer (www.mrunix.net/webalizer)<br />

• Analog<br />

• <strong>Web</strong>Trends<br />

• WWWStat<br />

• Wusage<br />

• <strong>Apache</strong>::ParseLog Perl module<br />

16.7 Logging <strong>to</strong> a process<br />

Cus<strong>to</strong>mLog |/usr/bin/apachelog common<br />

Logs <strong>to</strong> <strong>the</strong> program /usr/bin/apachelog, ra<strong>the</strong>r than <strong>to</strong> a file, where apachelog looks like ...<br />

#!/usr/bin/perl<br />

while (my $log = ) {<br />

DoSomethingUseful($log);<br />

}<br />

• Buffering<br />

• Performance<br />

• http://modules.apache.org/ for modules that already do this<br />

16.8 Logging <strong>to</strong> syslog<br />

Cus<strong>to</strong>mLog syslog combined<br />

Cus<strong>to</strong>mLog syslog:local1 common<br />

102

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!