Skip to content

Commit

Permalink
Add error.stack_trace (#562)
Browse files Browse the repository at this point in the history
  • Loading branch information
felixbarny authored Sep 19, 2019
1 parent 7129b00 commit 4109312
Show file tree
Hide file tree
Showing 12 changed files with 78 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.next.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ Thanks, you're awesome :-) -->
### Bugfixes

### Added
* Added `error.stack_trace` field. #562

### Improvements

Expand Down
3 changes: 3 additions & 0 deletions code/go/ecs/error.go

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

11 changes: 11 additions & 0 deletions docs/field-details.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -1018,6 +1018,17 @@ type: text

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

| error.stack_trace
| The stack trace of this error in plain text.

type: keyword



| extended

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

|=====

[[ecs-event]]
Expand Down
5 changes: 5 additions & 0 deletions generated/beats/fields.ecs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -813,6 +813,11 @@
level: core
type: text
description: Error message.
- name: stack_trace
level: extended
type: keyword
ignore_above: 1024
description: The stack trace of this error in plain text.
- name: event
title: Event
group: 2
Expand Down
1 change: 1 addition & 0 deletions generated/csv/fields.csv
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ ecs.version,keyword,core,1.0.0,1.2.0-dev
error.code,keyword,core,,1.2.0-dev
error.id,keyword,core,,1.2.0-dev
error.message,text,core,,1.2.0-dev
error.stack_trace,keyword,extended,,1.2.0-dev
event.action,keyword,core,user-password-change,1.2.0-dev
event.category,keyword,core,user-management,1.2.0-dev
event.code,keyword,extended,4648,1.2.0-dev
Expand Down
11 changes: 11 additions & 0 deletions generated/ecs/ecs_flat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1104,6 +1104,17 @@ error.message:
order: 1
short: Error message.
type: text
error.stack_trace:
description: The stack trace of this error in plain text.
doc_values: false
flat_name: error.stack_trace
ignore_above: 1024
index: false
level: extended
name: stack_trace
order: 3
short: The stack trace of this error in plain text.
type: keyword
event.action:
description: 'The action captured by the event.
Expand Down
11 changes: 11 additions & 0 deletions generated/ecs/ecs_nested.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1296,6 +1296,17 @@ error:
order: 1
short: Error message.
type: text
stack_trace:
description: The stack trace of this error in plain text.
doc_values: false
flat_name: error.stack_trace
ignore_above: 1024
index: false
level: extended
name: stack_trace
order: 3
short: The stack trace of this error in plain text.
type: keyword
group: 2
name: error
prefix: error.
Expand Down
6 changes: 6 additions & 0 deletions generated/elasticsearch/6/template.json
Original file line number Diff line number Diff line change
Expand Up @@ -492,6 +492,12 @@
"message": {
"norms": false,
"type": "text"
},
"stack_trace": {
"doc_values": false,
"ignore_above": 1024,
"index": false,
"type": "keyword"
}
}
},
Expand Down
6 changes: 6 additions & 0 deletions generated/elasticsearch/7/template.json
Original file line number Diff line number Diff line change
Expand Up @@ -491,6 +491,12 @@
"message": {
"norms": false,
"type": "text"
},
"stack_trace": {
"doc_values": false,
"ignore_above": 1024,
"index": false,
"type": "keyword"
}
}
},
Expand Down
5 changes: 5 additions & 0 deletions generated/legacy/template.json
Original file line number Diff line number Diff line change
Expand Up @@ -313,6 +313,11 @@
"message": {
"norms": false,
"type": "text"
},
"stack_trace": {
"ignore_above": 1024,
"index": false,
"type": "keyword"
}
}
},
Expand Down
10 changes: 10 additions & 0 deletions schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -722,6 +722,16 @@
"name": "error.message",
"required": false,
"type": "text"
},
"error.stack_trace": {
"description": "The stack trace of this error in plain text.",
"example": "",
"footnote": "",
"group": 2,
"level": "extended",
"name": "error.stack_trace",
"required": false,
"type": "(not indexed)"
}
},
"group": 2,
Expand Down
8 changes: 8 additions & 0 deletions schemas/error.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,11 @@
type: keyword
description: >
Error code describing the error.
- name: stack_trace
level: extended
type: keyword
index: false
description: >
The stack trace of this error in plain text.

0 comments on commit 4109312

Please sign in to comment.