Skip to content

Commit

Permalink
Adds network.application.protocol
Browse files Browse the repository at this point in the history
This is to help delineate between `network.protocol` like `tcp` and an
`network.application.protocol` such as `http`.
  • Loading branch information
Rob Gil committed Aug 13, 2018
1 parent 404be2e commit 382da23
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 2 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,8 @@ 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.protocol"></a>network.protocol | Network protocol name. | keyword | | `tcp` |
| <a name="network.application.protocol"></a>network.application.protocol | Application protocol name. | keyword | | `http` |
| <a name="network.direction"></a>network.direction | Direction of the network traffic.<br/>Recommended values are:<br/> * inbound<br/> * outbound<br/> * unknown | keyword | | `inbound` |
| <a name="network.forwarded_ip"></a>network.forwarded_ip | 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` |
Expand Down
3 changes: 2 additions & 1 deletion schema.csv
Original file line number Diff line number Diff line change
Expand Up @@ -93,13 +93,14 @@ log.level,keyword,0,ERR
log.line,long,0,18
log.message,keyword,1,Sep 19 08:26:10 localhost My log
log.offset,long,0,12
network.application.protocol,keyword,0,http
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.protocol,keyword,0,tcp
network.total.bytes,long,0,368
network.total.packets,long,0,24
organization.id,keyword,0,
Expand Down
5 changes: 5 additions & 0 deletions schemas/network.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@
type: keyword
description: >
Network protocol name.
example: tcp
- name: application.protocol
type: keyword
description: >
Application protocol name.
example: http
- name: direction
type: keyword
Expand Down
9 changes: 9 additions & 0 deletions template.json
Original file line number Diff line number Diff line change
Expand Up @@ -492,6 +492,14 @@
},
"network": {
"properties": {
"application": {
"properties": {
"protocol": {
"ignore_above": 1024,
"type": "keyword"
}
}
},
"direction": {
"ignore_above": 1024,
"type": "keyword"
Expand Down Expand Up @@ -655,6 +663,7 @@
"properties": {
"certificates": {
"doc_values": false,
"ignore_above": 1024,
"type": "keyword"
},
"ciphersuite": {
Expand Down

0 comments on commit 382da23

Please sign in to comment.