Skip to content

Commit

Permalink
copy pipelines to all data streams
Browse files Browse the repository at this point in the history
  • Loading branch information
jalvz committed Dec 2, 2020
1 parent c75a1a6 commit 408649e
Show file tree
Hide file tree
Showing 23 changed files with 396 additions and 7 deletions.
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,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,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,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
}
}
]
}
Loading

0 comments on commit 408649e

Please sign in to comment.