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 DLL fieldset #679

Merged
merged 18 commits into from
Feb 12, 2020
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.next.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ Thanks, you're awesome :-) -->
#### Bugfixes

#### Added
* Added `library.*` fields (#679)
webmat marked this conversation as resolved.
Show resolved Hide resolved

* Add default `text` analyzer to `user_agent.original`. #575

Expand Down
31 changes: 31 additions & 0 deletions code/go/ecs/lib.go

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

39 changes: 39 additions & 0 deletions docs/field-details.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -2180,6 +2180,45 @@ example: `1.1`

|=====

[[ecs-lib]]
=== Shared Library Fields

These fields contain information about dynamic or static code libraries, including both kernel-mode modules, and process modules.

==== Shared Library Field Details

[options="header"]
|=====
| Field | Description | Level

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

| lib.name
| Name of the library.

This generally maps to the name of the file on disk.

type: keyword

example: `kernel32.dll`

| core

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

| lib.path
| Full file path of the library.

type: keyword

example: `C:\Windows\System32\kernel32.dll`

| extended

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

|=====

[[ecs-log]]
=== Log Fields

Expand Down
2 changes: 2 additions & 0 deletions docs/fields.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@ all fields are defined.

| <<ecs-http,HTTP>> | Fields describing an HTTP request.

| <<ecs-lib,Shared Library>> | These fields contain information about dynamic or static code libraries, including both kernel-mode modules, and process modules.

| <<ecs-log,Log>> | Details about the event's logging mechanism.

| <<ecs-network,Network>> | Fields describing the communication path over which the event happened.
Expand Down
21 changes: 21 additions & 0 deletions generated/beats/fields.ecs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1653,6 +1653,27 @@
ignore_above: 1024
description: HTTP version.
example: 1.1
- name: lib
title: Shared Library
group: 2
description: These fields contain information about dynamic or static code libraries,
including both kernel-mode modules, and process modules.
type: group
fields:
- name: name
level: core
type: keyword
ignore_above: 1024
description: 'Name of the library.

This generally maps to the name of the file on disk.'
example: kernel32.dll
- name: path
level: extended
type: keyword
ignore_above: 1024
description: Full file path of the library.
example: C:\Windows\System32\kernel32.dll
- name: log
title: Log
group: 2
Expand Down
2 changes: 2 additions & 0 deletions generated/csv/fields.csv
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,8 @@ ECS_Version,Indexed,Field_Set,Field,Type,Level,Example,Description
1.4.0-dev,true,http,http.response.bytes,long,extended,1437,Total size in bytes of the response (body and headers).
1.4.0-dev,true,http,http.response.status_code,long,extended,404,HTTP response status code.
1.4.0-dev,true,http,http.version,keyword,extended,1.1,HTTP version.
1.4.0-dev,true,lib,lib.name,keyword,core,kernel32.dll,Name of the library.
1.4.0-dev,true,lib,lib.path,keyword,extended,C:\Windows\System32\kernel32.dll,Full file path of the library.
1.4.0-dev,true,log,log.level,keyword,core,error,Log level of the log event.
1.4.0-dev,true,log,log.logger,keyword,core,org.elasticsearch.bootstrap.Bootstrap,Name of the logger.
1.4.0-dev,true,log,log.origin.file.line,integer,extended,42,The line number of the file which originated the log event.
Expand Down
22 changes: 22 additions & 0 deletions generated/ecs/ecs_flat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2358,6 +2358,28 @@ labels:
order: 2
short: Custom key/value pairs.
type: object
lib.name:
description: 'Name of the library.

This generally maps to the name of the file on disk.'
example: kernel32.dll
flat_name: lib.name
ignore_above: 1024
level: core
name: name
order: 0
short: Name of the library.
type: keyword
lib.path:
description: Full file path of the library.
example: C:\Windows\System32\kernel32.dll
flat_name: lib.path
ignore_above: 1024
level: extended
name: path
order: 1
short: Full file path of the library.
type: keyword
log.level:
description: 'Original log level of the log event.

Expand Down
33 changes: 33 additions & 0 deletions generated/ecs/ecs_nested.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2660,6 +2660,39 @@ http:
short: Fields describing an HTTP request.
title: HTTP
type: group
lib:
description: These fields contain information about dynamic or static code libraries,
including both kernel-mode modules, and process modules.
fields:
name:
description: 'Name of the library.

This generally maps to the name of the file on disk.'
example: kernel32.dll
flat_name: lib.name
ignore_above: 1024
level: core
name: name
order: 0
short: Name of the library.
type: keyword
path:
description: Full file path of the library.
example: C:\Windows\System32\kernel32.dll
flat_name: lib.path
ignore_above: 1024
level: extended
name: path
order: 1
short: Full file path of the library.
type: keyword
group: 2
name: lib
prefix: lib.
short: These fields contain information about dynamic or static code libraries,
including both kernel-mode modules, and process modules.
title: Shared Library
type: group
log:
description: 'Details about the event''s logging mechanism or logging transport.

Expand Down
12 changes: 12 additions & 0 deletions generated/elasticsearch/6/template.json
Original file line number Diff line number Diff line change
Expand Up @@ -979,6 +979,18 @@
"labels": {
"type": "object"
},
"lib": {
"properties": {
"name": {
"ignore_above": 1024,
"type": "keyword"
},
"path": {
"ignore_above": 1024,
"type": "keyword"
}
}
},
"log": {
"properties": {
"level": {
Expand Down
12 changes: 12 additions & 0 deletions generated/elasticsearch/7/template.json
Original file line number Diff line number Diff line change
Expand Up @@ -978,6 +978,18 @@
"labels": {
"type": "object"
},
"lib": {
"properties": {
"name": {
"ignore_above": 1024,
"type": "keyword"
},
"path": {
"ignore_above": 1024,
"type": "keyword"
}
}
},
"log": {
"properties": {
"level": {
Expand Down
24 changes: 24 additions & 0 deletions schemas/lib.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
---
- name: lib
rw-access marked this conversation as resolved.
Show resolved Hide resolved
title: Shared Library
rw-access marked this conversation as resolved.
Show resolved Hide resolved
group: 2
description: These fields contain information about dynamic or static code libraries, including both kernel-mode modules, and process modules.
rw-access marked this conversation as resolved.
Show resolved Hide resolved
type: group

fields:

- name: name
level: core
type: keyword
short: Name of the library.
description: >
Name of the library.

This generally maps to the name of the file on disk.
example: kernel32.dll

- name: path
level: extended
type: keyword
description: Full file path of the library.
example: C:\Windows\System32\kernel32.dll