mirror of
https://github.com/rsyslog/loganalyzer.git
synced 2025-09-26 03:09:21 +02:00
Added support to import/convert new source options
This commit is contained in:
parent
c740edd9fe
commit
a36c801960
@ -160,9 +160,11 @@ function ConvertCustomSources()
|
||||
// Add New Entry
|
||||
if ( $mySource['SourceType'] == SOURCE_DISK )
|
||||
{
|
||||
$result = DB_Query("INSERT INTO " . DB_SOURCES . " (Name, SourceType, ViewID, LogLineType, DiskFile) VALUES ( " .
|
||||
$result = DB_Query("INSERT INTO " . DB_SOURCES . " (Name, SourceType, MsgParserList, MsgNormalize, ViewID, LogLineType, DiskFile) VALUES ( " .
|
||||
"'" . PrepareValueForDB($mySource['Name']) . "', " .
|
||||
" " . PrepareValueForDB($mySource['SourceType']) . " , " .
|
||||
"'" . PrepareValueForDB($mySource['MsgParserList']) . "', " .
|
||||
" " . PrepareValueForDB($mySource['MsgNormalize']) . " , " .
|
||||
"'" . PrepareValueForDB($mySource['ViewID']) . "', " .
|
||||
"'" . PrepareValueForDB($mySource['LogLineType']) . "', " .
|
||||
"'" . PrepareValueForDB($mySource['DiskFile']) . "'" .
|
||||
@ -179,9 +181,11 @@ function ConvertCustomSources()
|
||||
$mySource['DBType'] = DB_MYSQL;
|
||||
|
||||
// Perform the insert
|
||||
$result = DB_Query("INSERT INTO " . DB_SOURCES . " (Name, SourceType, ViewID, DBTableType, DBType, DBServer, DBName, DBUser, DBPassword, DBTableName, DBEnableRowCounting) VALUES ( " .
|
||||
$result = DB_Query("INSERT INTO " . DB_SOURCES . " (Name, SourceType, MsgParserList, MsgNormalize, ViewID, DBTableType, DBType, DBServer, DBName, DBUser, DBPassword, DBTableName, DBEnableRowCounting) VALUES ( " .
|
||||
"'" . PrepareValueForDB($mySource['Name']) . "', " .
|
||||
" " . PrepareValueForDB($mySource['SourceType']) . " , " .
|
||||
"'" . PrepareValueForDB($mySource['MsgParserList']) . "', " .
|
||||
" " . PrepareValueForDB($mySource['MsgNormalize']) . " , " .
|
||||
"'" . PrepareValueForDB($mySource['ViewID']) . "', " .
|
||||
"'" . PrepareValueForDB($mySource['DBTableType']) . "', " .
|
||||
" " . PrepareValueForDB($mySource['DBType']) . " , " .
|
||||
|
Loading…
x
Reference in New Issue
Block a user