Skip to content

Commit

Permalink
Add agent.build for extended agent version information (#764)
Browse files Browse the repository at this point in the history
* Add agent.build for extended agent version information

* Add changelog entry

* rename field to build.original

* re-run code generation

* Add short field and additional line about formatting
  • Loading branch information
Andrew Stucki authored Apr 6, 2020
1 parent 1f7fa10 commit 596538f
Show file tree
Hide file tree
Showing 10 changed files with 100 additions and 9 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.next.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ Thanks, you're awesome :-) -->

* Added `search.*` fields #729
* Add architecture and imphash for PE field set. (#763)
* Added `agent.build.*` for extended agent version information. (#764)

#### Improvements

Expand Down
5 changes: 5 additions & 0 deletions code/go/ecs/agent.go

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

15 changes: 15 additions & 0 deletions docs/field-details.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,21 @@ Examples include Beats. Agents may also run on observers. ECS agent.* fields sha

// ===============================================================

| agent.build.original
| Extended build information for the agent.

This field is intended to contain any build information that a data source may provide, no specific formatting is required.

type: keyword



example: `metricbeat version 7.6.0 (amd64), libbeat 7.6.0 [6a23e8f8f30f5001ba344e4e54d8d9cb82cb107c built 2020-02-05 23:10:10 +0000 UTC]`

| core

// ===============================================================

| agent.ephemeral_id
| Ephemeral identifier of this agent (if one exists).

Expand Down
11 changes: 11 additions & 0 deletions generated/beats/fields.ecs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,17 @@
systems such as Logstash or APM Server.'
type: group
fields:
- name: build.original
level: core
type: keyword
ignore_above: 1024
description: 'Extended build information for the agent.
This field is intended to contain any build information that a data source
may provide, no specific formatting is required.'
example: metricbeat version 7.6.0 (amd64), libbeat 7.6.0 [6a23e8f8f30f5001ba344e4e54d8d9cb82cb107c
built 2020-02-05 23:10:10 +0000 UTC]
default_field: false
- name: ephemeral_id
level: extended
type: keyword
Expand Down
1 change: 1 addition & 0 deletions generated/csv/fields.csv
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ ECS_Version,Indexed,Field_Set,Field,Type,Level,Normalization,Example,Description
1.6.0-dev,true,base,labels,object,core,,"{""application"": ""foo-bar"", ""env"": ""production""}",Custom key/value pairs.
1.6.0-dev,true,base,message,text,core,,Hello World,Log message optimized for viewing in a log viewer.
1.6.0-dev,true,base,tags,keyword,core,array,"[""production"", ""env2""]",List of keywords used to tag each event.
1.6.0-dev,true,agent,agent.build.original,keyword,core,,"metricbeat version 7.6.0 (amd64), libbeat 7.6.0 [6a23e8f8f30f5001ba344e4e54d8d9cb82cb107c built 2020-02-05 23:10:10 +0000 UTC]",Extended build information for the agent.
1.6.0-dev,true,agent,agent.ephemeral_id,keyword,extended,,8a4f500f,Ephemeral identifier of this agent.
1.6.0-dev,true,agent,agent.id,keyword,core,,8a4f500d,Unique identifier of this agent.
1.6.0-dev,true,agent,agent.name,keyword,core,,foo,Custom name of the agent.
Expand Down
24 changes: 20 additions & 4 deletions generated/ecs/ecs_flat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,22 @@
required: true
short: Date/time when the event originated.
type: date
agent.build.original:
dashed_name: agent-build-original
description: 'Extended build information for the agent.
This field is intended to contain any build information that a data source may
provide, no specific formatting is required.'
example: metricbeat version 7.6.0 (amd64), libbeat 7.6.0 [6a23e8f8f30f5001ba344e4e54d8d9cb82cb107c
built 2020-02-05 23:10:10 +0000 UTC]
flat_name: agent.build.original
ignore_above: 1024
level: core
name: build.original
normalize: []
order: 1
short: Extended build information for the agent.
type: keyword
agent.ephemeral_id:
dashed_name: agent-ephemeral-id
description: 'Ephemeral identifier of this agent (if one exists).
Expand All @@ -29,7 +45,7 @@ agent.ephemeral_id:
level: extended
name: ephemeral_id
normalize: []
order: 4
order: 5
short: Ephemeral identifier of this agent.
type: keyword
agent.id:
Expand All @@ -43,7 +59,7 @@ agent.id:
level: core
name: id
normalize: []
order: 3
order: 4
short: Unique identifier of this agent.
type: keyword
agent.name:
Expand All @@ -61,7 +77,7 @@ agent.name:
level: core
name: name
normalize: []
order: 1
order: 2
short: Custom name of the agent.
type: keyword
agent.type:
Expand All @@ -77,7 +93,7 @@ agent.type:
level: core
name: type
normalize: []
order: 2
order: 3
short: Type of the agent.
type: keyword
agent.version:
Expand Down
24 changes: 20 additions & 4 deletions generated/ecs/ecs_nested.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,22 @@ agent:
be populated with details of the agent running on the host or observer where the
event happened or the measurement was taken.'
fields:
build.original:
dashed_name: agent-build-original
description: 'Extended build information for the agent.
This field is intended to contain any build information that a data source
may provide, no specific formatting is required.'
example: metricbeat version 7.6.0 (amd64), libbeat 7.6.0 [6a23e8f8f30f5001ba344e4e54d8d9cb82cb107c
built 2020-02-05 23:10:10 +0000 UTC]
flat_name: agent.build.original
ignore_above: 1024
level: core
name: build.original
normalize: []
order: 1
short: Extended build information for the agent.
type: keyword
ephemeral_id:
dashed_name: agent-ephemeral-id
description: 'Ephemeral identifier of this agent (if one exists).
Expand All @@ -18,7 +34,7 @@ agent:
level: extended
name: ephemeral_id
normalize: []
order: 4
order: 5
short: Ephemeral identifier of this agent.
type: keyword
id:
Expand All @@ -32,7 +48,7 @@ agent:
level: core
name: id
normalize: []
order: 3
order: 4
short: Unique identifier of this agent.
type: keyword
name:
Expand All @@ -50,7 +66,7 @@ agent:
level: core
name: name
normalize: []
order: 1
order: 2
short: Custom name of the agent.
type: keyword
type:
Expand All @@ -66,7 +82,7 @@ agent:
level: core
name: type
normalize: []
order: 2
order: 3
short: Type of the agent.
type: keyword
version:
Expand Down
8 changes: 8 additions & 0 deletions generated/elasticsearch/6/template.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,14 @@
},
"agent": {
"properties": {
"build": {
"properties": {
"original": {
"ignore_above": 1024,
"type": "keyword"
}
}
},
"ephemeral_id": {
"ignore_above": 1024,
"type": "keyword"
Expand Down
8 changes: 8 additions & 0 deletions generated/elasticsearch/7/template.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,14 @@
},
"agent": {
"properties": {
"build": {
"properties": {
"original": {
"ignore_above": 1024,
"type": "keyword"
}
}
},
"ephemeral_id": {
"ignore_above": 1024,
"type": "keyword"
Expand Down
12 changes: 11 additions & 1 deletion schemas/agent.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
such as Logstash or APM Server.
type: group
fields:

- name: version
level: core
type: keyword
Expand All @@ -23,6 +22,17 @@
example: 6.0.0-rc2

- name: build.original
level: core
type: keyword
short: Extended build information for the agent.
description: >
Extended build information for the agent.
This field is intended to contain any build information that a data source
may provide, no specific formatting is required.
example: metricbeat version 7.6.0 (amd64), libbeat 7.6.0 [6a23e8f8f30f5001ba344e4e54d8d9cb82cb107c built 2020-02-05 23:10:10 +0000 UTC]

- name: name
level: core
type: keyword
Expand Down

0 comments on commit 596538f

Please sign in to comment.