pyloggr.main.web_frontend

Pyloggr Web interface

class PgSQLStats[source]

Bases: pyloggr.utils.observable.Observable

Gather information from the database

class QueryLogs(application, request, **kwargs)[source]

Bases: tornado.web.RequestHandler

Query the log database

class RabbitMQStats[source]

Bases: pyloggr.utils.observable.Observable

Gather information from RabbitMQ management API

class Status[source]

Bases: pyloggr.utils.observable.Observable

Encapsulates the status of the the various pyloggr components

class StatusPage(application, request, **kwargs)[source]

Bases: tornado.web.RequestHandler

Displays a status page

class SyslogClientsFeed(application, request, **kwargs)[source]

Bases: tornado.websocket.WebSocketHandler, pyloggr.utils.observable.Observer

Websocket used to talk with the browser

notified(d)[source]

notified is called by observables, when some event is meant to be communicated to the web frontend

Parameters:d (dict) – the event data to transmit to the web frontend
class SyslogServers[source]

Bases: pyloggr.utils.observable.Observable, pyloggr.utils.observable.Observer

Data about the running Pyloggr’s syslog servers

Notified by Rabbitmq Observed by Websocket

class WebServer(sockets)[source]

Bases: object

Pyloggr process for the web frontend part