mirror of
https://github.com/rsyslog/loganalyzer.git
synced 2025-09-26 11:19:26 +02:00
48 lines
1.5 KiB
PHP
48 lines
1.5 KiB
PHP
<?php
|
|
/*
|
|
*********************************************************************
|
|
* Copyright by Adiscon GmbH | 2008! *
|
|
* -> www.phplogcon.org <- *
|
|
* *
|
|
* Use this script at your own risk! *
|
|
* ----------------------------------------------------------------- *
|
|
* Main Configuration File *
|
|
* *
|
|
* -> Configuration need variables for the Database connection *
|
|
*********************************************************************
|
|
*/
|
|
|
|
// --- Avoid directly accessing this file!
|
|
if ( !defined('IN_PHPLOGCON') )
|
|
{
|
|
die('Hacking attempt');
|
|
exit;
|
|
}
|
|
// ---
|
|
|
|
// --- Database options
|
|
$CFG['UseDB'] = false;
|
|
$CFG['DBServer'] = "localhost";
|
|
$CFG['Port'] = 3306;
|
|
$CFG['DBName'] = "";
|
|
$CFG['TBPref'] = "logcon_";
|
|
$CFG['User'] = "root";
|
|
$CFG['Pass'] = "";
|
|
// ---
|
|
|
|
// --- Generic Options
|
|
$CFG['ShowDebugMsg'] = 1;
|
|
$CFG["ShowPageRenderStats"] = 1; // If enabled, you will see Pagerender Settings
|
|
// ---
|
|
|
|
// --- Source Options
|
|
$CFG['Sources'][0]['ID'] = "Source1";
|
|
$CFG['Sources'][0]['Name'] = "Syslog Disk File";
|
|
$CFG['Sources'][0]['SourceType'] = SOURCE_DISK;
|
|
$CFG['Sources'][0]['DiskFile'] = $gl_root_path . "samplelogs/syslog";
|
|
$CFG['Sources'][1]['ID'] = "Source2";
|
|
$CFG['Sources'][1]['Name'] = "Old Syslog Disk File";
|
|
$CFG['Sources'][1]['SourceType'] = SOURCE_DISK;
|
|
$CFG['Sources'][1]['DiskFile'] = $gl_root_path . "samplelogs/syslog.0";
|
|
// ---
|
|
?>
|