Short: Logfile splitter for CL 5.0 (Update) Author: dawnrazor@alcatraz.org (Ralf Ramge), nik@alcatraz.org (Nicolai Zizka) Uploader: ramge@student.uni-kl.de (Ralf Ramge) Type: comm/bbs ---8<--- English SplitLog is a tool for all Connectline 5.0 owners who want to get rid of that huge logfile in CONNECTLINE:Log/. SplitLog splits the logfile into several smaller sublogs depending on each logentry's logid (e.g. CONNECTLINE:Log/CLSERVER or CONNECTLINE:Log/CLMSORTIN). MUI 2.2 and WB 2.1 or higher are necessary. This is an update to version 2.0. Features: - fastest log splitting tool for Connectline 5.0 - HD friendly; the sublogs are written one after the other instead keeping them opened until the last logentry is being written - progress display (MUI) - batchfile support - locale support (even when adding log entries), english and german catalogs are included - ultra-faaaaaaaast Shell-only-version included (approx. 500 log entries per second on a standard A4000T/040/25) Changes since version 1.11: - highly optimized data structures; the speed improvement was good enough to add several MUI calls without wasting too much processor time - lower memory fragmentation - Sublogs are now saved to CONNECTLINE:Log/Sublogs/ - splitlog.batch is now executed with the name of the log backup as para- meter and local environment variable (LOGBACKUPNAME) - the window gets refreshed while reading the entries - GA_Total looks much better now - supports locale.library - the name of the log backup is now always higher than the one of the last one written Installation: Just copy the catalogs to LOCALE: and the executables to CONNECTLINE:, according to the directory structure of the archive. Usage: The archive contains two executables: CONNECTLINE:c/SplitLog: designed for usage via Cron, very fast, but without user interface. Approx. 250% faster than the GUI version. CONNECTLINE:Tools/SplitLog: execute it using the SplitLog-Entry in CL-Server's tools menu. This one features a MUI window with several progress displays. Both version try to execute the file CONNECTLINE:s/splitlog.batch after finishing their work. Don't forget to set the script bit, if you use a Shell-Script instead of an executable there. A local environment variable called LOGBACKUPNAME contains the name of the log backup; the batch will also be executed with the name of the backup as parameter. So it should be easy to copy it to any place on your harddisks. The sublogs are copied to CONNECTLINE:Log/Sublogs/ for further use. ---8<--- Deutsch SplitLog ist ein Tool für alle Connectline 5.0-Kunden, welche das riesige Logfile in CONNECTLINE:Log/ loswerden möchten. SplitLog splittet das Logfile in mehrere kleinere Sublogs und richtet sich hierbei nach der LogID des jeweiligen Eintrags /z.B. CONNECTLINE:Log/CLSERVER oder CONNECTLINE:Log/CLMSORTIN. MUI 2.2 und WB 2.1 oder höher werden benötigt. Dies ist ein Update auf Version 2.0. Features: - der schnellste Logsplitter für Connectline 5.0 - festplattenfreundlich; die einzelnen Sublogs werden nacheinander angelegt, anstelle sie offen zu halten, bis der letzte Eintrag rausge- schrieben wurde. - Fortschrittsanzeige (MUI) - Batchdatei-Unterstützung - locale support (selbst wenn Logeinträge vorgenommen werden), deutsche und englische Catalos sind im Archiv enthalten - sauschnelle Shell-only-Version enthalten (ca. 500 Zeilen pro Sekunde auf einem A4000T/040/25). Changes seit Version 1.11: - stark verbesserte Datenstruktur; der Geschwindigkeitszuwachs war hoch genug um mehrere MUI-Aufrufe vorzunehmen, ohne zuviel Rechenzeit zu vergeuden - niedrige Speicherfragmentierung - Sublogs werden nun in CONNECTLINE:Log/Sublogs/ gespeichert - splitlog.batch wird nun mit dem Namen des Logbackups als Parameter auf- gerufen, ebenso wird eine lokale ENV-Variable (LOGBACKUPNAME) gesetzt - während dem Einlesen der Einträge wird das Fenster refreshed - GA_Total ist nun um einiges hübscher - unterstützt locale.library - Der Name des Logbackups ist nun immer höher als der des zuletzt ge- schriebenen Installation: Entsprechend der Verzeichnisstruktur im Archiv die Catalogs nach LOCALE: und die Programme nach CONNECTLINE: kopieren. Usage: The archive contains two executables: CONNECTLINE:c/SplitLog: designed for usage via Cron, very fast, but without user interface. Approx. 250% faster than the GUI version. CONNECTLINE:Tools/SplitLog: execute it using the SplitLog-Entry in CL-Server's tools menu. This one features a MUI window with several progress displays. Both version try to execute the file CONNECTLINE:s/splitlog.batch after finishing their work. Don't forget to set the script bit, if you use a Shell-Script instead of an executable there. A local environment variable called LOGBACKUPNAME contains the name of the log backup; the batch will also be executed with the name of the backup as parameter. So it should be easy to copy it to any place on your harddisks. The sublogs are copied to CONNECTLINE:Log/Sublogs/ for further use. Benutzung: Das Archiv enthält zwei Programme: CONNECTLINE:c/SplitLog: entworfen für die Nutzung über den Cron. Sehr schnell, aber ohne Ausgaben. Ca. 250% schneller als die GUI- Version. Connectline:Tools/Splitlog: Start über den SplitLog-Eintrag im Tools-Menü des CL-Servers. Diese Version verfügt über eine MUI- Oberfläche mit mehreren Fortschrittsanzeigen. Beide Versionen versuchen, das File CONNECTLINE:s/splitlog.batch nach Beendigung ihrer Arbeit zu starten. Nicht vergessen, das Skript-Bit zu setzen, falls man hier ein Shell-Skript anstelle eines ausführbaren Programmes verwendet. Eine lokale ENV-Variable namens LOGBACKUPNAME enthält den Namen des Logbackups; eine Batchdatei wird ebenso mit dem Namen des Backups als Parameter aufgerufen. Daher sollte es relativ leicht sein, das Backup an irgendeine andere Stelle umzukopieren. Die Sublogs werden zur weiteren Verwendung nach CONNECTLINE:Log/Sublogs/ geschrieben.  ============================= Archive contents ============================= Original Packed Ratio Date Time Name -------- ------- ----- --------- -------- ------------- 7034 2472 64.8% 24-May-96 18:03:18 +CL-SplitLog20.readme 12256 7634 37.7% 24-May-96 17:07:36 +SplitLog 14096 8585 39.0% 24-May-96 17:11:08 +SplitLog 482 275 42.9% 24-May-96 17:11:56 +CL-SplitLog.catalog 482 281 41.7% 24-May-96 17:11:56 +CL-SplitLog.catalog -------- ------- ----- --------- -------- 34350 19247 43.9% 25-May-96 03:59:00 5 files