[mrtg] Merging/Combining log files
Alex van den Bogaerdt
alex at ergens.op.het.net
Wed Jun 25 18:24:40 MEST 2003
Questions on merging log files after a change has occured.
How to combine the two logfiles so that you end up with a
logfile containing useful information both from the present
and from the past.
It isn't that hard:
1) Get the two files in sync (same last update time, the 3rd line and
further should have the same time stamps)
2) Get the interesting part of the new log file (the updated stuf)
3) Get the interesting part of the old log file (historic data)
4) Combine them
In ascii-art:
new old
+---+ +---+
now | A | | D |
| | | |
... ...
change | B | | E |
... ...
| | | |
way back | C | | F |
+---+ +---+
B and E are the row with the time stamp where your change occured.
A and D are after the change
C and F are before the change
A,B and F contain information
C,D and E is not interesting
You want to combine the new file with historic data from the old file:
new + old -> combined
+---+ +---+ +---+
now | A | | D | | A |
| | | | | |
... ... ...
change | B | | E | | B |
... ... ...
| | | | | |
way back | C | | F | | F |
+---+ +---+ +---+
HTH
Alex
--
Much of what looks like rudeness in hacker circles is not intended to give
offence. Rather, it's the product of the direct, cut-through-the-bullshit
communications style that is natural to people who are more concerned about
solving problems than making others feel warm and fuzzy.
http://www.tuxedo.org/~esr/faqs/smart-questions.html
--
Unsubscribe mailto:mrtg-request at list.ee.ethz.ch?subject=unsubscribe
Archive http://www.ee.ethz.ch/~slist/mrtg
FAQ http://faq.mrtg.org Homepage http://www.mrtg.org
WebAdmin http://www.ee.ethz.ch/~slist/lsg2.cgi
More information about the mrtg
mailing list