Skip to content
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

Add log.logger #521

Merged
merged 7 commits into from
Aug 19, 2019
Merged
Show file tree
Hide file tree
Changes from 3 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
4 changes: 4 additions & 0 deletions code/go/ecs/log.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 @@ -1842,6 +1842,17 @@ example: `err`

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

| log.logger
| The name of the logger, usually the name of the class which initialized the logger.

type: keyword

example: `org.elasticsearch.bootstrap.Bootstrap`

| core

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

| log.original
| This is the original log message and contains the full log message before splitting it up in multiple parts.

Expand Down
7 changes: 7 additions & 0 deletions generated/beats/fields.ecs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1378,6 +1378,13 @@

Some examples are `warn`, `error`, `i`.'
example: err
- name: logger
level: core
type: keyword
ignore_above: 1024
description: The name of the logger, usually the name of the class which initialized
the logger.
example: org.elasticsearch.bootstrap.Bootstrap
- name: original
level: core
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 @@ -179,6 +179,7 @@ http.response.bytes,long,extended,1437,1.1.0-dev
http.response.status_code,long,extended,404,1.1.0-dev
http.version,keyword,extended,1.1,1.1.0-dev
log.level,keyword,core,err,1.1.0-dev
log.logger,keyword,core,org.elasticsearch.bootstrap.Bootstrap,1.1.0-dev
log.original,keyword,core,Sep 19 08:26:10 localhost My log,1.1.0-dev
network.application,keyword,extended,aim,1.1.0-dev
network.bytes,long,core,368,1.1.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 @@ -1966,6 +1966,17 @@ log.level:
order: 0
short: Log level of the log event.
type: keyword
log.logger:
description: The name of the logger, usually the name of the class which initialized
the logger.
example: org.elasticsearch.bootstrap.Bootstrap
flat_name: log.logger
ignore_above: 1024
level: core
name: logger
order: 2
short: Name of the logger.
type: keyword
log.original:
description: 'This is the original log message and contains the full log message
before splitting it up in multiple parts.
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 @@ -2255,6 +2255,17 @@ log:
order: 0
short: Log level of the log event.
type: keyword
logger:
description: The name of the logger, usually the name of the class which initialized
the logger.
example: org.elasticsearch.bootstrap.Bootstrap
flat_name: log.logger
ignore_above: 1024
level: core
name: logger
order: 2
short: Name of the logger.
type: keyword
original:
description: 'This is the original log message and contains the full log message
before splitting it up in multiple parts.
Expand Down
4 changes: 4 additions & 0 deletions generated/elasticsearch/6/template.json
Original file line number Diff line number Diff line change
Expand Up @@ -858,6 +858,10 @@
"ignore_above": 1024,
"type": "keyword"
},
"logger": {
"ignore_above": 1024,
"type": "keyword"
},
"original": {
"doc_values": false,
"ignore_above": 1024,
Expand Down
4 changes: 4 additions & 0 deletions generated/elasticsearch/7/template.json
Original file line number Diff line number Diff line change
Expand Up @@ -857,6 +857,10 @@
"ignore_above": 1024,
"type": "keyword"
},
"logger": {
"ignore_above": 1024,
"type": "keyword"
},
"original": {
"doc_values": false,
"ignore_above": 1024,
Expand Down
4 changes: 4 additions & 0 deletions generated/legacy/template.json
Original file line number Diff line number Diff line change
Expand Up @@ -555,6 +555,10 @@
"ignore_above": 1024,
"type": "keyword"
},
"logger": {
"ignore_above": 1024,
"type": "keyword"
},
"original": {
"doc_values": false,
"ignore_above": 1024,
Expand Down
10 changes: 10 additions & 0 deletions schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -1326,6 +1326,16 @@
"required": false,
"type": "keyword"
},
"log.logger": {
"description": "The name of the logger, usually the name of the class which initialized the logger.",
"example": "org.elasticsearch.bootstrap.Bootstrap",
"footnote": "",
"group": 2,
"level": "core",
"name": "log.logger",
"required": false,
"type": "keyword"
},
"log.original": {
"description": "This is the original log message and contains the full log message before splitting it up in multiple parts.\nIn contrast to the `message` field which can contain an extracted part of the log message, this field contains the original, full log message. It can have already some modifications applied like encoding or new lines removed to clean up the log message.\nThis field is not indexed and doc_values are disabled so it can't be queried but the value can be retrieved from `_source`.",
"example": "Sep 19 08:26:10 localhost My log",
Expand Down
8 changes: 8 additions & 0 deletions schemas/log.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,11 @@

This field is not indexed and doc_values are disabled so it can't be
queried but the value can be retrieved from `_source`.

- name: logger
level: core
type: keyword
example: org.elasticsearch.bootstrap.Bootstrap
short: Name of the logger.
description: >
The name of the logger, usually the name of the class which initialized the logger.
felixbarny marked this conversation as resolved.
Show resolved Hide resolved