From 4220ac6e4f63f8ecdae6c7e87088082b71dab633 Mon Sep 17 00:00:00 2001 From: Daniel Maya Date: Tue, 14 Mar 2023 16:27:22 +0100 Subject: [PATCH] #10010 Added full text --- .../reporting/reporting_builder.item_editor.php | 10 ++++++++++ .../godmode/reporting/reporting_builder.php | 4 ++++ 2 files changed, 14 insertions(+) diff --git a/pandora_console/godmode/reporting/reporting_builder.item_editor.php b/pandora_console/godmode/reporting/reporting_builder.item_editor.php index c28bfca6ee..d0c0ee9c88 100755 --- a/pandora_console/godmode/reporting/reporting_builder.item_editor.php +++ b/pandora_console/godmode/reporting/reporting_builder.item_editor.php @@ -115,6 +115,7 @@ $exception_condition_value = 10; $modulegroup = 0; $period = SECONDS_1DAY; $search = ''; +$full_text = 0; $log_number = 1000; // Added support for projection graphs. $period_pg = SECONDS_5DAY; @@ -316,6 +317,7 @@ switch ($action) { $source = $es['source']; $search = $es['search']; $log_number = empty($es['log_number']) ? $log_number : $es['log_number']; + $full_text = empty($es['full_text']) ? 0 : $es['full_text']; break; case 'simple_graph': @@ -1324,6 +1326,14 @@ $class = 'databox filters'; diff --git a/pandora_console/godmode/reporting/reporting_builder.php b/pandora_console/godmode/reporting/reporting_builder.php index a0e25d0e04..27b294a3f5 100755 --- a/pandora_console/godmode/reporting/reporting_builder.php +++ b/pandora_console/godmode/reporting/reporting_builder.php @@ -1656,11 +1656,13 @@ switch ($action) { $agents_to_report = get_parameter('id_agents3'); $source = get_parameter('source', ''); $search = get_parameter('search', ''); + $full_text = (integer) get_parameter('full_text', 0); $log_number = get_parameter('log_number', ''); $es['source'] = $source; $es['id_agents'] = $agents_to_report; $es['search'] = $search; + $es['full_text'] = $full_text; $es['log_number'] = $log_number; $values['external_source'] = json_encode($es); @@ -2601,11 +2603,13 @@ switch ($action) { $agents_to_report = get_parameter('id_agents3'); $source = get_parameter('source', ''); $search = get_parameter('search', ''); + $full_text = (integer) get_parameter('full_text', 0); $log_number = get_parameter('log_number', ''); $es['source'] = $source; $es['id_agents'] = $agents_to_report; $es['search'] = $search; + $es['full_text'] = $full_text; $es['log_number'] = $log_number; $values['external_source'] = json_encode($es);