Skip to content
Open
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
22 changes: 11 additions & 11 deletions docs/user/bots.md
Original file line number Diff line number Diff line change
Expand Up @@ -2784,18 +2784,18 @@ For a detailed description of the modes, see below.

(optional, boolean) Whether to overwrite existing fields. Defaults to false.

### Modes
#### Modes

#### IP Network
##### IP Network
For each incoming event, the bots chooses one random IP network range (IPv4 or IPv6) from the configured data file.
It set's the first IP address of the range as `source.ip` and the network itself as `source.network`.
To adapt the `source.asn` field accordingly, use the [ASN Lookup Expert](#asn-lookup).

For data consistency `source.network` will only be set if `source.ip` was set or overridden.
If overwrite is false, `source.ip` was did not exist before but `source.network` existed before, `source.network` will still be overridden.

#### Event fields
##### Mode `random_single_value`
##### Event fields
###### Mode `random_single_value`
For any possible event field, the bot chooses a random value of the values in the `values` property.

---
Expand Down Expand Up @@ -2911,7 +2911,9 @@ String method operations on column values.

**Parameters:**

*Parameters for stripping chars*
Order of operation: `strip -> replace -> split`. These three methods can be combined such as first strip and then split.

#### Parameters for stripping chars

**`strip_columns`**
(optional, string/array of strings) A list of strings or a string of comma-separated values with field names. The names
Expand All @@ -2920,22 +2922,22 @@ must match the IntelMQ Data Format field names.
For example:

```yaml
columns:
strip_columns:
- malware.name
- extra.tags
```

is equivalent to:

```yaml
columns: "malware.name,extra.tags"
strip_columns: "malware.name,extra.tags"
```

**`strip_chars`**

(optional, string) Set of characters to remove as leading/trailing characters. Defaults to space.

*Parameters for replacing chars*
#### Parameters for replacing chars

**`replace_column`**

Expand All @@ -2952,7 +2954,7 @@ columns: "malware.name,extra.tags"
**`replace_count`**
() number specifying how many occurrences of the old value you want to replace(default: [1])

*Parameters for splitting string to list of string*
#### Parameters for splitting string to list of string

**`split_column`**

Expand All @@ -2962,8 +2964,6 @@ columns: "malware.name,extra.tags"

() specifies the separator to use when splitting the string(default: `,`)

Order of operation: `strip -> replace -> split`. These three methods can be combined such as first strip and then split.

---

### Generic DB Lookup <div id="intelmq.bots.experts.generic_db_lookup.expert" />
Expand Down
Loading