forked from tmanternach/WebSysLog
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathconfig.php
More file actions
49 lines (43 loc) · 1.45 KB
/
config.php
File metadata and controls
49 lines (43 loc) · 1.45 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
<?php
$title = "Syslog WebViewer"; //This appears as the <title> of your page and also the h1 header at the top of the page.
$hostname = "localhost"; //Change this to IP or hostname of your database server. Probably localhost.
$username = "user"; //This is a MySQL user that has access to the Syslog database.
$password = "pass"; //Password for above user.
$database_name = "syslog"; //The name of the database for the Syslog events.
$search_limit = 200;
# COLORS
$background_color = "#111111";
$header_color = "#111111";
$date_color = "#009E52";
$host_color = "#FFFA9E";
$tag_color = "#0081C2";
$msg_color = "#ffffff";
$warning_color = "#AA0000";
// DB-Table
$tbl_name = "syslog"; //The Table where Syslog events are stored.
//$tbl_name = "SystemEvents";
//Translation-Table for the various columnNames
// Hint: Change only the right values! Left-Values are the indexes!
$columnNames = array(
"id" => "id",
"ReceivedAt" => "timestamp",
"FromHost" => "host",
"SysLogTag" => "tag",
"Priority" => "level",
"Message" => "msg",
);
/*
$columnNames = array(
"id" => "ID",
"ReceivedAt" => "ReceivedAt",
"FromHost" => "FromHost",
"SysLogTag" => "SysLogTag",
"Priority" => "Priority",
"Message" => "Message",
);
*/
# ---DO NOT EDIT BELOW THIS LINE---
require_once('dbhelper.php');
$database = new DBObject($hostname, $username, $password, $database_name);
$tbl = new TableObject($database, $tbl_name, $columnNames);
?>