Merge branch 'ent-2835-revision-visor-de-logs' into 'develop'

Added models in tlog_graph_models

See merge request artica/pandorafms!2200

Former-commit-id: 33da3ceca68bc25975dd9f62ed24d7ca0c8a01e4
This commit is contained in:
Daniel Rodriguez 2019-02-25 19:37:49 +01:00
commit 11106f9b86
3 changed files with 72 additions and 1 deletions

View File

@ -120,4 +120,28 @@ INSERT INTO `tnotification_source_user` (`id_source`, `id_user`, `enabled`, `als
INSERT INTO `tnotification_source_group` SELECT `id`,0 FROM `tnotification_source` WHERE `description`="Message";
INSERT INTO `tnotification_user` (`id_mensaje`, `id_user`) SELECT `id_mensaje`, `id_usuario_destino` FROM `tmensajes` WHERE `id_usuario_destino` != '';
INSERT INTO tlog_graph_models (`title`,`regexp`,`fields`,`average`) VALUES ('Apache accesses per client and status',
'(.*?)\ -.*1.1"\ (\d+)\ \d+',
'host,status', 1);
INSERT INTO tlog_graph_models (`title`,`regexp`,`fields`,`average`) VALUES ('Apache time per requester and html code',
'(.*?)\ -.*1.1"\ (\d+)\ (\d+)',
'origin,respose,_time_', 1);
INSERT INTO tlog_graph_models (`title`,`regexp`,`fields`,`average`) VALUES ('Count output',
'.*',
'Coincidences', 0);
INSERT INTO tlog_graph_models (`title`,`regexp`,`fields`,`average`) VALUES ('Events replicated to metaconsole',
'.* (.*?) .* (\d+) events replicated to metaconsole',
'server,_events_', 0);
INSERT INTO tlog_graph_models (`title`,`regexp`,`fields`,`average`) VALUES ('Pages with warnings',
'PHP Warning:.*in (.*?) on',
'page', 0);
INSERT INTO tlog_graph_models (`title`,`regexp`,`fields`,`average`) VALUES ('Users login',
'Starting Session \d+\ of user (.*)',
'user', 0);
COMMIT;

View File

@ -1821,7 +1821,30 @@ CREATE TABLE IF NOT EXISTS `tlog_graph_models` (
INSERT INTO tlog_graph_models VALUES (1, 'Apache log model',
'^.*?\s+.*".*?\s(\/.*?)\?.*1.1"\s+(.*?)\s+(.*?)\s+',
'pagina, html_err_code, _tiempo_', 1);
INSERT INTO tlog_graph_models VALUES (2, 'Apache accesses per client and status',
'(.*?)\ -.*1.1"\ (\d+)\ \d+',
'host,status', 1);
INSERT INTO tlog_graph_models VALUES (3, 'Apache time per requester and html code',
'(.*?)\ -.*1.1"\ (\d+)\ (\d+)',
'origin,respose,_time_', 1);
INSERT INTO tlog_graph_models VALUES (4, 'Count output',
'.*',
'Coincidences', 0);
INSERT INTO tlog_graph_models VALUES (5, 'Events replicated to metaconsole',
'.* (.*?) .* (\d+) events replicated to metaconsole',
'server,_events_', 0);
INSERT INTO tlog_graph_models VALUES (6, 'Pages with warnings',
'PHP Warning:.*in (.*?) on',
'page', 0);
INSERT INTO tlog_graph_models VALUES (7, 'Users login',
'Starting Session \d+\ of user (.*)',
'user', 0);
-- -----------------------------------------------------
-- Add column in table `treport`
-- -----------------------------------------------------

View File

@ -1269,6 +1269,30 @@ INSERT INTO tlog_graph_models VALUES (1, 'Apache log model',
'^.*?\s+.*".*?\s(\/.*?)\?.*1.1"\s+(.*?)\s+(.*?)\s+',
'pagina, html_err_code, _tiempo_', 1);
INSERT INTO tlog_graph_models VALUES (2, 'Apache accesses per client and status',
'(.*?)\ -.*1.1"\ (\d+)\ \d+',
'host,status', 1);
INSERT INTO tlog_graph_models VALUES (3, 'Apache time per requester and html code',
'(.*?)\ -.*1.1"\ (\d+)\ (\d+)',
'origin,respose,_time_', 1);
INSERT INTO tlog_graph_models VALUES (4, 'Count output',
'.*',
'Coincidences', 0);
INSERT INTO tlog_graph_models VALUES (5, 'Events replicated to metaconsole',
'.* (.*?) .* (\d+) events replicated to metaconsole',
'server,_events_', 0);
INSERT INTO tlog_graph_models VALUES (6, 'Pages with warnings',
'PHP Warning:.*in (.*?) on',
'page', 0);
INSERT INTO tlog_graph_models VALUES (7, 'Users login',
'Starting Session \d+\ of user (.*)',
'user', 0);
--
-- Dumping data for table `tnotification_source`
--