Skip to content

Added Network Session Objects - From Split of #43 #48

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ All notable changes to this project will be documented in this file based on the
### Bugfixes

### Added
* Add `network.session_id` and `network.virtual_ip` field. #37
* Add `event.action` field. #21
* Adds cloud.account.id for top level organizational level. #11
* Add `http.response.status_code` and `http.response.body` fields. #4
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -286,6 +286,8 @@ Fields related to network data.
| <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/>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.session_id"></a>`network.session_id` | This is the session ID or connection ID, which is a unique identifier for the session /connection. Bro conn.log uid field gets mapped here. | keyword | | `0bbeef000d1234` |
| <a name="network.virtual_ip"></a>`network.virtual_ip` | The virtual IP associated with a session or connection. Useful when load balancers, firewalls, and routers use a virtual IP to "advertise" a service. | ip | | `192.168.1.1` |
| <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` |
Expand Down
2 changes: 2 additions & 0 deletions schema.csv
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,8 @@ network.inbound.packets,long,0,12
network.outbound.bytes,long,0,184
network.outbound.packets,long,0,12
network.protocol,keyword,0,http
network.session_id,keyword,0,0bbeef000d1234
network.virtual_ip,ip,0,192.168.1.1
organization.id,keyword,0,
organization.name,text,0,
os.family,keyword,0,debian
Expand Down
15 changes: 15 additions & 0 deletions schemas/network.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,21 @@
Host IP address when the source IP address is the proxy.
example: 192.1.1.2

- name: session_id
type: keyword
description: >
This is the session ID or connection ID,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Based on the description I'm wonder if we should put it into a connection object? See other discussions around connection.

I think there is value for network info and connection info.

which is a unique identifier for the session /connection.
Bro conn.log uid field gets mapped here.
example: 0bbeef000d1234
- name: virtual_ip
type: ip
description: >
The virtual IP associated with a session or connection.
Useful when load balancers, firewalls, and routers use a
virtual IP to "advertise" a service.
example: 192.168.1.1

# Metrics
- name: inbound.bytes
type: long
Expand Down
7 changes: 7 additions & 0 deletions template.json
Original file line number Diff line number Diff line change
Expand Up @@ -510,6 +510,13 @@
"protocol": {
"ignore_above": 1024,
"type": "keyword"
},
"session_id": {
"ignore_above": 1024,
"type": "keyword"
},
"virtual_ip": {
"type": "ip"
}
}
},
Expand Down