From b18f05c277a8dd1fcc23a90556cc4cab8dbc90c5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A9lix=20Su=C3=A1rez?= Date: Thu, 21 Mar 2024 13:58:54 -0600 Subject: [PATCH] Modify grep_log_module --- pandora_agents/pc/Linux/pandora_agent.conf | 6 +++--- pandora_agents/pc/Win32/pandora_agent.conf | 8 ++++---- pandora_agents/shellscript/linux/pandora_agent.conf | 6 +++--- pandora_agents/shellscript/mac_osx/pandora_agent.conf | 6 +++--- pandora_agents/unix/FreeBSD/pandora_agent.conf | 8 +++++++- pandora_agents/unix/Linux/pandora_agent.conf | 6 +++--- pandora_agents/win32/bin/pandora_agent.conf | 6 +++--- 7 files changed, 26 insertions(+), 20 deletions(-) diff --git a/pandora_agents/pc/Linux/pandora_agent.conf b/pandora_agents/pc/Linux/pandora_agent.conf index 8cb980cff1..c65f9d1e31 100644 --- a/pandora_agents/pc/Linux/pandora_agent.conf +++ b/pandora_agents/pc/Linux/pandora_agent.conf @@ -312,9 +312,9 @@ module_plugin pandora_df # Extraction module example #module_begin -#module_name Collector -#module_description Logs extraction module +#module_name Syslog +#module_description Gets all logs from system messages #module_type log -#module_regexp /var/log/logfile.log +#module_regexp /var/log/messsages #module_pattern .* #module_end \ No newline at end of file diff --git a/pandora_agents/pc/Win32/pandora_agent.conf b/pandora_agents/pc/Win32/pandora_agent.conf index 0b8aeb6e0b..7f775bc354 100644 --- a/pandora_agents/pc/Win32/pandora_agent.conf +++ b/pandora_agents/pc/Win32/pandora_agent.conf @@ -1,6 +1,6 @@ # Base config file for Pandora FMS Windows Agent # (c) 2006-2023 Pandora FMS -# Version 7.0NG.776 +# Version 7.0NG.776 # This program is Free Software, you can redistribute it and/or modify it # under the terms of the GNU General Public Licence as published by the Free Software # Foundation; either version 2 of the Licence or any later version @@ -356,9 +356,9 @@ module_plugin cscript.exe //B "%ProgramFiles%\Pandora_Agent\util\df.vbs" # Example of collector module #module_begin -#module_name Collector -#module_description Logs extraction module +#module_name Syslog +#module_description Gets all logs from system messages #module_type log -#module_regexp /var/log/logfile.log +#module_regexp /var/log/messsages #module_pattern .* #module_end \ No newline at end of file diff --git a/pandora_agents/shellscript/linux/pandora_agent.conf b/pandora_agents/shellscript/linux/pandora_agent.conf index b8f6941240..40462dc184 100644 --- a/pandora_agents/shellscript/linux/pandora_agent.conf +++ b/pandora_agents/shellscript/linux/pandora_agent.conf @@ -180,9 +180,9 @@ module_end # Extraction module example #module_begin -#module_name Collector -#module_description Logs extraction module +#module_name Syslog +#module_description Gets all logs from system messages #module_type log -#module_regexp /var/log/logfile.log +#module_regexp /var/log/messsages #module_pattern .* #module_end \ No newline at end of file diff --git a/pandora_agents/shellscript/mac_osx/pandora_agent.conf b/pandora_agents/shellscript/mac_osx/pandora_agent.conf index 6d6c530a45..6fd62c07b7 100644 --- a/pandora_agents/shellscript/mac_osx/pandora_agent.conf +++ b/pandora_agents/shellscript/mac_osx/pandora_agent.conf @@ -395,9 +395,9 @@ module_end # Extraction module example #module_begin -#module_name Collector -#module_description Logs extraction module +#module_name Syslog +#module_description Gets all logs from system messages #module_type log -#module_regexp /var/log/logfile.log +#module_regexp /var/log/messsages #module_pattern .* #module_end \ No newline at end of file diff --git a/pandora_agents/unix/FreeBSD/pandora_agent.conf b/pandora_agents/unix/FreeBSD/pandora_agent.conf index b182045ac9..9957da61f9 100644 --- a/pandora_agents/unix/FreeBSD/pandora_agent.conf +++ b/pandora_agents/unix/FreeBSD/pandora_agent.conf @@ -277,4 +277,10 @@ module_plugin grep_log /var/log/auth.log Syslog sshd # Log collection modules. Only for enterprise version, this will collect log files for forensic analysis. # This is for LOG monitoring, only on enterprise version -#module_plugin grep_log_module /var/log/messages Syslog \.\* +#module_begin +#module_name Syslog +#module_description Gets all logs from system messages +#module_type log +#module_regexp /var/log/messsages +#module_pattern .* +#module_end diff --git a/pandora_agents/unix/Linux/pandora_agent.conf b/pandora_agents/unix/Linux/pandora_agent.conf index 20714a13b7..de259d63c9 100644 --- a/pandora_agents/unix/Linux/pandora_agent.conf +++ b/pandora_agents/unix/Linux/pandora_agent.conf @@ -328,9 +328,9 @@ module_end # Extraction module example #module_begin -#module_name Collector -#module_description Logs extraction module +#module_name Syslog +#module_description Gets all logs from system messages #module_type log -#module_regexp /var/log/logfile.log +#module_regexp /var/log/messsages #module_pattern .* #module_end \ No newline at end of file diff --git a/pandora_agents/win32/bin/pandora_agent.conf b/pandora_agents/win32/bin/pandora_agent.conf index 1fc54530c5..b802f2d744 100644 --- a/pandora_agents/win32/bin/pandora_agent.conf +++ b/pandora_agents/win32/bin/pandora_agent.conf @@ -533,10 +533,10 @@ module_plugin "%PROGRAMFILES%\Pandora_Agent\util\autodiscover.exe" --default # Logs extraction #module_begin -#module_name X_Server_log -#module_description Logs extraction module +#module_name Syslog +#module_description Gets all logs from system messages #module_type log -#module_regexp C:\server\logs\xserver.log +#module_regexp C:\server\logs\messages #module_pattern .* #module_end