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

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

created at: 2020-09-19 13:38:59
disposed at: 2020-09-19 13:42:03
duration: 00:03:04
number of participants: 5
    1795f1f6, 2b916120, 7a52ca50, d406a26e, f4e07baa
    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]

great, what i was looking for.

any way to export it? I mean, can I download it to a file for reading? or can it be displayed on a frontend?


Add “> filename” to save the output into a file. For example

jicofo-log-analyzer /var/log/jitsi/jicofo.log > /tmp/report-file.log


jicofo-log-analyzer /var/log/jitsi/jicofo.log.1 > /tmp/report-$(date --date=yesterday +'%Y%m%d').log
1 Like

Hello, why are users with a record number displayed, example: 7659341D and not with the created profile (Name and email)

For the privacy reasons, they are recorded in the jicofo logs with their IDs

EDIT: Nevermind… i was too excited and my internet was not following my wishes, i opened now :smiley: :rofl: :rofl:
I trying to access

Looks like a broken link, can you update it please @emrah emrah?

to sum up all participants :slight_smile:
more report-file.log | grep “number of participants:” | awk ‘{s+=$4} END {print s}’

@emrah Hello! I wanted to ask you, is there any way to add this script to jitsi meet main web page like a button? I mean when you push a button, the script works and shows the information

Theoretically, yes… But I think this is not a good idea

  • the script reports only completed sessions, not the current one

  • this will cause a privacy problem without authentication

  • you should add some kind of trigger to the server side to start the script