Skip to content

DevOps NY

Figuring things out, to get it done!

Category: Log File Management

Posted on February 28, 2015

rsyslog

To sanity check the rsyslog config files use:

rsyslogd -N1

Share this:

  • Click to email a link to a friend (Opens in new window) Email
  • Tweet
  • Click to share on Reddit (Opens in new window) Reddit
  • More

Like this:

Like Loading...
Posted on March 10, 2013

Watching log files

Multitail is a nice utility to watch multiple log files at once. It also can color the output.

I usually use the command like this:

multitail -s 2 /var/log/apache2/site01_access.log /var/log/apache2/site02_access.log

http://www.vanheusden.com/multitail/index.php

Share this:

  • Click to email a link to a friend (Opens in new window) Email
  • Tweet
  • Click to share on Reddit (Opens in new window) Reddit
  • More

Like this:

Like Loading...
Posted on May 2, 2011March 4, 2013

Analyzing Apache Log Files

List Client IP and Count Hits

awk -F'[ “]+’ ‘$7 == “/” { ipcount[$1]++ } END { for (i in ipcount) { printf “%15s – %d\n”, i, ipcount[i] } }’ access.log

 

List Client IP and RDNS

cat access.log | awk ‘{print $1}’ | logresolve

Share this:

  • Click to email a link to a friend (Opens in new window) Email
  • Tweet
  • Click to share on Reddit (Opens in new window) Reddit
  • More

Like this:

Like Loading...
Proudly powered by WordPress
%d