差分
このページの2つのバージョン間の差分を表示します。
| 両方とも前のリビジョン 前のリビジョン | |||
| ja:documentation:pandorafms:monitoring:09_log_monitoring [2025/08/24 06:21] – [module_application] junichi | ja:documentation:pandorafms:monitoring:09_log_monitoring [2025/08/24 06:25] (現在) – [Unix システムの例] junichi | ||
|---|---|---|---|
| 行 593: | 行 593: | ||
| <wrap #ks3_2_2 /> | <wrap #ks3_2_2 /> | ||
| - | === Unix システムの例 | + | === Linux/Unix イベント収集 |
| - | For version 782 or later, the following lines must be added to retrieve **Syslog** | + | Log example: |
| - | バージョン 782 以降では、**Syslog** メッセージを取得するには、以下の行を追加する必要があります。例えば、**dnf** コマンドからのメッセージは、'' | + | ログの例: |
| < | < | ||
| + | |||
| module_begin | module_begin | ||
| module_name Syslog | module_name Syslog | ||
| - | module_description | + | module_description |
| module_type log | module_type log | ||
| module_regexp / | module_regexp / | ||
| module_pattern .* | module_pattern .* | ||
| - | # Sample exclude patter to avoid any dnf messages | + | module_pattern_exclude |
| - | module_pattern_exclude | + | |
| - | module_source_type syslog | + | |
| module_end | module_end | ||
| </ | </ | ||
| - | By using the '' | + | For more information about the description of log type modules, please refer to the following section about [[:en: |
| - | '' | + | ログタイプモジュールの説明の詳細については、[[: |
| - | For more information about log module description, please refer to the [[: | + | By defining this type of tag, '' |
| - | ログタイプモジュールの説明の詳細については、[[: | + | このタイプのタグ '' |
| - | For version 774 or later, the following lines must be configured for //log// retrieval: | + | <WRAP center round info 90%> |
| - | バージョン | + | In the past other methods were used to collect logs in the Linux agent (plugins), from version 781 onwards it is recommended to use only this method. |
| + | |||
| + | </ | ||
| + | |||
| + | <WRAP center round info 90%> | ||
| + | |||
| + | 以前は、Linux エージェント (プラグイン) でログを収集するために他の方法が使用されていましたが、バージョン | ||
| + | |||
| + | </ | ||
| + | |||
| + | More complete examples: | ||
| + | |||
| + | より完全な例: | ||
| < | < | ||
| - | # Logs extraction | + | module_begin |
| - | #module_begin | + | module_name |
| - | #module_name | + | module_type log |
| - | # | + | module_regexp / |
| - | #module_type log | + | module_pattern .* |
| - | #module_regexp /var/log/logfile.log | + | module_pattern_exclude \s200\s|\s301\s |
| - | #module_pattern | + | module_source_type web-log |
| - | #module_end | + | module_end |
| + | |||
| + | </ | ||
| + | < | ||
| + | |||
| + | module_begin | ||
| + | module_name Audit denied | ||
| + | module_type log | ||
| + | module_regexp /var/log/audit/audit.log | ||
| + | module_pattern | ||
| + | module_end | ||
| + | |||
| + | </ | ||
| + | |||
| + | < | ||
| + | module_begin | ||
| + | module_name Syslog | ||
| + | module_type log | ||
| + | module_regexp / | ||
| + | module_pattern error|fail|panic|segfault|denied|timeout|critical|alert|emergency|memory|core_dumped|failure|attack|bad|illegal|refused|unauthorized|fatal|failed|Segmentation|Corrupted | ||
| + | module_end | ||
| + | |||
| + | </ | ||
| + | < | ||
| + | |||
| + | module_begin | ||
| + | module_name Secure | ||
| + | module_type log | ||
| + | module_regexp / | ||
| + | module_pattern Failed|failure|invalid|denied|accepted|root | ||
| + | module_end | ||
| </ | </ | ||