Searching in Logs

Discussion in 'C Programming' started by Pacher R. Dragos, Oct 13, 2005.

  1. 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 )!
     
    Pacher R. Dragos, Oct 13, 2005
    #1
    1. Advertising

  2. Pacher R. Dragos

    Flash Gordon Guest

    Pacher R. Dragos wrote:

    <snip>

    > 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>
    --
    Flash Gordon
    Living in interesting times.
    Although my email address says spam, it is real and I read it.
     
    Flash Gordon, Oct 13, 2005
    #2
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Mike Delaney

    Floating Point Powers and Logs?

    Mike Delaney, Oct 2, 2004, in forum: VHDL
    Replies:
    2
    Views:
    620
    David Bishop
    Oct 3, 2004
  2. Gnaneshwar Babu

    extracting event logs to a file

    Gnaneshwar Babu, Dec 31, 2003, in forum: Perl
    Replies:
    0
    Views:
    744
    Gnaneshwar Babu
    Dec 31, 2003
  3. Remco Groot Beumer

    Variables are overwritten when another person logs in

    Remco Groot Beumer, Nov 5, 2003, in forum: ASP .Net
    Replies:
    2
    Views:
    355
    Mark Fitzpatrick
    Nov 5, 2003
  4. Brian Lowe
    Replies:
    4
    Views:
    371
    Brian Lowe
    May 26, 2004
  5. stumblng.tumblr
    Replies:
    1
    Views:
    234
    stumblng.tumblr
    Feb 4, 2008
Loading...

Share This Page