Searching in Logs

P

Pacher R. Dragos

I have recently developed an application in c witch acts like a
system logger for windows 2003 server domain controllers and my problem
is that of the size.
In a normal day my program produces more than 3-4 Mb of data in plain
text, and you can imagine that interpreting or getting information from
such a big file is time consuming, that's why I tryed to implement some
archiving functionality.
My question is if someone knows a fast string searching method in C (
Boyer-Moore ? ) and how do I implement pattern searching ( witch would
be 40% faster than Boyer-Moore )!
 
F

Flash Gordon

Pacher R. Dragos wrote:

My question is if someone knows a fast string searching method in C (
Boyer-Moore ? ) and how do I implement pattern searching ( witch would
be 40% faster than Boyer-Moore )!

This is not an algorithms group, so selecting the right algorithm and
discussing algorithms is not on topic. Nor are non-standard libraries.
If you attempt to implement an algorithm and have problems with your
coding we can then help you with the coding. comp.programming might be a
better place to start, although you should read their FAQ and a few days
posts before asking there.

<OT>
For pattern matching you could try the pcre library which is available
on both Windows and *nix, but don't ask here about how to use it.
</OT>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,764
Messages
2,569,566
Members
45,041
Latest member
RomeoFarnh

Latest Threads

Top