Page MenuHomeDevCentral

Extract servers log from weechat IRC log
ClosedPublic

Authored by dereckson on Feb 23 2018, 12:39.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Nov 13, 12:13
Unknown Object (File)
Wed, Nov 6, 16:18
Unknown Object (File)
Wed, Nov 6, 16:05
Unknown Object (File)
Mon, Oct 28, 01:03
Unknown Object (File)
Mon, Oct 28, 00:50
Unknown Object (File)
Thu, Oct 24, 08:35
Unknown Object (File)
Thu, Oct 17, 03:19
Unknown Object (File)
Oct 9 2024, 02:31
Subscribers

Details

Summary

Convert a weechat log using the specified line format into a JSON
servers log.

Line format: <date>\t<nick>\t<message>

Date format: YYYY-MM-DD HH:MM:SS

This script has allowed to get the 2016-2018 log entries, before
this service allows to add new entries.

Thanks to @Sandlayth to have provided such a log.

Test Plan
$ egrep "\[.*\] .*" log | grep -v "nginx: [" | grep -v Wearg > candidates
$ $EDITOR candidates # clean the log, mainly to remove [] false positives
$ ./extract_from_weechat_log.py > log.json

Diff Detail

Repository
rAPISRVLOGS Servers log :: Add new entries API
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

dereckson created this revision.
This revision is now accepted and ready to land.Feb 23 2018, 12:40
dereckson added a subscriber: Sandlayth.
This revision was automatically updated to reflect the committed changes.