Thursday, June 24, 2010

One-liner for errors per hour in a rolling log4j log

Because I keep forgetting valid syntax and having an example is very very handy:



for h in $(seq 0 23); do hh=$(printf "%02d" $h);  echo $hh $(grep "^2010-06-24 $hh.*general exception" some-dir?/ALogFile?.log* | wc -l); done;

2 comments:

Unknown said...

Sbobet Judi Bola Online Terpercaya Indonesia dan Kriterianya
Panduan Cara Daftar Bermain Taruhan Bola Sbobet Terpercaya
Beberapa Rahasia Cara Mendapatkan Bandar Judi Bola Sbobet
Permainan Joker123 Situs Judi Online Terbaru Dan Terpercaya

Unknown said...

Tradingzy is the best and most reliable Seo company And offers a wide variety of Link Forex Website Seo , including an affordable monthly subscription service, one-time links, and blog comments. With any of these services, you can be assured that your site will rank higher in the search engine results page and receive an influx of targeted traffic.

Post a Comment