Skip to content

Commit

Permalink
map ECS fields
Browse files Browse the repository at this point in the history
  • Loading branch information
graphaelli committed Nov 12, 2018
1 parent ec55345 commit 08c6d30
Show file tree
Hide file tree
Showing 6 changed files with 538 additions and 18 deletions.
195 changes: 195 additions & 0 deletions _meta/fields.common.yml
Original file line number Diff line number Diff line change
Expand Up @@ -316,3 +316,198 @@
type: keyword
description: >
The ID of the parent event.
# ECS
- name: agent
type: group
dynamic: false
fields:
- name: name
type: alias
path: context.service.agent.name

- name: version
type: alias
path: context.service.agent.version

- name: host
type: group
dynamic: false
fields:
- name: architecture
type: alias
path: context.system.architecture

- name: ip
type: alias
path: context.system.ip

- name: name
type: alias
path: context.system.hostname

- name: os
type: group
fields:
- name: platform
type: alias
path: context.system.platform

- name: http
type: group
dynamic: false
fields:
- name: method
type: alias
path: context.request.method

- name: version
type: alias
path: context.request.http_version

# context.tags copied here (can't alias objects)
- name: labels
type: object
object_type: keyword
dynamic: true
description: >
A flat mapping of user-defined labels with string values.
- name: process
type: group
dynamic: false
fields:
- name: pid
type: alias
path: context.process.pid

- name: ppid
type: alias
path: context.process.ppid

- name: title
type: alias
path: context.process.title

- name: service
type: group
dynamic: false
fields:
# not in ECS
- name: environment
type: alias
path: context.service.environment

# not in ECS
- name: framework
type: group
fields:
- name: name
type: alias
path: context.service.framework.name

- name: version
type: alias
path: context.service.framework.version

# not in ECS
- name: language
type: group
fields:
- name: name
type: alias
path: context.service.language.name

- name: version
type: alias
path: context.service.language.version

- name: name
type: alias
path: context.service.name

# not in ECS
- name: runtime
type: group
fields:
- name: name
type: alias
path: context.service.runtime.name

- name: version
type: alias
path: context.service.runtime.version

- name: version
type: alias
path: context.service.version

- name: url
type: group
dynamic: false
fields:
- name: href
type: group
fields:
- name: original
type: alias
path: context.request.url.raw

- name: host
type: group
fields:
- name: name
type: alias
path: context.request.url.hostname

- name: fragment
type: alias
path: context.request.url.hash

- name: original
type: alias
path: context.request.url.full

- name: path
type: group
fields:
- name: original
type: alias
path: context.request.url.pathname
# TODO: multifield original.text

# context.request.url.port keyword -> long
- name: port
type: long
description: >
The port of the request, e.g. 443.
- name: query
type: group
fields:
- name: query
type: alias
path: context.request.url.search
# TODO: multifield original.text

# context.request.url.protocol minus the ":"
- name: scheme
type: keyword
description: >
The scheme of the request, e.g. "https".
- name: user
type: group
dynamic: false
fields:
- name: email
type: alias
path: context.user.email

- name: id
type: alias
path: context.user.id

- name: name
type: alias
path: context.user.username
Loading

0 comments on commit 08c6d30

Please sign in to comment.