Menu

#15 Logs load-in/import/parsing

1.0-SNAPSHOT
open
nobody
4
2008-12-01
2008-12-01
Przemek
No

As we can do "tail -f /var/log/..." and have every subsequent line routed to the sdout we could have a class that could do conceptually the same, but using API could log to SubRecord.
For example, stuff like this:

Dec 1 10:20:01 master /USR/SBIN/CRON[10147]: (root) CMD ([ -x /usr/sbin/update-motd ] && /usr/sbin/update-motd 2>/dev/null)
Dec 1 10:30:01 master /USR/SBIN/CRON[10312]: (root) CMD ([ -x /usr/sbin/update-motd ] && /usr/sbin/update-motd 2>/dev/null)
...

might be structured as we can see date at the beginning. could be parsed - similar things does http://polliwog.sourceforge.net/
we can also do a static import e.g. take some big log file and load-in to specified domain as "logs". could be the same tool. later on the same "engine" might be used in the GUI

Discussion


Log in to post a comment.

MongoDB Logo MongoDB