forked from elastic/ecs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Proposal: Introduce connection prefix, move source / destination
There have been recently several discussions around source, destination and connection recently, especially in elastic#9. The conclusion from my side is that source and destination normally belongs to a connection and we actually miss a connection prefix. Also some information from network like `forward_ip` more belong to a connection then network. An additional change I made to source and destination is that they both contain now a host prefix. All the fields in source and destination also exist in `host`. The host prefix can be reused here too. This makes ECS very predictable that every time `host.*` shows up it will contain the same fields. Also source and destination could contain additional data like the location, see elastic#50 for more details. The connection fields now look as following: | Field | Description | Type | |---|---|---|---|---| | <a name="connection.destination.host.ip"></a>`connection.destination.host.ip` | IP address of the destination.<br/>Can be one or multiple IPv4 or IPv6 addresses. | ip | | <a name="connection.destination.host.name"></a>`connection.destination.host.name` | Hostname of the destination. | keyword | | <a name="connection.destination.host.port"></a>`connection.destination.host.port` | Port of the destination. | long | | <a name="connection.destination.host.mac"></a>`connection.destination.host.mac` | MAC address of the destination. | keyword | | <a name="connection.destination.host.domain"></a>`connection.destination.host.domain` | Destination domain. | keyword | | <a name="connection.destination.host.subdomain"></a>`connection.destination.host.subdomain` | Destination subdomain. | keyword | | <a name="connection.source.host.ip"></a>`connection.source.host.ip` | IP address of the source.<br/>Can be one or multiple IPv4 or IPv6 addresses. | ip | | <a name="connection.source.host.name"></a>`connection.source.host.name` | Hostname of the source. | keyword | | <a name="connection.source.host.port"></a>`connection.source.host.port` | Port of the source. | long | | <a name="connection.source.host.mac"></a>`connection.source.host.mac` | MAC address of the source. | keyword | | <a name="connection.source.host.domain"></a>`connection.source.host.domain` | Source domain. | keyword | | <a name="connection.source.host.subdomain"></a>`connection.source.host.subdomain` | Source subdomain. | keyword | | <a name="connection.direction"></a>`connection.direction` | Direction of the network traffic.<br/>Recommended values are:<br/> * inbound<br/> * outbound<br/> * unknown | keyword | | <a name="connection.forwarded_ip"></a>`connection.forwarded_ip` | Host IP address when the source IP address is the proxy. | ip | I opened a PR to discuss this instead of an issue as it will allow us to discuss the high level parts as comment but also details directly in the code.
- Loading branch information
Showing
7 changed files
with
192 additions
and
196 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,83 @@ | ||
--- | ||
- name: connection | ||
title: Connection | ||
group: 2 | ||
description: > | ||
Connection related fields. | ||
fields: | ||
- name: destination.host.ip | ||
type: ip | ||
description: > | ||
IP address of the destination. | ||
Can be one or multiple IPv4 or IPv6 addresses. | ||
- name: destination.host.name | ||
type: keyword | ||
description: > | ||
Hostname of the destination. | ||
- name: destination.host.port | ||
type: long | ||
description: > | ||
Port of the destination. | ||
- name: destination.host.mac | ||
type: keyword | ||
description: > | ||
MAC address of the destination. | ||
- name: destination.host.domain | ||
type: keyword | ||
phase: 1 | ||
description: > | ||
Destination domain. | ||
- name: destination.host.subdomain | ||
type: keyword | ||
phase: 1 | ||
description: > | ||
Destination subdomain. | ||
- name: source.host.ip | ||
type: ip | ||
description: > | ||
IP address of the source. | ||
Can be one or multiple IPv4 or IPv6 addresses. | ||
- name: source.host.name | ||
type: keyword | ||
description: > | ||
Hostname of the source. | ||
- name: source.host.port | ||
type: long | ||
phase: 1 | ||
description: > | ||
Port of the source. | ||
- name: source.host.mac | ||
type: keyword | ||
phase: 1 | ||
description: > | ||
MAC address of the source. | ||
- name: source.host.domain | ||
type: keyword | ||
phase: 1 | ||
description: > | ||
Source domain. | ||
- name: source.host.subdomain | ||
type: keyword | ||
phase: 1 | ||
description: > | ||
Source subdomain. | ||
- name: direction | ||
type: keyword | ||
description: > | ||
Direction of the network traffic. | ||
Recommended values are: | ||
* inbound | ||
* outbound | ||
* unknown | ||
example: inbound | ||
|
||
- name: forwarded_ip | ||
type: ip | ||
description: > | ||
Host IP address when the source IP address is the proxy. | ||
example: 192.1.1.2 |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.