ja:documentation:pandorafms:monitoring:09_log_monitoring

差分

このページの2つのバージョン間の差分を表示します。

この比較画面へのリンク

両方とも前のリビジョン 前のリビジョン
次のリビジョン
前のリビジョン
ja:documentation:pandorafms:monitoring:09_log_monitoring [2025/02/14 08:33] – [お気に入りアイテムとして保存されたフィルタ] junichija:documentation:pandorafms:monitoring:09_log_monitoring [2025/05/30 23:51] (現在) – [エージェント設定] junichi
行 9: 行 9:
 ===== 概要 ===== ===== 概要 =====
  
-Log monitoring in Pandora FMS is established in two different ways:+Log monitoring in **Pandora FMS** allows the user to visualize in a single console all the logs from multiple sources to be captured, organizing the information sequentially, using the time stamp in which the logs were processed.
  
-Pandora FMS におけるログ監視には、以下の 2つ異なる手法があります。+**Pandora FMS** のログ監視により、ユーザは、ログが処理されたタイムスタンプを使用して情報を順番に整理し、キャプチャされた複数ソースからすべてのログを単一のコンソールで参照できます。
  
-  - **Based on modules**: It represents logs in Pandora FMS as asynchronous monitors, being able to associate alerts to detected entries that meet series of conditions preconfigured by the user. The modular representation of the logs allows: +This information does not contain structures or formats, it is stored in text format along with time stamp (of the time of receipt), in addition to the original time stamps that the files may have had.
-      - Creating modules that count the occurrences of a regular expression in a log. +
-      - Obtaining the lines and context of the log messages. +
-  - **Based on combined display**: It allows the user to see in a single Console all the log information from multiple sources that is desired to be captured, organizing the information sequentially, using the timestamp in which the logs were processed.+
  
-  - **モジュールベース**: 非同期監視としの Pandora でログを表現しす。ユーザより事前設定され条件を満たすデーを検出した場合にアラートを関連付けることができます。 ログのモジュール表現では、以下を行うことができます: +情報には構造や形式は含れておらず、ファイル元々付いていたタイムスタンプえて、タイムスタンプ (受信時刻) とともテキスト形式保存されます。
-    - ログの中で正規表現マッチする数を数るモジュールの作成 +
-    - ログメッセージの行および内容を取得 +
-  - **複合表示ベース**: キャプチャしたい複数の発生元のログからすべの情報を 1つのコンソールで表示しログが処理されたタイムスタンプを使用して情報を順番整理ます。+
  
-<WRAP center round info 60%>+These logs can be used to generate security events ([[[:en:documentation:pandorafms:monitoring:21_siem|SIEM]]) and/or for troubleshooting, legal compliance or forensic analysis purposes. The log processing capacity is limited only by the capacity of the device used to store them.
  
-Starting with version 7.0 NG 774, Pandora FMS incorporates OpenSearch to store log information. See also "[[:en:documentation:pandorafms:technical_annexes:38_opensearch_installation|OpenSearch installation and configuration]]".+これらのログは、セキュリティイベント ([[[:ja:documentation:pandorafms:monitoring:21_siem|SIEM]]) の生成や、トラブルシューティング、法令遵守、フォレンジック分析などに利用できます。ログ処理能力は、ログ保存に使用するデバイスの容量によってのみ制限されます。 
 + 
 +<WRAP center round info 90%> 
 + 
 +**Pandora FMS** uses **OpenSearch** to store log information. See also "[[:en:documentation:pandorafms:technical_annexes:38_opensearch_installation|OpenSearch installation and configuration]]" for how to configure it properly.
  
 </WRAP> </WRAP>
  
-<WRAP center round info 60%>+<WRAP center round info 90%>
  
-バージョン 7.0 NG 774 以降、Pandora FMS はログ情報保存するために OpenSearch が組み込まれています。"[[:ja:documentation:pandorafms:technical_annexes:38_opensearch_installation|OpenSearch のインストールと設定]]もご確認ください。+**Pandora FMS** はログ情報保存に **OpenSearch** を使用します。適切な設定方法については、「[[:ja:documentation:pandorafms:technical_annexes:38_opensearch_installation|OpenSearch のインストールと設定]]もごください。
  
 </WRAP> </WRAP>
行 39: 行 37:
 ===== 動作の仕組み ===== ===== 動作の仕組み =====
  
-  * The logs analyzed by the [[:en:documentation:pandorafms:introduction:03_glossary|Software Agents]] (**eventlog**  or text files), are forwarded to Pandora FMS server, in RAW form within the [[:en:documentation:pandorafms:introduction:03_glossary|XML]] agent report. +  * The logs analyzed by the [[:en:documentation:pandorafms:introduction:03_glossary#software_agent|Software Agents]](<wrap :en>**eventlog**</wrap> or text files), are forwarded to the Pandora FMS server, in RAW form inside the [[:en:documentation:pandorafms:introduction:03_glossary#data_filesdata_xml|XML]] agent report. 
-  * The Pandora FMS Data Server receives the agent'XML, which contains both monitoring and log information. +  * The **Pandora FMS Data Server** receives the XML from the agent, which contains both monitoring and log information. 
-  * When the Data Server processes the XML datait identifies the information in the logssaving in the main database the references of the reporting agent and the source of the log and then automatically sending the information to OpenSearch. +  * When the Data Server processes the XML data it identifies the log information, storing in the main database the references of the reporting agent and the origin of the log and then automatically sending the information to OpenSearch. 
-  * Pandora FMS stores data in OpenSearch indexesgenerating a unique index daily for each Pandora FMS instance. +  * Pandora FMS stores the data in OpenSearch indexes generating daily a unique index for each Pandora FMS instance. 
-  * Pandora FMS server has a maintenance task that deletes the indexes at the interval defined by the system administrator (by default, 30 days).+  * The Pandora FMS server has a maintenance task that deletes the indexes in the interval defined by the system administrator (by default, 30 days, modifiable)
 +  * The logs travel through the network encrypted to avoid formatting problems. 
 +  * If you want the logs to travel over the network encrypted, you can use a secure transport ([[:en:documentation:pandorafms:technical_reference:09_tentacle#ks6|Secure communication Tentacle]]) for this purpose. 
 +  * The logs can be sent by **Syslog** to Pandora FMS Syslog Server, which directly processes the logs from a local Syslog server, making the processing much faster. 
 +  * The load can be distributed using different agents and remote Syslog servers to adopt the best distribution and suitability to the network topology.
  
   * [[:ja:documentation:pandorafms:introduction:03_glossary#ソフトウエアエージェント|ソフトウエアエージェント]]で分析されたログ (**eventlog** またはテキストファイル) は、Pandora サーバへ転送されます。エージェントから送信される [[:ja:documentation:pandorafms:introduction:03_glossary#データファイルxml_データ|XML]] に (RAW) データとして含まれます。   * [[:ja:documentation:pandorafms:introduction:03_glossary#ソフトウエアエージェント|ソフトウエアエージェント]]で分析されたログ (**eventlog** またはテキストファイル) は、Pandora サーバへ転送されます。エージェントから送信される [[:ja:documentation:pandorafms:introduction:03_glossary#データファイルxml_データ|XML]] に (RAW) データとして含まれます。
行 50: 行 52:
   * Pandora FMS はデータを OpenSearch インデックスに保存し、各 Pandora FMS インスタンスの日次インデックスを生成します。   * Pandora FMS はデータを OpenSearch インデックスに保存し、各 Pandora FMS インスタンスの日次インデックスを生成します。
   * Pandora FMS サーバには、システム管理者が定義した間隔(デフォルトでは30日)でインデックスを削除するメンテナンスタスクがあります。   * Pandora FMS サーバには、システム管理者が定義した間隔(デフォルトでは30日)でインデックスを削除するメンテナンスタスクがあります。
 +  * フォーマットの問題を回避するために、ログは符号化されてネットワークを通過します。
 +  * ログを暗号化してネットワーク経由で送信したい場合は、安全なトランスポート ([[:ja:documentation:pandorafms:technical_reference:09_tentacle#ks6|Tentacle の安全な通信]]) を使用できます。
 +  * ログは **Syslog** によって Pandora FMS Syslog サーバに送信され、ローカル Syslog サーバからのログが直接処理されるため、処理速度が大幅に向上します。
 +  * さまざまなエージェントとリモート Syslog サーバを使用して負荷を分散し、ネットワークトポロジに最​​適な分散と適合性を実現できます。
  
 <wrap #ks3 /> <wrap #ks3 />
行 95: 行 101:
 ==== エージェント設定 ==== ==== エージェント設定 ====
  
-Log collection is done through agents, both in the agent for Microsoft Windows® and in Unix® agents (Linux®, MacOS X®, Solaris®, HPUX®, AIX®, BSD®, etc.). In the case of MS Windows® agents, information can also be obtained from the operating system's event viewer, using the same filters as in the event viewer monitoring module.+Log collecting is carried out by agents, both in Microsoft Windows® agents and in Unix® agents (Linux®, MacOS X®, Solaris®, HPUX®, AIX®, BSD®, etc).
  
-ログ収集は、Microsoft Windows® 用エージェントと Unix® エージェント (Linux®、MacOS X®、Solaris®、HPUX®、AIX®、BSD® など) の両方でエージェントを通じて行われます。MS Windows® エージェントの場合、イベントビューワ監視モジュールと同じフィルタを使用して、オペレーティングシステムのイベントビューワから情報を取得することもできます。+ログ収集は、Microsoft Windows® 用エージェントと Unix® エージェント (Linux®、MacOS X®、Solaris®、HPUX®、AIX®、BSD® など) の両方でエージェントを通じて行われます。
  
 <wrap #ks3_2_1 /> <wrap #ks3_2_1 />
行 103: 行 109:
 === MS Windows の例 === === MS Windows の例 ===
  
-For version 774 or later, the lines that appear under ''Logs extraction''  must be uncommented:+For version 774 or later, the lines that appear under ''Logs extraction''  must be //uncommented//:
  
-バージョン 774 以降では、''Logs extraction'' の下の行のコメントを外す必要があります。+バージョン 774 以降では、''Logs extraction'' の下の行の//コメントを外す//必要があります。
  
 <code> <code>
- 
 # Log extraction # Log extraction
 #module_begin #module_begin
行 194: 行 199:
 === Unix システムの例 === === Unix システムの例 ===
  
-For version 774 or later, the lines that appear under ''Logs extraction''  must be //uncommented//:+For version 782 or later, the following lines must be added to retrieve **Syslog**  messages. As an example, the messages coming from the **dnf**  command are excluded with the ''module_pattern_exclude''  directive:
  
-バージョン 774 以降では、''Logs extraction''下の行を //コメント解除// する必要があります。+バージョン 782 以降では、**Syslog** メッセージを取得するには、以下の行を追加する必要があります。例えば、**dnf** コマンドからのメッセージは、''module_pattern_exclude'' ディレクティブによって除外されます。
  
 <code> <code>
-# Log extraction +module_begin 
-#module_begin +module_name Syslog 
-#module_name Syslog +module_description Syslog main log file 
-#module_description Logs extraction module +module_type log 
-#module_type log +module_regexp /var/log/messages 
-#module_regexp /var/log/logfile.log +module_pattern .* 
-#module_pattern .* +Sample exclude patter to avoid any dnf messages 
-#module_end+module_pattern_exclude dnf 
 +module_source_type syslog 
 +module_end
  
 </code> </code>
  
-For more information about the description of log type modules check the following section referring to [[:en:documentation:pandorafms:installation:05_configuration_agents|Specific directives]].+By using the ''module_type log''  directive, it is indicated //not to// store it in the database, but to send it to the //log//  collector. Any module with this type of data will be sent to the collector, as long as it is enabled//otherwise information will be discarded//.
  
-ログタイプモジュールの説明の詳細については、[[:ja:documentation:pandorafms:installation:05_configuration_agents|特定のディレクティブ]] を参照し次のセションを確認してください。+''module_type log'' ディレクティブを使用すると、ログデータをデータベースに保存するのではなく、ログコレクターに送信するように指定できます。このタイプのデータを持つモジュールは、ログコレクターが有効になっいる限り、ログコレターに送信れます。有効になってない場合、ログコレクターから情報は破棄されます
  
-<code>+For more information about log module description, please refer to the [[:en:documentation:pandorafms:installation:05_configuration_agents#ks6_2|Specific directives]].
  
-module_type log+ログタイプモジュールの説明の詳細については、[[:ja:documentation:pandorafms:installation:05_configuration_agents|特定のディレクティブ]] を参照して次のセクションを確認してください。
  
-</code>+For version 774 or later, the following lines must be configured for //log// retrieval:
  
-By defining this type of tag, ''module_type log'', it is indicated that it must **not**  be stored in the database, but rather that it must be sent to the log collector. Any module with this type of data will be sent to the collector, as long as it is enabled: otherwise the information will be discarded.+バージョン 774 以降では、//ログ// の取得のために次の行を設定する必要があります。
  
-このタイプのタグ ''module_type log'' を定義すると、データベースに保存するのではなく、ログコレクターに送信する指定になります。このタイプのデータを持つモジュールは、有効になっている場合はコレクターに送信されます。そうでない場合は、情報は破棄されます。+<code>
  
-For versions earlier than 744: +# Logs extraction 
- +#module_begin 
-744 より前のバージョンの場合: +#module_name Syslog 
- +#module_description Logs extraction module 
-<code> +#module_type log 
-module_plugin grep_log_module /var/log/messages Syslog \.\*+#module_regexp /var/log/logfile.log 
 +#module_pattern .* 
 +#module_end
  
 </code> </code>
- 
-Similar to the log parsing plugin (**grep_log**), the **grep_log_module**  plugin sends the processed log information to the Log Collector with the name "Syslog" as the source. It uses the regular expression ''\.\*''  (in this case "everything") as a pattern when choosing which lines to send and which not to send. 
- 
-ログ解析プラグイン (**grep_log**) と同様に、**grep_log_module** プラグインは、処理されたログ情報を、ソースとして "Syslog" という名前のログコレクターに送信します。送信する行と送信しない行を選択するときに、正規表現 ''\.\*'' (この場合は「すべて」) をパターンとして使用します。 
  
 <wrap #ks3_3 /> <wrap #ks3_3 />
行 459: 行 464:
 ==== 共通フィルタ ==== ==== 共通フィルタ ====
  
-<WRAP center round info 60%>+This option allows you to save frequently used filtering preferences, thus creating a list of filters. Once all filter values have been set up, click <wrap :en>**Save filter**</wrap> and assign a name, which will allow you to click <wrap :en>**Save**</wrap> and thus save your preferences or changes (can be saved to an existing filter).
  
-Version 771 or later+このオプションを使用すると、頻繁に使用するフィルタリング設定を保存し、フィルターリストを作成できます。すべてのフィルター値を設定したら、<wrap :ja>**フィルタを保存(Save filter)**</wrap> をクリックして名前を付けます。その後、<wrap :ja>**保存(Save)**</wrap> をクリックして設定や変更を保存できます(既存のフィルタに保存することもできます)。
  
-</WRAP>+At any other time, these preferences may be loaded by means of <wrap :en>**Load filter**</wrap> to drop down the list of saved filters. Select one of them and click <wrap :en>**Load filter**</wrap>.
  
-<WRAP center round info 60%>+それ以外の場合は、<wrap :ja>**フィルタ読み込み(Load filter)**</wrap> をクリックして保存済みのフィルターのリストをドロップダウンすることで、これらの設定をいつでも読み込むことができます。フィルターを1つ選択し、<wrap :ja>**フィルタ読み込み(Load filter)**</wrap> をクリックしてください。
  
-バージョン 771 以上+{{  :wiki:pfms-monitoring-log_viewer-frequently_filters.png  }} 
 + 
 +<WRAP center round info 90%> 
 + 
 +In the <wrap :en>**Operation → Logs → Filters**</wrap> menu, you can edit filters, including their individual or mass deletion. Filters can also be created using this option.
  
 </WRAP> </WRAP>
  
-Through this option you may save frequently used filtering preferences, thus creating a list of frequent filters. When you have configured all the filter values, click **Save filter**, assign a name and click **Save**. At any other time you may load these preferences using the **Load filter**  button, then download the list of saved filters, select one of them and click **Load filter**.+<WRAP center round info 90%>
  
-このオプションを使用すると、頻繁に使用するフィルタリング設定を保存して、頻繁に使用するフィルタのリストを作成できます。すべてのフィルタ値を設定したら、**フィルタを保存(Save filter)** をクリックし、名前を割り当てて **保存(Save)** をクリックします。他のときはいつでも、**フィルタ読み込み(Load filter)** ボタンを使用してこれらの設定を読み込み保存したフィルタのリストをダウロードして、そのうちの 1 つ選択して **フィルタ読み込み(Load filter)** クリックできます。+<wrap :ja>**操作(Operation→ ログ(Logs→ フィルタ(Filters)**</wrap> メニューでは、フィルタの編集(個別削除や一括削除など)が可能です。このオプションを使用してフィルタを作成することもできます。
  
-{{  :wiki:pfms-monitoring-log_viewer-frequently_filters.png  }}+</WRAP>
  
 <wrap #ks4_4 /> <wrap #ks4_4 />
行 481: 行 490:
 ==== お気に入りアイテムとして保存されたフィルタ ==== ==== お気に入りアイテムとして保存されたフィルタ ====
  
-<WRAP center round info 60%>+By using the favorites system in PFMS, a shortcut to the <wrap :en>**Log viewer**</wrap> with filtering preferences may be saved by clicking on the star icon in the section title. 
 + 
 +PFMS のお気に入りシステムを使用すると、セクションタイトルの星アイコンをクリックすることで、フィルタリング設定を含む <wrap :ja>**ログビューア**</wrap> へのショートカットを保存できます。
  
-Version 770 or later.+<WRAP center round important 90%> 
 + 
 +Favorite elements work separately from [[#ks4_3|frequent filters]].
  
 </WRAP> </WRAP>
  
-<WRAP center round info 60%>+<WRAP center round important 90%>
  
-バージョン 770 以上+お気に入りの要素は [[#ks4_3|頻繁に使用するフィルタ]] とは別に機能します。
  
 </WRAP> </WRAP>
- 
-Using the favorites system in PFMS you may save a shortcut for the **Log viewer**  with filtering preferences by clicking the star icon in the section title. 
- 
-PFMS のお気に入りシステムを使用すると、セクションタイトルの星アイコンをクリックして、フィルタリング設定を含む **ログビューワ** のショートカットを保存できます。 
  
 {{  :wiki:pfms-menu-operation-favorite-log_viewer.png  }} {{  :wiki:pfms-menu-operation-favorite-log_viewer.png  }}
  • ja/documentation/pandorafms/monitoring/09_log_monitoring.1739522034.txt.gz
  • 最終更新: 2025/02/14 08:33
  • by junichi