Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions docs/detectors.md
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,22 @@ The detectors are numbered from simplest to most complex, and the sidebar lists
`auto_config: true` but no `data_use_configure`, it never picks anything to monitor.
Write `null`, not `None`, in YAML: `None` is read as a string.

!!! note "Long configure phases spill to disk"
With `use_config_data_as_training: true` (the default) every log of the configure phase
is kept until training starts, then replayed into training. Up to
`train_buffer_max_records` logs (default 100000) stay in memory; beyond that the buffer
is written as Parquet files to a private `detectmate-train-*` directory under
`train_buffer_dir` (a local path; default: the system temp directory, or `TMPDIR`) and
read back when training starts. A warning in the log marks the first spill. The
directory is removed once training has read it; a process that is killed leaves it
behind, and you can delete it by hand. To keep it off disk, lower `data_use_configure`
or set `use_config_data_as_training: false`. In a container, the default directory is
in the container's writable layer: point `train_buffer_dir` at a mounted volume when
the configure phase is large. Where `/tmp` is a RAM-backed tmpfs (common on Fedora,
Arch and Debian 13) the default spill uses RAM, so point `train_buffer_dir` at real
disk. NewValueComboDetector reads its configure logs a second time, to learn which
combinations are stable, so it keeps a copy of its own, which spills the same way.

Every detector page shows a minimal, working configuration file next to its example. The
reference below explains the blocks those files use.

Expand Down Expand Up @@ -158,6 +174,8 @@ There are some parameters, that **every** detector inhertis from `CoreDetectorCo
| `data_use_training` | integer, null | None | Data used for training, if None, training is not done. |
| `data_use_configure` | integer, null | None | Data used for configuration, if None, configuration is not done. |
| `use_config_data_as_training` | boolean | True | Combine the configured data in the training process if True. |
| `train_buffer_max_records` | integer | 100000 | Configure records kept in memory for training (use_config_data_as_training) before the buffer spills to Parquet files on disk, in parts of this many records. |
| `train_buffer_dir` | string, null | None | Local directory for the spilled training buffer. None uses the system temp directory (TMPDIR). Each spill goes to a private detectmate-train-* directory, removed after training reads it; a killed process leaves it behind. |
| `parser` | string | PARSER | Name of the parser used. |
<!-- End common_arguments -->

Expand Down
2 changes: 2 additions & 0 deletions docs/detectors/bigram_frequency.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,8 @@ All parameters this detector accepts, grouped by the YAML block they go in. **Sc
| `data_use_training` | integer, null | None | shared | Data used for training, if None, training is not done. |
| `data_use_configure` | integer, null | None | shared | Data used for configuration, if None, configuration is not done. |
| `use_config_data_as_training` | boolean | True | shared | Combine the configured data in the training process if True. |
| `train_buffer_max_records` | integer | 100000 | shared | Configure records kept in memory for training (use_config_data_as_training) before the buffer spills to Parquet files on disk, in parts of this many records. |
| `train_buffer_dir` | string, null | None | shared | Local directory for the spilled training buffer. None uses the system temp directory (TMPDIR). Each spill goes to a private detectmate-train-* directory, removed after training reads it; a killed process leaves it behind. |
| `parser` | string | PARSER | shared | Name of the parser used. |

??? note "auto_config_params (read only while auto_config is true)"
Expand Down
2 changes: 2 additions & 0 deletions docs/detectors/charset.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,8 @@ All parameters this detector accepts, grouped by the YAML block they go in. **Sc
| `data_use_training` | integer, null | None | shared | Data used for training, if None, training is not done. |
| `data_use_configure` | integer, null | None | shared | Data used for configuration, if None, configuration is not done. |
| `use_config_data_as_training` | boolean | True | shared | Combine the configured data in the training process if True. |
| `train_buffer_max_records` | integer | 100000 | shared | Configure records kept in memory for training (use_config_data_as_training) before the buffer spills to Parquet files on disk, in parts of this many records. |
| `train_buffer_dir` | string, null | None | shared | Local directory for the spilled training buffer. None uses the system temp directory (TMPDIR). Each spill goes to a private detectmate-train-* directory, removed after training reads it; a killed process leaves it behind. |
| `parser` | string | PARSER | shared | Name of the parser used. |

??? note "auto_config_params (read only while auto_config is true)"
Expand Down
2 changes: 2 additions & 0 deletions docs/detectors/combo.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,8 @@ All parameters this detector accepts, grouped by the YAML block they go in. **Sc
| `data_use_training` | integer, null | None | shared | Data used for training, if None, training is not done. |
| `data_use_configure` | integer, null | None | shared | Data used for configuration, if None, configuration is not done. |
| `use_config_data_as_training` | boolean | True | shared | Combine the configured data in the training process if True. |
| `train_buffer_max_records` | integer | 100000 | shared | Configure records kept in memory for training (use_config_data_as_training) before the buffer spills to Parquet files on disk, in parts of this many records. |
| `train_buffer_dir` | string, null | None | shared | Local directory for the spilled training buffer. None uses the system temp directory (TMPDIR). Each spill goes to a private detectmate-train-* directory, removed after training reads it; a killed process leaves it behind. |
| `parser` | string | PARSER | shared | Name of the parser used. |

??? note "auto_config_params (read only while auto_config is true)"
Expand Down
2 changes: 2 additions & 0 deletions docs/detectors/deeplog.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,8 @@ All parameters this detector accepts, grouped by the YAML block they go in. **Sc
| `data_use_training` | integer, null | None | shared | Data used for training, if None, training is not done. |
| `data_use_configure` | integer, null | None | shared | Data used for configuration, if None, configuration is not done. |
| `use_config_data_as_training` | boolean | True | shared | Combine the configured data in the training process if True. |
| `train_buffer_max_records` | integer | 100000 | shared | Configure records kept in memory for training (use_config_data_as_training) before the buffer spills to Parquet files on disk, in parts of this many records. |
| `train_buffer_dir` | string, null | None | shared | Local directory for the spilled training buffer. None uses the system temp directory (TMPDIR). Each spill goes to a private detectmate-train-* directory, removed after training reads it; a killed process leaves it behind. |
| `parser` | string | PARSER | shared | Name of the parser used. |
| `window_size` | integer | 10 | shared | Number of consecutive events used as one training/detection sequence. |
| `validation_per` | number | 0.2 | shared | Fraction of data held out for validation during (fine)training. |
Expand Down
2 changes: 2 additions & 0 deletions docs/detectors/ecvc_detector.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,5 +69,7 @@ All parameters this detector accepts, grouped by the YAML block they go in. **Sc
| `data_use_training` | integer, null | None | shared | Data used for training, if None, training is not done. |
| `data_use_configure` | integer, null | None | shared | Data used for configuration, if None, configuration is not done. |
| `use_config_data_as_training` | boolean | True | shared | Combine the configured data in the training process if True. |
| `train_buffer_max_records` | integer | 100000 | shared | Configure records kept in memory for training (use_config_data_as_training) before the buffer spills to Parquet files on disk, in parts of this many records. |
| `train_buffer_dir` | string, null | None | shared | Local directory for the spilled training buffer. None uses the system temp directory (TMPDIR). Each spill goes to a private detectmate-train-* directory, removed after training reads it; a killed process leaves it behind. |
| `parser` | string | PARSER | shared | Name of the parser used. |
<!-- End arguments -->
2 changes: 2 additions & 0 deletions docs/detectors/event_sequence.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,8 @@ All parameters this detector accepts, grouped by the YAML block they go in. **Sc
| `data_use_training` | integer, null | None | shared | Data used for training, if None, training is not done. |
| `data_use_configure` | integer, null | None | shared | Data used for configuration, if None, configuration is not done. |
| `use_config_data_as_training` | boolean | True | shared | Combine the configured data in the training process if True. |
| `train_buffer_max_records` | integer | 100000 | shared | Configure records kept in memory for training (use_config_data_as_training) before the buffer spills to Parquet files on disk, in parts of this many records. |
| `train_buffer_dir` | string, null | None | shared | Local directory for the spilled training buffer. None uses the system temp directory (TMPDIR). Each spill goes to a private detectmate-train-* directory, removed after training reads it; a killed process leaves it behind. |
| `parser` | string | PARSER | shared | Name of the parser used. |

??? note "auto_config_params (read only while auto_config is true)"
Expand Down
2 changes: 2 additions & 0 deletions docs/detectors/logbert.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,8 @@ All parameters this detector accepts, grouped by the YAML block they go in. **Sc
| `data_use_training` | integer, null | None | shared | Data used for training, if None, training is not done. |
| `data_use_configure` | integer, null | None | shared | Data used for configuration, if None, configuration is not done. |
| `use_config_data_as_training` | boolean | True | shared | Combine the configured data in the training process if True. |
| `train_buffer_max_records` | integer | 100000 | shared | Configure records kept in memory for training (use_config_data_as_training) before the buffer spills to Parquet files on disk, in parts of this many records. |
| `train_buffer_dir` | string, null | None | shared | Local directory for the spilled training buffer. None uses the system temp directory (TMPDIR). Each spill goes to a private detectmate-train-* directory, removed after training reads it; a killed process leaves it behind. |
| `parser` | string | PARSER | shared | Name of the parser used. |
| `window_size` | integer | 10 | shared | Number of consecutive events used as one training/detection sequence. |
| `validation_per` | number | 0.2 | shared | Fraction of data held out for validation during (fine)training. |
Expand Down
2 changes: 2 additions & 0 deletions docs/detectors/new_event.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,5 +63,7 @@ All parameters this detector accepts, grouped by the YAML block they go in. **Sc
| `data_use_training` | integer, null | None | shared | Data used for training, if None, training is not done. |
| `data_use_configure` | integer, null | None | shared | Data used for configuration, if None, configuration is not done. |
| `use_config_data_as_training` | boolean | True | shared | Combine the configured data in the training process if True. |
| `train_buffer_max_records` | integer | 100000 | shared | Configure records kept in memory for training (use_config_data_as_training) before the buffer spills to Parquet files on disk, in parts of this many records. |
| `train_buffer_dir` | string, null | None | shared | Local directory for the spilled training buffer. None uses the system temp directory (TMPDIR). Each spill goes to a private detectmate-train-* directory, removed after training reads it; a killed process leaves it behind. |
| `parser` | string | PARSER | shared | Name of the parser used. |
<!-- End arguments -->
2 changes: 2 additions & 0 deletions docs/detectors/new_value.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,8 @@ All parameters this detector accepts, grouped by the YAML block they go in. **Sc
| `data_use_training` | integer, null | None | shared | Data used for training, if None, training is not done. |
| `data_use_configure` | integer, null | None | shared | Data used for configuration, if None, configuration is not done. |
| `use_config_data_as_training` | boolean | True | shared | Combine the configured data in the training process if True. |
| `train_buffer_max_records` | integer | 100000 | shared | Configure records kept in memory for training (use_config_data_as_training) before the buffer spills to Parquet files on disk, in parts of this many records. |
| `train_buffer_dir` | string, null | None | shared | Local directory for the spilled training buffer. None uses the system temp directory (TMPDIR). Each spill goes to a private detectmate-train-* directory, removed after training reads it; a killed process leaves it behind. |
| `parser` | string | PARSER | shared | Name of the parser used. |

??? note "auto_config_params (read only while auto_config is true)"
Expand Down
2 changes: 2 additions & 0 deletions docs/detectors/random_detector.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,5 +63,7 @@ All parameters this detector accepts, grouped by the YAML block they go in. **Sc
| `data_use_training` | integer, null | None | shared | Data used for training, if None, training is not done. |
| `data_use_configure` | integer, null | None | shared | Data used for configuration, if None, configuration is not done. |
| `use_config_data_as_training` | boolean | True | shared | Combine the configured data in the training process if True. |
| `train_buffer_max_records` | integer | 100000 | shared | Configure records kept in memory for training (use_config_data_as_training) before the buffer spills to Parquet files on disk, in parts of this many records. |
| `train_buffer_dir` | string, null | None | shared | Local directory for the spilled training buffer. None uses the system temp directory (TMPDIR). Each spill goes to a private detectmate-train-* directory, removed after training reads it; a killed process leaves it behind. |
| `parser` | string | PARSER | shared | Name of the parser used. |
<!-- End arguments -->
2 changes: 2 additions & 0 deletions docs/detectors/rule_based.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,5 +80,7 @@ All parameters this detector accepts, grouped by the YAML block they go in. **Sc
| `data_use_training` | integer, null | None | shared | Data used for training, if None, training is not done. |
| `data_use_configure` | integer, null | None | shared | Data used for configuration, if None, configuration is not done. |
| `use_config_data_as_training` | boolean | True | shared | Combine the configured data in the training process if True. |
| `train_buffer_max_records` | integer | 100000 | shared | Configure records kept in memory for training (use_config_data_as_training) before the buffer spills to Parquet files on disk, in parts of this many records. |
| `train_buffer_dir` | string, null | None | shared | Local directory for the spilled training buffer. None uses the system temp directory (TMPDIR). Each spill goes to a private detectmate-train-* directory, removed after training reads it; a killed process leaves it behind. |
| `parser` | string | PARSER | shared | Name of the parser used. |
<!-- End arguments -->
2 changes: 2 additions & 0 deletions docs/detectors/scvs_detector.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,5 +66,7 @@ All parameters this detector accepts, grouped by the YAML block they go in. **Sc
| `data_use_training` | integer, null | None | shared | Data used for training, if None, training is not done. |
| `data_use_configure` | integer, null | None | shared | Data used for configuration, if None, configuration is not done. |
| `use_config_data_as_training` | boolean | True | shared | Combine the configured data in the training process if True. |
| `train_buffer_max_records` | integer | 100000 | shared | Configure records kept in memory for training (use_config_data_as_training) before the buffer spills to Parquet files on disk, in parts of this many records. |
| `train_buffer_dir` | string, null | None | shared | Local directory for the spilled training buffer. None uses the system temp directory (TMPDIR). Each spill goes to a private detectmate-train-* directory, removed after training reads it; a killed process leaves it behind. |
| `parser` | string | PARSER | shared | Name of the parser used. |
<!-- End arguments -->
2 changes: 2 additions & 0 deletions docs/detectors/value_range.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,8 @@ All parameters this detector accepts, grouped by the YAML block they go in. **Sc
| `data_use_training` | integer, null | None | shared | Data used for training, if None, training is not done. |
| `data_use_configure` | integer, null | None | shared | Data used for configuration, if None, configuration is not done. |
| `use_config_data_as_training` | boolean | True | shared | Combine the configured data in the training process if True. |
| `train_buffer_max_records` | integer | 100000 | shared | Configure records kept in memory for training (use_config_data_as_training) before the buffer spills to Parquet files on disk, in parts of this many records. |
| `train_buffer_dir` | string, null | None | shared | Local directory for the spilled training buffer. None uses the system temp directory (TMPDIR). Each spill goes to a private detectmate-train-* directory, removed after training reads it; a killed process leaves it behind. |
| `parser` | string | PARSER | shared | Name of the parser used. |

??? note "auto_config_params (read only while auto_config is true)"
Expand Down
2 changes: 2 additions & 0 deletions docs/parsers.md
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,8 @@ There are some parameters, that **every** parser inhertis from `CoreParserrConfi
| `data_use_training` | integer, null | None | Data used for training, if None, training is not done. |
| `data_use_configure` | integer, null | None | Data used for configuration, if None, configuration is not done. |
| `use_config_data_as_training` | boolean | True | Combine the configured data in the training process if True. |
| `train_buffer_max_records` | integer | 100000 | Configure records kept in memory for training (use_config_data_as_training) before the buffer spills to Parquet files on disk, in parts of this many records. |
| `train_buffer_dir` | string, null | None | Local directory for the spilled training buffer. None uses the system temp directory (TMPDIR). Each spill goes to a private detectmate-train-* directory, removed after training reads it; a killed process leaves it behind. |
| `log_format` | string, null | None | fitting description yet to find |
| `time_format` | string, null | None | fitting description yet to find |
<!-- End common_arguments -->
2 changes: 2 additions & 0 deletions docs/parsers/auto_parser.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,8 @@ All parameters this parser accepts, grouped by the YAML block they go in. **Scop
| `data_use_training` | integer, null | None | shared | Data used for training, if None, training is not done. |
| `data_use_configure` | integer, null | None | shared | Data used for configuration, if None, configuration is not done. |
| `use_config_data_as_training` | boolean | True | shared | Combine the configured data in the training process if True. |
| `train_buffer_max_records` | integer | 100000 | shared | Configure records kept in memory for training (use_config_data_as_training) before the buffer spills to Parquet files on disk, in parts of this many records. |
| `train_buffer_dir` | string, null | None | shared | Local directory for the spilled training buffer. None uses the system temp directory (TMPDIR). Each spill goes to a private detectmate-train-* directory, removed after training reads it; a killed process leaves it behind. |
| `log_format` | string, null | None | shared | fitting description yet to find |
| `time_format` | string, null | None | shared | fitting description yet to find |
<!-- End arguments -->
Loading
Loading