Tool:SAL

From Wikitech
Jump to: navigation, search
Toolforge tools
Crystal Clear app package utilities.png sal
Website https://tools.wmflabs.org/sal/
Description Server admin logs
Keywords SAL, php
Author(s) BryanDavis
Maintainer(s) BryanDavis, Yuvipanda (View all)
Source code github
License GNU General Public License 3.0 or later
Issues github

sal is a tool for searching Server Admin Log messages for a variety of projects. It provides both full text search and date based search capabilities that the normal wiki page based SAL system lacks.

SAL is written in PHP using the wikimedia/slimapp framework. It reads data from an Elasticsearch cluster hosted in Toolforge that is populated by Stashbot from IRC !log messages sent in various freenode channels used by the Wikimedia projects.

Configuration

~/.lighttpd.conf

A .lighttpd.conf is used to configure lighttpd to route all URLs under https://tools.wmflabs.org/sal/ which are not for static asset files to a PHP dispatch script.

url.rewrite-if-not-file += ( "(.*)" => "/sal/index.php/$0" )

~/SAL/.env

An .env file is used to provide Twelve-Factor App style configuration of the application.

ES_URL=http://tools-elastic-02.tools.eqiad.wmflabs/

Manually loading missed entries

TODO...

See also