Skip to content

Commit dafa201

Browse files
committed
Processors.ts - add network_direction
Fixes #2617
1 parent 971d1eb commit dafa201

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
@@ -1140,6 +1146,38 @@ export class LowercaseProcessor extends ProcessorBase {
11401146
target_field?: Field
11411147
}
11421148

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

0 commit comments

Comments
 (0)