-
Notifications
You must be signed in to change notification settings - Fork 435
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[awsfirehose] Add routing rules for metrics ingested from Firehose (#…
- Loading branch information
1 parent
457ef80
commit 5e25fed
Showing
33 changed files
with
651 additions
and
197 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
dependencies: | ||
ecs: | ||
reference: git@v8.0.0 | ||
reference: git@v8.11.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
34 changes: 17 additions & 17 deletions
34
packages/awsfirehose/data_stream/logs/_dev/test/pipeline/test-cloudfront-log.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,19 @@ | ||
{ | ||
"events": [ | ||
{ | ||
"cloud.region": "us-east-1", | ||
"aws.firehose.arn": "arn:aws:firehose:us-east-2:123456:deliverystream/firehose-cloudfront-logs-to-elastic", | ||
"data_stream.namespace": "default", | ||
"message": "2022-04-19 12:29:36 SEA19-C2 10157 81.2.69.143 POST d111111abcdef8.cloudfront.net /getApplications 200 https://test.com/global Mozilla/5.0%20(Windows%20NT%2010.0;%20Win64;%20x64)%20AppleWebKit/537.36%20(KHTML,%20like%20Gecko)%20Chrome/100.0.4896.127%20Safari/537.36 source=global - Miss hrsHM5OM6sTIXUleC1G20YtDxMf5Cq0Jbz0pwhVpod2kgEn_W6akCQ== test.com https 1057 0.238 - TLSv1.3 TLS_AES_128_GCM_SHA256 Miss HTTP/2.0 - - 4203 0.238 Miss application/json;charset=UTF-8 - - -", | ||
"aws.kinesis.type": "deliverystream", | ||
"data_stream.type": "logs", | ||
"aws.firehose.request_id": "971ae05f-a128-4a7f-b623-30f9bc513e55", | ||
"cloud.provider": "aws", | ||
"@timestamp": "2023-07-25T21:04:35Z", | ||
"cloud.account.id": "123456", | ||
"data_stream.dataset": "awsfirehose", | ||
"aws.kinesis.name": "firehose-cloudfront-logs-to-elastic", | ||
"event.id": "37670326805251200781477669690942747782212394134076063744" | ||
} | ||
] | ||
"events": [ | ||
{ | ||
"cloud.region": "us-east-1", | ||
"aws.firehose.arn": "arn:aws:firehose:us-east-2:123456:deliverystream/firehose-cloudfront-logs-to-elastic", | ||
"data_stream.namespace": "default", | ||
"message": "2022-04-19 12:29:36 SEA19-C2 10157 81.2.69.143 POST d111111abcdef8.cloudfront.net /getApplications 200 https://test.com/global Mozilla/5.0%20(Windows%20NT%2010.0;%20Win64;%20x64)%20AppleWebKit/537.36%20(KHTML,%20like%20Gecko)%20Chrome/100.0.4896.127%20Safari/537.36 source=global - Miss hrsHM5OM6sTIXUleC1G20YtDxMf5Cq0Jbz0pwhVpod2kgEn_W6akCQ== test.com https 1057 0.238 - TLSv1.3 TLS_AES_128_GCM_SHA256 Miss HTTP/2.0 - - 4203 0.238 Miss application/json;charset=UTF-8 - - -", | ||
"aws.kinesis.type": "deliverystream", | ||
"data_stream.type": "logs", | ||
"aws.firehose.request_id": "971ae05f-a128-4a7f-b623-30f9bc513e55", | ||
"cloud.provider": "aws", | ||
"@timestamp": "2023-07-25T21:04:35Z", | ||
"cloud.account.id": "123456", | ||
"data_stream.dataset": "awsfirehose", | ||
"aws.kinesis.name": "firehose-cloudfront-logs-to-elastic", | ||
"event.id": "37670326805251200781477669690942747782212394134076063744" | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
94 changes: 47 additions & 47 deletions
94
packages/awsfirehose/data_stream/logs/_dev/test/pipeline/test-elb-log.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,49 +1,49 @@ | ||
{ | ||
"events": [ | ||
{ | ||
"cloud.region": "us-east-1", | ||
"aws.firehose.arn": "arn:aws:firehose:us-east-2:123456:deliverystream/firehose-classic-load-balancer-logs-to-elastic", | ||
"data_stream.namespace": "default", | ||
"message": "2015-05-13T23:39:43.945958Z my-loadbalancer 192.168.131.39:2817 10.0.0.1:80 0.000073 0.001048 0.000057 200 200 0 29 \"GET http://www.example.com:80/ HTTP/1.1\" \"curl/7.38.0\" - -", | ||
"aws.kinesis.type": "deliverystream", | ||
"data_stream.type": "logs", | ||
"aws.firehose.request_id": "971ae05f-a128-4a7f-b623-30f9bc513e55", | ||
"cloud.provider": "aws", | ||
"@timestamp": "2023-07-25T21:04:35Z", | ||
"cloud.account.id": "123456", | ||
"data_stream.dataset": "awsfirehose", | ||
"aws.kinesis.name": "firehose-classic-load-balancer-logs-to-elastic", | ||
"event.id": "37670326805251200781477669690942747782212394134076063744" | ||
}, | ||
{ | ||
"cloud.region": "us-east-1", | ||
"aws.firehose.arn": "arn:aws:firehose:us-east-2:123456:deliverystream/firehose-application-load-balancer-logs-to-elastic", | ||
"data_stream.namespace": "default", | ||
"message": "http 2018-07-02T22:23:00.186641Z app/my-loadbalancer/50dc6c495c0c9188 192.168.131.39:2817 10.0.0.1:80 0.000 0.001 0.000 200 200 34 366 \"GET http://www.example.com:80/ HTTP/1.1\" \"curl/7.46.0\" - - arn:aws:elasticloadbalancing:us-east-2:123456789012:targetgroup/my-targets/73e2d6bc24d8a067 \"Root=1-58337262-36d228ad5d99923122bbe354\" \"-\" \"-\" 0 2018-07-02T22:22:48.364000Z \"forward\" \"-\" \"-\" \"10.0.0.1:80\" \"200\" \"-\" \"-\"", | ||
"aws.kinesis.type": "deliverystream", | ||
"data_stream.type": "logs", | ||
"aws.firehose.request_id": "971ae05f-a128-4a7f-b623-30f9bc513e55", | ||
"cloud.provider": "aws", | ||
"@timestamp": "2023-07-25T21:04:35Z", | ||
"cloud.account.id": "123456", | ||
"data_stream.dataset": "awsfirehose", | ||
"aws.kinesis.name": "firehose-application-load-balancer-logs-to-elastic", | ||
"event.id": "37670326805251200781477669690942747782212394134076063744" | ||
}, | ||
{ | ||
"cloud.region": "us-east-1", | ||
"aws.firehose.arn": "arn:aws:firehose:us-east-2:123456:deliverystream/firehose-network-load-balancer-logs-to-elastic", | ||
"data_stream.namespace": "default", | ||
"message": "tls 2.0 2018-12-20T02:59:40 net/my-network-loadbalancer/c6e77e28c25b2234 g3d4b5e8bb8464cd 72.21.218.154:51341 172.100.100.185:443 5 2 98 246 - arn:aws:acm:us-east-2:671290407336:certificate/2a108f19-aded-46b0-8493-c63eb1ef4a99 - ECDHE-RSA-AES128-SHA tlsv12 - my-network-loadbalancer-c6e77e28c25b2234.elb.us-east-2.amazonaws.com - - - 2018-12-20T02:59:30", | ||
"aws.kinesis.type": "deliverystream", | ||
"data_stream.type": "logs", | ||
"aws.firehose.request_id": "971ae05f-a128-4a7f-b623-30f9bc513e55", | ||
"cloud.provider": "aws", | ||
"@timestamp": "2023-07-25T21:04:35Z", | ||
"cloud.account.id": "123456", | ||
"data_stream.dataset": "awsfirehose", | ||
"aws.kinesis.name": "firehose-network-load-balancer-logs-to-elastic", | ||
"event.id": "37670326805251200781477669690942747782212394134076063744" | ||
} | ||
] | ||
"events": [ | ||
{ | ||
"cloud.region": "us-east-1", | ||
"aws.firehose.arn": "arn:aws:firehose:us-east-2:123456:deliverystream/firehose-classic-load-balancer-logs-to-elastic", | ||
"data_stream.namespace": "default", | ||
"message": "2015-05-13T23:39:43.945958Z my-loadbalancer 192.168.131.39:2817 10.0.0.1:80 0.000073 0.001048 0.000057 200 200 0 29 \"GET http://www.example.com:80/ HTTP/1.1\" \"curl/7.38.0\" - -", | ||
"aws.kinesis.type": "deliverystream", | ||
"data_stream.type": "logs", | ||
"aws.firehose.request_id": "971ae05f-a128-4a7f-b623-30f9bc513e55", | ||
"cloud.provider": "aws", | ||
"@timestamp": "2023-07-25T21:04:35Z", | ||
"cloud.account.id": "123456", | ||
"data_stream.dataset": "awsfirehose", | ||
"aws.kinesis.name": "firehose-classic-load-balancer-logs-to-elastic", | ||
"event.id": "37670326805251200781477669690942747782212394134076063744" | ||
}, | ||
{ | ||
"cloud.region": "us-east-1", | ||
"aws.firehose.arn": "arn:aws:firehose:us-east-2:123456:deliverystream/firehose-application-load-balancer-logs-to-elastic", | ||
"data_stream.namespace": "default", | ||
"message": "http 2018-07-02T22:23:00.186641Z app/my-loadbalancer/50dc6c495c0c9188 192.168.131.39:2817 10.0.0.1:80 0.000 0.001 0.000 200 200 34 366 \"GET http://www.example.com:80/ HTTP/1.1\" \"curl/7.46.0\" - - arn:aws:elasticloadbalancing:us-east-2:123456789012:targetgroup/my-targets/73e2d6bc24d8a067 \"Root=1-58337262-36d228ad5d99923122bbe354\" \"-\" \"-\" 0 2018-07-02T22:22:48.364000Z \"forward\" \"-\" \"-\" \"10.0.0.1:80\" \"200\" \"-\" \"-\"", | ||
"aws.kinesis.type": "deliverystream", | ||
"data_stream.type": "logs", | ||
"aws.firehose.request_id": "971ae05f-a128-4a7f-b623-30f9bc513e55", | ||
"cloud.provider": "aws", | ||
"@timestamp": "2023-07-25T21:04:35Z", | ||
"cloud.account.id": "123456", | ||
"data_stream.dataset": "awsfirehose", | ||
"aws.kinesis.name": "firehose-application-load-balancer-logs-to-elastic", | ||
"event.id": "37670326805251200781477669690942747782212394134076063744" | ||
}, | ||
{ | ||
"cloud.region": "us-east-1", | ||
"aws.firehose.arn": "arn:aws:firehose:us-east-2:123456:deliverystream/firehose-network-load-balancer-logs-to-elastic", | ||
"data_stream.namespace": "default", | ||
"message": "tls 2.0 2018-12-20T02:59:40 net/my-network-loadbalancer/c6e77e28c25b2234 g3d4b5e8bb8464cd 72.21.218.154:51341 172.100.100.185:443 5 2 98 246 - arn:aws:acm:us-east-2:671290407336:certificate/2a108f19-aded-46b0-8493-c63eb1ef4a99 - ECDHE-RSA-AES128-SHA tlsv12 - my-network-loadbalancer-c6e77e28c25b2234.elb.us-east-2.amazonaws.com - - - 2018-12-20T02:59:30", | ||
"aws.kinesis.type": "deliverystream", | ||
"data_stream.type": "logs", | ||
"aws.firehose.request_id": "971ae05f-a128-4a7f-b623-30f9bc513e55", | ||
"cloud.provider": "aws", | ||
"@timestamp": "2023-07-25T21:04:35Z", | ||
"cloud.account.id": "123456", | ||
"data_stream.dataset": "awsfirehose", | ||
"aws.kinesis.name": "firehose-network-load-balancer-logs-to-elastic", | ||
"event.id": "37670326805251200781477669690942747782212394134076063744" | ||
} | ||
] | ||
} |
Oops, something went wrong.