You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/reference/ingest/processors/network-direction.asciidoc
+5-2Lines changed: 5 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -21,15 +21,18 @@ only the `internal_networks` option must be specified.
21
21
| `source_ip` | no | `source.ip` | Field containing the source IP address.
22
22
| `destination_ip` | no | `destination.ip` | Field containing the destination IP address.
23
23
| `target_field` | no | `network.direction` | Output field for the network direction.
24
-
| `internal_networks`| yes | | List of internal networks. Supports IPv4 and
25
-
IPv6 addresses and ranges in CIDR notation. Also supports the named ranges listed below.
24
+
| `internal_networks`| no | | List of internal networks. Supports IPv4 and
25
+
IPv6 addresses and ranges in CIDR notation. Also supports the named ranges listed below. These may be constructed with <<accessing-template-fields,template snippets>>.
26
+
| `internal_networks_field`| no | | A field on the given document to read the `internal_networks` configuration from.
26
27
| `ignore_missing` | no | `true` | If `true` and any required fields are missing,
27
28
the processor quietly exits without modifying the document.
28
29
29
30
30
31
include::common-options.asciidoc[]
31
32
|======
32
33
34
+
One of either `internal_networks` or `internal_networks_field` must be specified. If `internal_networks_field` is specified, it follows the behavior specified by `ignore_missing`.
Copy file name to clipboardExpand all lines: modules/ingest-common/src/test/java/org/elasticsearch/ingest/common/NetworkDirectionProcessorFactoryTests.java
0 commit comments