Menu

#17 Support for multiple logfiles

General
open
General (24)
5
2006-01-14
2006-01-14
No

By Mauro Perides <perides@cohab.sp.gov.br>:
There is any chance, in the future, that´s mySar work
with several squids running accross network like a
central log?

Discussion

  • David Todd

    David Todd - 2006-03-13

    Logged In: YES
    user_id=1466076

    multiple logfiles can be done (as I've done with mlogimport,
    it's just a matter of selecting a different logfile)

    however, the data from multiple squid servers can't be told
    apart from one to the next. also the current method of
    importing traffic from the logfile involves keeping the
    timestamp information stored in the configuration table.

    which means as soon as you import the stamp information from
    one logfile, any information in another logfile that's older
    than that timestamp will automatically be ignored.

     
  • Ioannis Stoilis

    Ioannis Stoilis - 2006-03-13

    Logged In: YES
    user_id=614087

    Unless the log monitoring method changes.

    Using a more low level approach to track the latest import,
    ,like line number, could not only speed-up seeking in the
    log file, but also allow this multi-log handling.

     
  • David Todd

    David Todd - 2006-03-13

    Logged In: YES
    user_id=1466076

    with mlogimport, seeking a 150k+ logfile takes less than two
    seconds, I see your point with the php importer because the
    line processing is too slow.

    unfortunately I havn't figured out how to store
    file-line-seek information in C yet across different processes.

     

Log in to post a comment.