Page MenuHomeDevCentral

Extract servers log from weechat IRC log
ClosedPublic

Authored by dereckson on Feb 23 2018, 12:39.
Tags
None
Referenced Files
F3915900: D1350.id3459.diff
Thu, Dec 19, 23:01
F3915856: D1350.id3458.diff
Thu, Dec 19, 22:46
F3914787: D1350.diff
Thu, Dec 19, 17:01
Unknown Object (File)
Thu, Dec 12, 17:28
Unknown Object (File)
Mon, Dec 9, 23:27
Unknown Object (File)
Mon, Dec 9, 23:12
Unknown Object (File)
Sun, Dec 8, 21:48
Unknown Object (File)
Sat, Dec 7, 06:09
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
No Lint Coverage
Unit
No Test Coverage
Branch
master
Build Status
Buildable 2129
Build 2377: arc lint + arc unit

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.