File tree Expand file tree Collapse file tree 14 files changed +67
-89
lines changed
billing/elasticsearch/ingest_pipeline
dynamodb/elasticsearch/ingest_pipeline
ec2_metrics/elasticsearch/ingest_pipeline
kinesis/elasticsearch/ingest_pipeline
lambda/elasticsearch/ingest_pipeline
natgateway/elasticsearch/ingest_pipeline
rds/elasticsearch/ingest_pipeline
redshift/elasticsearch/ingest_pipeline
s3_daily_storage/elasticsearch/ingest_pipeline
s3_request/elasticsearch/ingest_pipeline
sqs/elasticsearch/ingest_pipeline
transitgateway/elasticsearch/ingest_pipeline
usage/elasticsearch/ingest_pipeline
vpn/elasticsearch/ingest_pipeline Expand file tree Collapse file tree 14 files changed +67
-89
lines changed Original file line number Diff line number Diff line change @@ -4,13 +4,11 @@ processors:
44 - dot_expander :
55 field : " *"
66 ignore_failure : true
7- - script :
8- lang : painless
9- description : This script fills cloud.account.name with cloud.account.id when the name is not available.
10- source : |
11- if(ctx.cloud?.account?.id != null && ctx.cloud?.account?.name == null) {
12- ctx.cloud.account.name = ctx.cloud.account.id;
13- }
7+ - set :
8+ field : cloud.account.name
9+ copy_from : cloud.account.id
10+ override : false
11+ ignore_empty_value : true
1412 - fingerprint :
1513 fields : ["aws.billing.group_by"]
1614 target_field : ' aws.billing.group_by.fingerprint'
Original file line number Diff line number Diff line change @@ -5,13 +5,11 @@ processors:
55 - dot_expander :
66 field : " *"
77 ignore_failure : true
8- - script :
9- lang : painless
10- description : This script fills cloud.account.name with cloud.account.id when the name is not available.
11- source : |
12- if(ctx.cloud?.account?.id != null && ctx.cloud?.account?.name == null) {
13- ctx.cloud.account.name = ctx.cloud.account.id;
14- }
8+ - set :
9+ field : cloud.account.name
10+ copy_from : cloud.account.id
11+ override : false
12+ ignore_empty_value : true
1513on_failure :
1614 - set :
1715 field : ' error.message'
Original file line number Diff line number Diff line change @@ -5,13 +5,15 @@ processors:
55 - dot_expander :
66 field : " *"
77 ignore_failure : true
8+ - set :
9+ field : cloud.account.name
10+ copy_from : cloud.account.id
11+ override : false
12+ ignore_empty_value : true
813 - script :
914 lang : painless
10- description : This script fills cloud.account.name with cloud.account.id when the name is not available .
15+ description : This script converts aws.ec2.metrics.CPUUtilization.avg from percentage to decimal .
1116 source : |
12- if(ctx.cloud?.account?.id != null && ctx.cloud?.account?.name == null) {
13- ctx.cloud.account.name = ctx.cloud.account.id;
14- }
1517 if(ctx.aws?.ec2?.metrics?.CPUUtilization?.avg != null && ctx.host?.cpu?.usage == null) {
1618 ctx.aws.ec2.metrics.CPUUtilization.avg = ctx.aws.ec2.metrics.CPUUtilization.avg / 100;
1719 }
Original file line number Diff line number Diff line change @@ -5,13 +5,11 @@ processors:
55 - dot_expander :
66 field : " *"
77 ignore_failure : true
8- - script :
9- lang : painless
10- description : This script fills cloud.account.name with cloud.account.id when the name is not available.
11- source : |
12- if(ctx.cloud?.account?.id != null && ctx.cloud?.account?.name == null) {
13- ctx.cloud.account.name = ctx.cloud.account.id;
14- }
8+ - set :
9+ field : cloud.account.name
10+ copy_from : cloud.account.id
11+ override : false
12+ ignore_empty_value : true
1513on_failure :
1614 - set :
1715 field : ' error.message'
Original file line number Diff line number Diff line change @@ -5,13 +5,11 @@ processors:
55 - dot_expander :
66 field : " *"
77 ignore_failure : true
8- - script :
9- lang : painless
10- description : This script fills cloud.account.name with cloud.account.id when the name is not available.
11- source : |
12- if(ctx.cloud?.account?.id != null && ctx.cloud?.account?.name == null) {
13- ctx.cloud.account.name = ctx.cloud.account.id;
14- }
8+ - set :
9+ field : cloud.account.name
10+ copy_from : cloud.account.id
11+ override : false
12+ ignore_empty_value : true
1513on_failure :
1614 - set :
1715 field : ' error.message'
Original file line number Diff line number Diff line change @@ -5,13 +5,11 @@ processors:
55 - dot_expander :
66 field : " *"
77 ignore_failure : true
8- - script :
9- lang : painless
10- description : This script fills cloud.account.name with cloud.account.id when the name is not available.
11- source : |
12- if(ctx.cloud?.account?.id != null && ctx.cloud?.account?.name == null) {
13- ctx.cloud.account.name = ctx.cloud.account.id;
14- }
8+ - set :
9+ field : cloud.account.name
10+ copy_from : cloud.account.id
11+ override : false
12+ ignore_empty_value : true
1513on_failure :
1614 - set :
1715 field : ' error.message'
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ processors:
77 ignore_failure : true
88 - script :
99 lang : painless
10- description : This script fills cloud.account.name with cloud.account.id when the name is not available .
10+ description : This script converts aws.rds.metrics.CPUUtilization.avg from percentage to decimal .
1111 source : |
1212 if(ctx.agent?.type == "firehose" && ctx.aws?.rds?.metrics?.CPUUtilization?.avg != null && ctx.aws?.rds?.cpu?.total?.pct == null) {
1313 ctx.aws.rds.metrics.CPUUtilization.avg = ctx.aws.rds.metrics.CPUUtilization.avg / 100;
Original file line number Diff line number Diff line change @@ -5,13 +5,11 @@ processors:
55 - dot_expander :
66 field : " *"
77 ignore_failure : true
8- - script :
9- lang : painless
10- description : This script fills cloud.account.name with cloud.account.id when the name is not available.
11- source : |
12- if(ctx.cloud?.account?.id != null && ctx.cloud?.account?.name == null) {
13- ctx.cloud.account.name = ctx.cloud.account.id;
14- }
8+ - set :
9+ field : cloud.account.name
10+ copy_from : cloud.account.id
11+ override : false
12+ ignore_empty_value : true
1513 - rename :
1614 field : aws.dimensions.service class
1715 target_field : aws.dimensions.service_class
Original file line number Diff line number Diff line change @@ -5,13 +5,11 @@ processors:
55 - dot_expander :
66 field : " *"
77 ignore_failure : true
8- - script :
9- lang : painless
10- description : This script fills cloud.account.name with cloud.account.id when the name is not available.
11- source : |
12- if(ctx.cloud?.account?.id != null && ctx.cloud?.account?.name == null) {
13- ctx.cloud.account.name = ctx.cloud.account.id;
14- }
8+ - set :
9+ field : cloud.account.name
10+ copy_from : cloud.account.id
11+ override : false
12+ ignore_empty_value : true
1513 - rename :
1614 field : aws.s3.metrics.NumberOfObjects.avg
1715 target_field : aws.s3_daily_storage.number_of_objects
Original file line number Diff line number Diff line change @@ -5,13 +5,11 @@ processors:
55 - dot_expander :
66 field : " *"
77 ignore_failure : true
8- - script :
9- lang : painless
10- description : This script fills cloud.account.name with cloud.account.id when the name is not available.
11- source : |
12- if(ctx.cloud?.account?.id != null && ctx.cloud?.account?.name == null) {
13- ctx.cloud.account.name = ctx.cloud.account.id;
14- }
8+ - set :
9+ field : cloud.account.name
10+ copy_from : cloud.account.id
11+ override : false
12+ ignore_empty_value : true
1513 - rename :
1614 field : aws.s3.metrics.AllRequests.sum
1715 target_field : aws.s3_request.requests.total
You can’t perform that action at this time.
0 commit comments