Running and Testing LoggerFS

Now that we're done setting the config files, we can mount the LoggerFS partition, start apache, and test!

Be sure to delete any existing logs from /var/log/httpd or LoggerFS will complain. The command to mount a LoggerFS file system is not unlike that for other FUSE-based file systems:

[root@localhost loggerfs]# loggerfs /var/log/httpd
Loading //etc/loggerfs/logs.xml
[root@localhost loggerfs]# mount
/dev/mapper/VolGroup00-LogVol00 on / type ext3 (rw)
...
fuse on /var/log/httpd type fuse (rw,nosuid,nodev)
[root@localhost ~]# ls -l /var/log/httpd/
--w--w---- 1 apache apache 0 Dec 31  1969 access_log
[root@localhost ~]# /etc/init.d/httpd start
Starting httpd:                                    [  OK  ]

Now that apache is running, just generate some traffic on your server! You can view what kind of traffic you're experiencing with the following command:

# mysql -e 'select * from accessLogs limit 5' -u apachelogger -Ps3cr3tp4zzw0rd -p myApacheLogs

If you see a bunch of text spit out that looks vaguely like apache log data, you're done!

Post new comment

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
Copy the characters (respecting upper/lower case) from the image.