Skip to content

Commit

Permalink
Clarify geo field set description. (elastic#333)
Browse files Browse the repository at this point in the history
Loosened up the definition of `geo` fieldset. Not necessarily geo-ip based.
  • Loading branch information
webmat authored Feb 22, 2019
1 parent 34b391c commit 405676b
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 8 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
### Improvements
* Clarified the definition of the host fields #325
* Specify the `object_type` for field `labels`. #331
* Loosen up definition of `geo` field set. Not necessarily geo-ip based, since `geo.name`. #333

### Deprecated

Expand Down
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,9 @@ File objects can be associated with host events, network events, and/or file eve

## <a name="geo"></a> Geo fields

Geo fields can carry data about a specific location related to an event or geo information derived from an IP field.
Geo fields can carry data about a specific location related to an event.

This geolocation information can be derived from techniques such as Geo IP, or be user-supplied.


The `geo` fields are expected to be nested at: `client.geo`, `destination.geo`, `host.geo`, `observer.geo`, `server.geo`, `source.geo`.
Expand Down
5 changes: 3 additions & 2 deletions code/go/ecs/geo.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 4 additions & 2 deletions fields.yml
Original file line number Diff line number Diff line change
Expand Up @@ -745,8 +745,10 @@
group: 2
short: Fields describing a location.
description: >
Geo fields can carry data about a specific location related to an event
or geo information derived from an IP field.
Geo fields can carry data about a specific location related to an event.
This geolocation information can be derived from techniques such as Geo IP,
or be user-supplied.
reusable:
top_level: false
expected:
Expand Down
2 changes: 1 addition & 1 deletion schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -810,7 +810,7 @@
"type": "group"
},
"geo": {
"description": "Geo fields can carry data about a specific location related to an event or geo information derived from an IP field.\n",
"description": "Geo fields can carry data about a specific location related to an event.\nThis geolocation information can be derived from techniques such as Geo IP, or be user-supplied.\n",
"fields": {
"geo.city_name": {
"description": "City name.",
Expand Down
6 changes: 4 additions & 2 deletions schemas/geo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,10 @@
group: 2
short: Fields describing a location.
description: >
Geo fields can carry data about a specific location related to an event
or geo information derived from an IP field.
Geo fields can carry data about a specific location related to an event.
This geolocation information can be derived from techniques such as Geo IP,
or be user-supplied.
reusable:
top_level: false
expected:
Expand Down

0 comments on commit 405676b

Please sign in to comment.