Script: Jicofo log analyzer

I wrote a Bash script to generate a simple report from the Jicofo log.
This is the code.

To download

wget -O /usr/local/bin/jicofo-log-analyzer https://raw.githubusercontent.com/emrahcom/emrah-buster-templates/master/machines/eb-jitsi/usr/local/bin/jicofo-log-analyzer

chmod 755 /usr/local/bin/jicofo-log-analyzer

usage 1

jicofo-log-analyzer /var/log/jitsi/jicofo.log

usage 2

zcat /var/log/jitsi/jicofo.log.2.gz | jicofo-log-analyzer

usage 3

tail -f /var/log/jitsi/jicofo.log | jicofo-log-analyzer

sample output

myroom
======
created at: 2020-09-19 13:38:59
disposed at: 2020-09-19 13:42:03
duration: 00:03:04
number of participants: 5
participants:
    1795f1f6, 2b916120, 7a52ca50, d406a26e, f4e07baa
actions:
    13:38:59 +++ [myroom]
    13:38:59  *  2b916120
    13:38:59 ->  2b916120
    13:39:08 ->  1795f1f6
    13:39:15 ->  f4e07baa
    13:39:27  *  f4e07baa
    13:39:27  <- 2b916120
    13:39:48 ->  d406a26e
    13:40:41  *  d406a26e
    13:40:41  <- f4e07baa
    13:41:06 ->  7a52ca50
    13:41:29  <- d406a26e
    13:42:02  <- 7a52ca50
    13:42:03  <- 1795f1f6
    13:42:03 --- [myroom]
1 Like