easier to read, easier to parse, win-win. David Lang
On Wed, 5 Dec 2012, Boyles, Gary P wrote: > John, > I would say that the 2nd format is most definitely easier to read. > Gary Boyles > > -----Original Message----- > From: John P. Rouillard [mailto:rou...@cs.umb.edu] > Sent: Tuesday, December 04, 2012 7:17 PM > To: simple-evcorr-users@lists.sourceforge.net > Subject: [Simple-evcorr-users] More table like display of stats > > > Currently the output of a state dump (generated with a kill -USR1) > looks like: > > Rule 1 at line 31 (Clear EVENT_PROCESSED) has matched 6431597 events > Rule 2 at line 51 (Skip all processing for slapd) has matched 14126179 events > Rule 3 at line 72 (Dispatch firewall accept lines) has matched 483828 events > Rule 4 at line 95 (Dispatch firewall rule lines) has matched 167890 events > Rule 5 at line 115 (jump to timestamp ruleset) has matched 113237 events > Rule 6 at line 134 (jump to pdu ruleset) has matched 2 events > Rule 7 at line 150 (Do normal processing) has matched 7538605 events > > I often find myself comparing counts, or summing counts etc. and I am > wondering if other people would also find this format better: > > Rule 1 at line 31 matched 6431597 events (Clear EVENT_PROCESSED) > Rule 2 at line 51 matched 14126179 events (Skip all processing for slapd) > Rule 3 at line 72 matched 483828 events (Dispatch firewall accept lines) > Rule 4 at line 95 matched 167890 events (Dispatch firewall rule lines) > Rule 5 at line 115 matched 113237 events (jump to timestamp ruleset) > Rule 6 at line 134 matched 2 events (jump to pdu ruleset) > Rule 7 at line 150 matched 7538605 events (Do normal processing) > > With this layout it is easier to see that rule 2 is hit the most and > rule 6 the least. Plus I can use awk/perl to pull field 7 and sum > them. This will take a little extra processing due to the right > aligned matched events count, but I don't think this processing would > be excessively burdensome. > > Thoughts? > > -- > -- rouilj > John Rouillard > =========================================================================== > My employers don't acknowledge my existence much less my opinions. > > ------------------------------------------------------------------------------ > LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial > Remotely access PCs and mobile devices and provide instant support > Improve your efficiency, and focus on delivering more value-add services > Discover what IT Professionals Know. Rescue delivers > http://p.sf.net/sfu/logmein_12329d2d > _______________________________________________ > Simple-evcorr-users mailing list > Simple-evcorr-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/simple-evcorr-users > > ------------------------------------------------------------------------------ > LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial > Remotely access PCs and mobile devices and provide instant support > Improve your efficiency, and focus on delivering more value-add services > Discover what IT Professionals Know. Rescue delivers > http://p.sf.net/sfu/logmein_12329d2d > _______________________________________________ > Simple-evcorr-users mailing list > Simple-evcorr-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/simple-evcorr-users > ------------------------------------------------------------------------------ LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial Remotely access PCs and mobile devices and provide instant support Improve your efficiency, and focus on delivering more value-add services Discover what IT Professionals Know. Rescue delivers http://p.sf.net/sfu/logmein_12329d2d _______________________________________________ Simple-evcorr-users mailing list Simple-evcorr-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/simple-evcorr-users