ttroxell ([info]ttroxell) wrote,
@ 2005-09-27 02:31:00
Previous Entry  Add to memories!  Tell a Friend  Next Entry
Logcheck Rulefiles Analyzer
I spent some time making a rulefiles analyzer for Logcheck.

Noticing that logcheck-database had 1000+ rules made me curious about utilization. This tool will report the number of matches for each individual rule. The output looks like this right now:

*cut*
file: rulefiles/linux/ignore.d.server/dhclient:
[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 124, 124, 0, 0, 0, 0, 0, 0, 124]
file: rulefiles/linux/violations.d/logcheck:
[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
file: rulefiles/linux/ignore.d.server/policyd:
[0, 0]
file: rulefiles/linux/ignore.d.workstation/winbind:
[0]
file: rulefiles/linux/violations.ignore.d/logcheck-cyrus:
[0, 0, 0]
file: rulefiles/linux/ignore.d.paranoid/cron:
[0, 0, 18, 0, 0, 0, 0, 0]
file: rulefiles/linux/ignore.d.server/nscd:
[0]
*cut*

The numbers in the arrays correspond to line numbers in logcheck rulefiles. This output will be improved eventually. It should also calculate the top N and bottom N matched rules. This should aid us in tracking down stale rules.

analyzeRules - Get statistics about logcheck rule effectiveness

You'll need python 2.4.



(8 comments) - (Post a new comment)


(Anonymous)
2007-06-18 12:44 am UTC (link)
Hello, you need drug? No problem, go to http://www.pharmamedics.us {all:links}

(Reply to this)


(Anonymous)
2007-06-18 04:16 am UTC (link)
Hello, you need drug? No problem, go to http://www.pharmamedics.us {all:links}

(Reply to this)

new order APO 7.5 Identify pills supper disk
(Anonymous)
2007-12-10 05:03 pm UTC (link)
hay!!
good project :)
senks :)

(Reply to this)

new order ViaGra-pocelui video Download supper disk
(Anonymous)
2007-12-12 01:21 am UTC (link)
hay!!
good project :)
senks :)

(Reply to this)

news video and pic nude picture s of anal sex cum shots xxx
(Anonymous)
2007-12-25 05:42 pm UTC (link)
good worck Amazon.co.uk: Harry Potter and the Deathly Hallows (Book 7) [Adult Edition - : Books: JK Rowling by JK Rowling.
senks

(Reply to this)

tramadol 180 tablet tramadol line
(Anonymous)
2008-02-18 05:49 pm UTC (link)
can you get high off of tramadol tramadol sandoz
tramadol on line prescriptions tramadol 120 tramadol cheap that delivers to arkansas tramadol 120 ea urine test for tramadol ultram tramadol hcl norvasc tramadol drug information tramadol htm tramadol and dosage symptom tramadol withdrawal

(Reply to this)


[info]orotherournt
2009-06-01 02:04 am UTC (link)
The long-sought where possible buy generic ED drugs. I found one online store at normal prices. Delivered by mail and at normal prices. Not that I had been constantly need, but sometimes after a heavy day without any pills) And you use Viagra?

(Reply to this)

(Reply from suspended user)

(8 comments) - (Post a new comment)

Create an Account
Forgot your login or password?
Login w/ OpenID
English • Español • Deutsch • Русский…