Script-fu

So, you want to turn a 14,000 line logfile with 9300 lines like the following, into a summary of the most often seen ip addresses?
Oct 23 01:04:36 nameserver.dept.uiuc.edu in.named[26133]: [ID 873579 local1.warning] client 192.168.0.4#52241: no more recursive clients: quota reached
Oct 23 01:04:36 nameserver.dept.uiuc.edu in.named[26133]: [ID 873579 local1.warning] client 192.168.0.5#52241: no more recursive clients: quota reached

Here’s your one-liner, showing just the top 10 hitters
cat /services/dns/log/named.20061023 | grep 'quota' | tr -s " " | cut -d " " -f 10 | perl -pi -e 's/(.*)#.*/$1/' | sort | uniq -c | sort -n | tail
and it’s output:
161 192.168.254.29
163 192.168.5.119
167 192.168.172.72
201 192.168.5.12
223 192.168.5.138
257 192.168.0.7
298 192.168.181.2
307 192.168.0.9
905 192.168.252.5
2630 192.168.252.4

A Call from my Congressman

So, I have to write this up.

I got a phone call from Tim Johnson this afternoon. Yes, that Tim Johnson: (R), Illinois 15th District. He was calling to see if I had any issues to raise or questions I’d like to ask of him.

All I could quickly think of was to ask about the Foley scandal, to which he gave a fairly straightforward answer (paraphrasing here, I don’t have recording equipment on my home phone line):

The actions are disgusting, but I don’t want to pass any judgement on the House leadership until a full investigation of the facts of who knew what and when is conducted.

In other words, delay it until after the mid-terms and get it off the front page. Not suprising and very similar to what is being reported at Tim Johnson Watch.

My theories on why he called me:

  • Those ads with him swimming and talking on his cell phone were true
  • I linked to Tim Johnson Watch in a previous post and the domain records on betka.net are just a little too easy to decode
  • He really does want the input of his constituents and this is a common occurrence