Skip to content

Instantly share code, notes, and snippets.

View planset's full-sized avatar

Daisuke Igarashi planset

View GitHub Profile
@shiumachi
shiumachi / nn_parse.py
Created August 25, 2012 03:39
simple NN log parser (pyfes LT 2012.08 sample code)
# pyfes LT 2012.08 用ソースコード
# namenode のログをパースして ログレベルをカウントするだけのコード
# ソースコードに日本語でコメント入れるのは多分初めて
#
import sys
# 1行毎のパース処理はここ
def parse(line):
arr = line.strip().split()
@xtetsuji
xtetsuji / maillog-hashnize.pl
Last active October 11, 2022 08:08
enhancement of "pflog" for parsing maillog of postfix 2.3 or higher version.
#!/usr/bin/perl
# "pflog" enhancement for parsing maillog of postfix 2.3 or higher version.
# "pflog" see: http://www.tmtm.org/ruby/pflog/pflog-0.3
use strict;
use warnings;
use Time::Local;
use Getopt::Long;
#use Data::Dumper;