Skip to content

Commit

Permalink
Revised Network Metrics
Browse files Browse the repository at this point in the history
Inbound and outbound are ambiguous with regard to netflow data. When
using src and destination, the direction is explicit. `inbound` and
`outbound` don't map back to `src` and `dest` and becomes ambiguous. I don't
see a use case for `inbound` and `outbound` as this is already
defined by `src` and `dest`. This removes the `inbound` and `outbound`
sections and replaces them with a single transfer field which lines up with
netflow, gcp flow logs, aws flowlogs, and so on.
  • Loading branch information
Rob Gil committed May 30, 2018
1 parent ca691df commit 6c6c855
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 52 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,4 @@ All notable changes to this project will be documented in this file based on the
### Added

### Deprecated
- Replaced network.inbound/outbound with less ambigious network.transfer.
7 changes: 2 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -271,12 +271,9 @@ All fields related to network data.
| Field | Description | Type | Multi Field | Example |
|---|---|---|---|---|
| <a name="network.protocol"></a>`network.protocol` | Network protocol name. | keyword | | `http` |
| <a name="network.direction"></a>`network.direction` | Direction of the network traffic.<br/>The recommended values are:<br/> * inbound<br/> * outbound<br/> * unknown | keyword | | `inbound` |
| <a name="network.forwarded_ip"></a>`network.forwarded_ip` | forwarded_ip indicates the host IP address when the source IP address is the proxy. | ip | | `192.1.1.2` |
| <a name="network.inbound.bytes"></a>`network.inbound.bytes` | Network inbound bytes. | long | | `184` |
| <a name="network.inbound.packets"></a>`network.inbound.packets` | Network inbound packets. | long | | `12` |
| <a name="network.outbound.bytes"></a>`network.outbound.bytes` | Network outbound bytes. | long | | `184` |
| <a name="network.outbound.packets"></a>`network.outbound.packets` | Network outbound packets. | long | | `12` |
| <a name="network.transfer.bytes"></a>`network.transfer.bytes` | Network bytes transferred. Typically used with netflow, sflow, or cloud provider flow logs | long | | `184` |
| <a name="network.transfer.packets"></a>`network.transfer.packets` | Network packets transferred. Typically used with netflow, sflow, or cloud provider flow logs | long | | `12` |


## <a name="organization"></a> Organization fields
Expand Down
7 changes: 2 additions & 5 deletions schema.csv
Original file line number Diff line number Diff line change
Expand Up @@ -86,13 +86,10 @@ kubernetes.pod.name,keyword,0,
log.level,keyword,0,ERR
log.line,long,0,18
log.offset,long,0,12
network.direction,keyword,0,inbound
network.forwarded_ip,ip,0,192.1.1.2
network.inbound.bytes,long,0,184
network.inbound.packets,long,0,12
network.outbound.bytes,long,0,184
network.outbound.packets,long,0,12
network.protocol,keyword,0,http
network.transfer.bytes,long,0,184
network.transfer.packets,long,0,12
organization.id,keyword,0,
organization.name,text,0,
process.args,keyword,0,"['-l', 'user', '10.0.0.16']"
Expand Down
30 changes: 6 additions & 24 deletions schemas/network.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,6 @@
description: >
Network protocol name.
example: http
- name: direction
type: keyword
description: >
Direction of the network traffic.
The recommended values are:
* inbound
* outbound
* unknown
example: inbound

- name: forwarded_ip
type: ip
Expand All @@ -29,23 +19,15 @@
example: 192.1.1.2

# Metrics
- name: inbound.bytes
type: long
description: >
Network inbound bytes.
example: 184
- name: inbound.packets
type: long
description: >
Network inbound packets.
example: 12
- name: outbound.bytes
- name: transfer.bytes
type: long
description: >
Network outbound bytes.
Network bytes transferred. Typically used with netflow, sflow, or
cloud provider flow logs
example: 184
- name: outbound.packets
- name: transfer.packets
type: long
description: >
Network outbound packets.
Network packets transferred. Typically used with netflow, sflow, or
cloud provider flow logs
example: 12
22 changes: 4 additions & 18 deletions template.json
Original file line number Diff line number Diff line change
Expand Up @@ -445,24 +445,14 @@
},
"network": {
"properties": {
"direction": {
"ignore_above": 1024,
"type": "keyword"
},
"forwarded_ip": {
"type": "ip"
},
"inbound": {
"properties": {
"bytes": {
"type": "long"
},
"packets": {
"type": "long"
}
}
"protocol": {
"ignore_above": 1024,
"type": "keyword"
},
"outbound": {
"transfer": {
"properties": {
"bytes": {
"type": "long"
Expand All @@ -471,10 +461,6 @@
"type": "long"
}
}
},
"protocol": {
"ignore_above": 1024,
"type": "keyword"
}
}
},
Expand Down

0 comments on commit 6c6c855

Please sign in to comment.