Skip to content

Commit 0ded54f

Browse files
committed
Processors.ts - add network_direction
Fixes #2617
1 parent e0cfc17 commit 0ded54f

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed

specification/ingest/_types/Processors.ts

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,12 @@ export class ProcessorContainer {
182182
* @doc_id lowercase-processor
183183
*/
184184
lowercase?: LowercaseProcessor
185+
/**
186+
* Calculates the network direction given a source IP address, destination IP
187+
* address, and a list of internal networks.
188+
* @doc_id network-direction-processor
189+
*/
190+
network_direction?: NetworkDirectionProcessor
185191
/**
186192
* Executes another pipeline.
187193
* @doc_id pipeline-processor
@@ -1139,6 +1145,38 @@ export class LowercaseProcessor extends ProcessorBase {
11391145
target_field?: Field
11401146
}
11411147

1148+
export class NetworkDirectionProcessor extends ProcessorBase {
1149+
/**
1150+
* Field containing the source IP address.
1151+
*/
1152+
source_ip?: string
1153+
/**
1154+
* Field containing the destination IP address.
1155+
*/
1156+
destination_ip?: string
1157+
/**
1158+
* Output field for the network direction.
1159+
*/
1160+
target_field?: Field
1161+
/**
1162+
* List of internal networks. Supports IPv4 and IPv6 addresses and ranges in
1163+
* CIDR notation. Also supports the named ranges listed below. These may be
1164+
* constructed with template snippets. Must specify only one of
1165+
* internal_networks or internal_networks_field.
1166+
*/
1167+
internal_networks: string[]
1168+
/**
1169+
* A field on the given document to read the internal_networks configuration
1170+
* from.
1171+
*/
1172+
internal_networks_field?: string
1173+
/**
1174+
* If true and any required fields are missing, the processor quietly exits
1175+
* without modifying the document.
1176+
*/
1177+
ignore_missing?: boolean
1178+
}
1179+
11421180
export class PipelineProcessor extends ProcessorBase {
11431181
/**
11441182
* The name of the pipeline to execute.

0 commit comments

Comments
 (0)