Skip to content

obsproject/loganalyzer

Repository files navigation

loganalyzer

Automatic analyzer for logs generated by OBS Studio

Installation

Basic Requirements

  • (loganalyzer.py) >= Python 3
  • (simplehttp.py) >= Python3.8

Dependencies

pip install -r requirements.txt

pycodestyle is used for code formatting.

Usage

Web Server

$ ./simplehttp.py

Command line arguments can be accessed via -h.

Once launched, the server is available at http://localhost:8080

Responses can be returned in JSON format:

GET http://localhost:8080/?format=json&url=

Terminal

Run loganalyzer.py in your favourite terminal.

$ ./loganalyzer.py -h
usage: loganalyzer.py [-h] --url URL

optional arguments:
  -h, --help         show this help message and exit
  --url URL, -u URL  url of gist

The log specified by URL will be automatically analyzed. Output looks like:

Critical: AUTOCONFIG WIZARD, INSUFFICIENT HARDWARE, MP4 RECORDING, RENDERING LAG, CPU OVERLOAD,
Warning:
Info:     NOT ADMIN, LOW STREAM BANDWIDTH, NO SCENES/SOURCES,
--------------------------------------

Details

Critical:
AUTOCONFIG WIZARD
    The log contains an Auto-config wizard run. Results of this analysis are
 	....

Warning:
	....

Info:
NOT ADMIN
    OBS is not running as administrator. This can lead to obs not being able to
    	....