-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #582 from nasa/release-1.5.0
Release 1.5.0
- Loading branch information
Showing
49 changed files
with
2,094 additions
and
1,837 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
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
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 |
---|---|---|
@@ -0,0 +1,89 @@ | ||
'use strict'; | ||
|
||
export const apiGatewaySearchTemplate = (prefix, startTimeEpochMilli, endTimeEpochMilli) => `{ | ||
"aggs": { | ||
"2": { | ||
"filters": { | ||
"filters": { | ||
"ApiExecutionErrors": { | ||
"query_string": { | ||
"query": "+\\"Method completed with status:\\" +(4?? 5??)", | ||
"analyze_wildcard": true, | ||
"default_field": "*" | ||
} | ||
}, | ||
"ApiExecutionSuccesses": { | ||
"query_string": { | ||
"query": "+\\"Method completed with status:\\" +(2?? 3??)", | ||
"analyze_wildcard": true, | ||
"default_field": "*" | ||
} | ||
}, | ||
"ApiAccessErrors": { | ||
"query_string": { | ||
"query": "status:[400 TO 599]", | ||
"analyze_wildcard": true, | ||
"default_field": "*" | ||
} | ||
}, | ||
"ApiAccessSuccesses": { | ||
"query_string": { | ||
"query": "status:[200 TO 399]", | ||
"analyze_wildcard": true, | ||
"default_field": "*" | ||
} | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
"size": 0, | ||
"_source": { | ||
"excludes": [] | ||
}, | ||
"stored_fields": [ | ||
"*" | ||
], | ||
"script_fields": {}, | ||
"docvalue_fields": [ | ||
{ | ||
"field": "@timestamp", | ||
"format": "date_time" | ||
} | ||
], | ||
"query": { | ||
"bool": { | ||
"must": [ | ||
{ | ||
"match_all": {} | ||
}, | ||
{ | ||
"range": { | ||
"@timestamp": { | ||
"gte": ${startTimeEpochMilli}, | ||
"lte": ${endTimeEpochMilli}, | ||
"format": "epoch_millis" | ||
} | ||
} | ||
}, | ||
{ | ||
"match_phrase": { | ||
"_index": { | ||
"query": "${prefix}-cloudwatch*" | ||
} | ||
} | ||
}, | ||
{ | ||
"match_phrase": { | ||
"logGroup": { | ||
"query": "\\"API\\\\-Gateway\\\\-Execution*\\"" | ||
} | ||
} | ||
} | ||
], | ||
"filter": [], | ||
"should": [], | ||
"must_not": [] | ||
} | ||
} | ||
}`; |
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 |
---|---|---|
@@ -0,0 +1,75 @@ | ||
'use strict'; | ||
|
||
export const apiLambdaSearchTemplate = (prefix, startTimeEpochMilli, endTimeEpochMilli) => `{ | ||
"aggs": { | ||
"2": { | ||
"filters": { | ||
"filters": { | ||
"LambdaAPIErrors": { | ||
"query_string": { | ||
"query": "message:(+GET +HTTP +(4?? 5??) -(200 307))", | ||
"analyze_wildcard": true, | ||
"default_field": "*" | ||
} | ||
}, | ||
"LambdaAPISuccesses": { | ||
"query_string": { | ||
"query": "message:(+GET +HTTP +(2?? 3??))", | ||
"analyze_wildcard": true, | ||
"default_field": "*" | ||
} | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
"size": 0, | ||
"_source": { | ||
"excludes": [] | ||
}, | ||
"stored_fields": [ | ||
"*" | ||
], | ||
"script_fields": {}, | ||
"docvalue_fields": [ | ||
{ | ||
"field": "@timestamp", | ||
"format": "date_time" | ||
} | ||
], | ||
"query": { | ||
"bool": { | ||
"must": [ | ||
{ | ||
"match_all": {} | ||
}, | ||
{ | ||
"range": { | ||
"@timestamp": { | ||
"gte": ${startTimeEpochMilli}, | ||
"lte": ${endTimeEpochMilli}, | ||
"format": "epoch_millis" | ||
} | ||
} | ||
}, | ||
{ | ||
"match_phrase": { | ||
"_index": { | ||
"query": "${prefix}-cloudwatch*" | ||
} | ||
} | ||
}, | ||
{ | ||
"match_phrase": { | ||
"logGroup": { | ||
"query": "/aws/lambda/${prefix}-ApiDistribution" | ||
} | ||
} | ||
} | ||
], | ||
"filter": [], | ||
"should": [], | ||
"must_not": [] | ||
} | ||
} | ||
}`; |
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 |
---|---|---|
@@ -0,0 +1,75 @@ | ||
'use strict'; | ||
|
||
export const s3AccessSearchTemplate = (prefix, startTimeEpochMilli, endTimeEpochMilli) => `{ | ||
"aggs": { | ||
"2": { | ||
"filters": { | ||
"filters": { | ||
"s3AccessSuccesses": { | ||
"query_string": { | ||
"query": "response:200", | ||
"analyze_wildcard": true, | ||
"default_field": "*" | ||
} | ||
}, | ||
"s3AccessFailures": { | ||
"query_string": { | ||
"query": "NOT response:200", | ||
"analyze_wildcard": true, | ||
"default_field": "*" | ||
} | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
"size": 0, | ||
"_source": { | ||
"excludes": [] | ||
}, | ||
"stored_fields": [ | ||
"*" | ||
], | ||
"script_fields": {}, | ||
"docvalue_fields": [ | ||
{ | ||
"field": "@timestamp", | ||
"format": "date_time" | ||
} | ||
], | ||
"query": { | ||
"bool": { | ||
"must": [ | ||
{ | ||
"match_all": {} | ||
}, | ||
{ | ||
"range": { | ||
"@timestamp": { | ||
"gte": ${startTimeEpochMilli}, | ||
"lte": ${endTimeEpochMilli}, | ||
"format": "epoch_millis" | ||
} | ||
} | ||
}, | ||
{ | ||
"match_phrase": { | ||
"_index": { | ||
"query": "${prefix}-s3*" | ||
} | ||
} | ||
}, | ||
{ | ||
"match_phrase": { | ||
"operation": { | ||
"query": "REST.GET.OBJECT" | ||
} | ||
} | ||
} | ||
], | ||
"filter": [], | ||
"should": [], | ||
"must_not": [] | ||
} | ||
} | ||
}`; |
Oops, something went wrong.