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

Iterate package #4473

Merged
merged 5 commits into from
Dec 2, 2020
Merged
Show file tree
Hide file tree
Changes from all 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
14 changes: 8 additions & 6 deletions NOTICE.txt
Original file line number Diff line number Diff line change
Expand Up @@ -639,7 +639,7 @@ Contents of "LICENSE":
--------------------------------------------------------------------
Dependency: github.com/elastic/beats/v7
Version: v7.0.0
Revision: 0fda3061815d
Revision: 633285e75a03
License type (autodetected): Apache-2.0

--------------------------------------------------------------------
Expand Down Expand Up @@ -994,7 +994,8 @@ Contents of "NOTICE.txt":

--------------------------------------------------------------------
Dependency: github.com/elastic/gosigar
Version: v0.12.0
Version: v0.10.6
Revision: f115143bb233
License type (autodetected): Apache-2.0
Contents of "NOTICE":

Expand All @@ -1010,7 +1011,7 @@ Contents of "NOTICE":

--------------------------------------------------------------------
Dependency: github.com/fatih/color
Version: v1.10.0
Version: v1.9.0
License type (autodetected): MIT
Contents of "LICENSE.md":

Expand Down Expand Up @@ -3572,7 +3573,8 @@ License type (autodetected): Apache-2.0

--------------------------------------------------------------------
Dependency: go.elastic.co/apm
Version: v1.9.0
Version: v1.8.1
Revision: 2aef45b9cf4b
License type (autodetected): Apache-2.0
Contents of "NOTICE":

Expand Down Expand Up @@ -3903,7 +3905,7 @@ Contents of "LICENSE":

--------------------------------------------------------------------
Dependency: golang.org/x/net
Revision: 69a78807bb2b
Revision: 942e2f445f3c
License type (autodetected): BSD-3-Clause
Contents of "LICENSE":

Expand Down Expand Up @@ -4005,7 +4007,7 @@ Contents of "LICENSE":

--------------------------------------------------------------------
Dependency: golang.org/x/sys
Revision: 5cba982894dd
Revision: 201ba4db2418
License type (autodetected): BSD-3-Clause
Contents of "LICENSE":

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"description": "Default enrichment for APM events",
"processors": [
{
"pipeline": {
"name": "apm_user_agent"
}
},
{
"pipeline": {
"name": "apm_user_geo"
}
},
{
"pipeline": {
"name": "apm_ingest_timestamp"
}
},
{
"pipeline": {
"name": "apm_remove_span_metadata"
}
}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"description": "Add an ingest timestamp for APM events",
"processors": [
{
"set": {
"field": "event.ingested",
"if": "ctx.processor?.event != 'span'",
"value": "{{_ingest.timestamp}}"
}
}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"description": "Removes metadata fields available already on the parent transaction, to save storage",
"processors": [
{
"remove": {
"field": [
"host",
"process",
"user",
"user_agent",
"container",
"kubernetes",
"service.node",
"service.version",
"service.language",
"service.runtime",
"service.framework"
],
"if": "ctx.processor?.event == 'span'",
"ignore_failure": true,
"ignore_missing": true
}
}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"description": "Add user agent information for APM events",
"processors": [
{
"user_agent": {
"field": "user_agent.original",
"ignore_failure": true,
"ignore_missing": true,
"target_field": "user_agent"
}
}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"description": "Add user geo information for APM events",
"processors": [
{
"geoip": {
"database_file": "GeoLite2-City.mmdb",
"field": "client.ip",
"ignore_missing": true,
"on_failure": [
{
"remove": {
"field": "client.ip",
"ignore_failure": true,
"ignore_missing": true
}
}
],
"target_field": "client.geo"
}
}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
- name: '@timestamp'
type: date
description: Event timestamp.
- name: data_stream.type
type: constant_keyword
description: Data stream type.
- name: data_stream.dataset
type: constant_keyword
description: Data stream dataset.
- name: data_stream.namespace
type: constant_keyword
description: Data stream namespace.
218 changes: 218 additions & 0 deletions apmpackage/apm/0.1.0/data_stream/internal_metrics/fields/ecs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,218 @@
- name: agent.ephemeral_id
type: keyword
description: |
The Ephemeral ID identifies a running process.
- name: agent.name
type: keyword
description: |
Name of the agent used.
- name: agent.version
type: keyword
description: |
Version of the agent used.
- name: client.ip
type: ip
description: |
IP address of the client of a recorded event. This is typically obtained from a request's X-Forwarded-For or the X-Real-IP header or falls back to a given configuration for remote address.
- name: cloud.account.id
level: extended
type: keyword
description: Cloud account ID
ignore_above: 1024
- name: cloud.account.name
level: extended
type: keyword
description: Cloud account name
ignore_above: 1024
- name: cloud.availability_zone
level: extended
type: keyword
description: Cloud availability zone name
ignore_above: 1024
- name: cloud.instance.id
level: extended
type: keyword
description: Cloud instance/machine ID
ignore_above: 1024
- name: cloud.instance.name
level: extended
type: keyword
description: Cloud instance/machine name
ignore_above: 1024
- name: cloud.machine.type
level: extended
type: keyword
description: Cloud instance/machine type
ignore_above: 1024
- name: cloud.project.id
level: extended
type: keyword
description: Cloud project ID
ignore_above: 1024
- name: cloud.project.name
level: extended
type: keyword
description: Cloud project name
ignore_above: 1024
- name: cloud.provider
level: extended
type: keyword
description: Cloud provider name
ignore_above: 1024
- name: cloud.region
level: extended
type: keyword
description: Cloud region name
ignore_above: 1024
- name: container.id
type: keyword
description: |
Unique container id.
- name: destination.address
level: extended
type: keyword
description: Some event destination addresses are defined ambiguously. The event will sometimes list an IP, a domain or a unix socket. You should always store the raw address in the `.address` field. Then it should be duplicated to `.ip` or `.domain`, depending on which one it is.
ignore_above: 1024
- name: destination.ip
level: core
type: ip
description: IP addess of the destination. Can be one of multiple IPv4 or IPv6 addresses.
- name: destination.port
level: core
type: long
format: string
description: Port of the destination.
- name: event.outcome
level: core
type: keyword
description: |
`event.outcome` simply denotes whether the event represents a success or a failure from the perspective of the entity that produced the event.
ignore_above: 1024
- name: host.architecture
type: keyword
description: |
The architecture of the host the event was recorded on.
- name: host.hostname
type: keyword
description: |
The hostname of the host the event was recorded on.
- name: host.ip
type: ip
description: |
IP of the host that records the event.
- name: host.name
type: keyword
description: |
Name of the host the event was recorded on. It can contain same information as host.hostname or a name specified by the user.
- name: host.os.platform
type: keyword
description: |
The platform of the host the event was recorded on.
- name: labels
type: object
description: |
A flat mapping of user-defined labels with string, boolean or number values.
- name: observer.hostname
type: keyword
description: |
Hostname of the APM Server.
- name: observer.type
type: keyword
description: |
The type will be set to `apm-server`.
- name: observer.version
type: keyword
description: |
APM Server version.
- name: process.args
level: extended
type: keyword
description: |
Process arguments. May be filtered to protect sensitive information.
- name: process.pid
type: long
description: |
Numeric process ID of the service process.
- name: process.ppid
type: long
description: |
Numeric ID of the service's parent process.
- name: process.title
type: keyword
description: |
Service process title.
- name: service.name
type: keyword
description: |
Immutable name of the service emitting this event.
- name: service.node.name
type: keyword
description: |
Unique meaningful name of the service node.
- name: service.version
type: keyword
description: |
Version of the service emitting this event.
- name: source.ip
type: ip
description: |
IP address of the source of a recorded event. This is typically obtained from a request's X-Forwarded-For or the X-Real-IP header or falls back to a given configuration for remote address.
- name: transaction.id
type: keyword
description: |
The transaction ID.
- name: user.email
type: keyword
description: |
Email of the logged in user.
- name: user.id
type: keyword
description: |
Identifier of the logged in user.
- name: user.name
type: keyword
description: |
The username of the logged in user.
- name: user_agent.device.name
type: keyword
description: |
Name of the device.
- name: user_agent.name
type: keyword
description: |
Name of the user agent.
- name: user_agent.original
type: keyword
description: |
Unparsed version of the user_agent.
multi_fields:
- name: text
type: text
- name: user_agent.os.family
type: keyword
description: |
OS family (such as redhat, debian, freebsd, windows).
- name: user_agent.os.full
type: keyword
description: |
Operating system name, including the version or code name.
- name: user_agent.os.kernel
type: keyword
description: |
Operating system kernel version as a raw string.
- name: user_agent.os.name
type: keyword
description: |
Operating system name, without the version.
- name: user_agent.os.platform
type: keyword
description: |
Operating system platform (such centos, ubuntu, windows).
- name: user_agent.os.version
type: keyword
description: |
Operating system version as a raw string.
- name: user_agent.version
type: keyword
description: |
Version of the user agent.
Loading