Skip to content

Commit

Permalink
Introduce network.community_id (#208)
Browse files Browse the repository at this point in the history
  • Loading branch information
webmat authored Dec 6, 2018
1 parent 9329a21 commit 38685e0
Show file tree
Hide file tree
Showing 6 changed files with 29 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ All notable changes to this project will be documented in this file based on the
* Add `process.working_directory` and `process.start`. #215
* Reintroduce `http`. #237
* Add `user.full_name` field. #201
* Add `network.community_id` field. #208

### Improvements
* Improved the definition of the file fields #196
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -319,6 +319,7 @@ The network is defined as the communication path over which a host or network ev
| <a name="network.protocol"></a>network.protocol | L7 Network protocol name. ex. http, lumberjack, transport protocol | core | keyword | `http` |
| <a name="network.direction"></a>network.direction | Direction of the network traffic.<br/>Recommended values are:<br/> * inbound<br/> * outbound<br/> * unknown | core | keyword | `inbound` |
| <a name="network.forwarded_ip"></a>network.forwarded_ip | Host IP address when the source IP address is the proxy. | core | ip | `192.1.1.2` |
| <a name="network.community_id"></a>network.community_id | A hash of source and destination IPs and ports, as well as the protocol used in a communication. This is a tool-agnostic standard to identify flows.<br/>Learn more at https://github.com/corelight/community-id-spec. | extended | keyword | `1:hO+sN4H+MG5MY/8hIrXPqc4ZQz0=` |
| <a name="network.inbound.bytes"></a>network.inbound.bytes | Network inbound bytes. | core | long | `184` |
| <a name="network.inbound.packets"></a>network.inbound.packets | Network inbound packets. | core | long | `12` |
| <a name="network.outbound.bytes"></a>network.outbound.bytes | Network outbound bytes. | core | long | `184` |
Expand Down
11 changes: 11 additions & 0 deletions fields.yml
Original file line number Diff line number Diff line change
Expand Up @@ -899,6 +899,17 @@
Host IP address when the source IP address is the proxy.
example: 192.1.1.2

- name: community_id
level: extended
type: keyword
description: >
A hash of source and destination IPs and ports, as well as the protocol
used in a communication. This is a tool-agnostic standard to identify
flows.
Learn more at https://github.com/corelight/community-id-spec.
example: '1:hO+sN4H+MG5MY/8hIrXPqc4ZQz0='

# Metrics
- name: inbound.bytes
level: core
Expand Down
1 change: 1 addition & 0 deletions schema.csv
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ http.version,keyword,extended,1.1
log.level,keyword,core,ERR
log.original,keyword,core,Sep 19 08:26:10 localhost My log
network.application,keyword,extended,AIM
network.community_id,keyword,extended,1:hO+sN4H+MG5MY/8hIrXPqc4ZQz0=
network.direction,keyword,core,inbound
network.forwarded_ip,ip,core,192.1.1.2
network.iana_number,keyword,extended,6
Expand Down
11 changes: 11 additions & 0 deletions schemas/network.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,17 @@
Host IP address when the source IP address is the proxy.
example: 192.1.1.2

- name: community_id
level: extended
type: keyword
description: >
A hash of source and destination IPs and ports, as well as the protocol
used in a communication. This is a tool-agnostic standard to identify
flows.
Learn more at https://github.com/corelight/community-id-spec.
example: '1:hO+sN4H+MG5MY/8hIrXPqc4ZQz0='

# Metrics
- name: inbound.bytes
level: core
Expand Down
4 changes: 4 additions & 0 deletions template.json
Original file line number Diff line number Diff line change
Expand Up @@ -435,6 +435,10 @@
"ignore_above": 1024,
"type": "keyword"
},
"community_id": {
"ignore_above": 1024,
"type": "keyword"
},
"direction": {
"ignore_above": 1024,
"type": "keyword"
Expand Down

0 comments on commit 38685e0

Please sign in to comment.