Re: regexless parsing, again?
Jason Haar <[email protected]> Wed, 19 Sep 2007 10:27:24 +1200
| Newsgroups | gmane.comp.sysutils.loganalysis |
|---|---|
| Organization | Trimble Navigation Ltd. |
| Message-ID | <[email protected]> |
Daniel Cid wrote: > How do I do with ossec? Well, first, I divide the > process in two: log decoding and then "classification" > or rule matching. Second, instead of thousands of > regexes for every log, I build a decoding/rule tree, > limiting the number of checks per log. > How does your sshd example differ from a regex like sshd.*(login failure|access denied|I am a hacker) I realise that sshd.*login failure sshd.*access denied sshd.*I am a hacker would be slower - but shouldn't "better written global regex" equate to your idea of separation? I guess I'm thinking that most modern regex "engines" will automatically create internal "trees" for well written regex rules. -- Cheers Jason Haar Information Security Manager, Trimble Navigation Ltd. Phone: +64 3 9635 377 Fax: +64 3 9635 417 PGP Fingerprint: 7A2E 0407 C9A6 CAF6 2B9F 8422 C063 5EBB FE1D 66D1