latestOpenAPI 3.0.02026-08-2045003.8 MB
72813baf8d47
Elastigroup AWS
Get Elastilog
You can fetch a group's (Elastigroup/Ocean/Stateful Node) elastilog via the Spot API, in order to be able to consume elastilog from various tools used for log storing and analyzing. Logs have retention of 3 months back, so minimal fromDate should be up to 3 months back at runtime.
get/aws/ec2/group/{groupId}/logs
Query parameters
fromDatestring required
Epoch number that represents the date from which to collect the log (millisecond format)
toDatestring required
Epoch number that represents the date until which log is collected (millisecond format)
severitystring
Severity of log entries to extract. Valid Values: ALL, INFO,DEBUG,WARN. Default: ALL
resourceIdstring
Filter extracted log entries for a specific resource id. Default: Null
limitstring
Maximum number of lines to extract in a response. Max value allowed - 1000. Default: 500
Parameters
#/paths/~1aws~1ec2~1group~1%7BgroupId%7D/put/parameters/0 — unresolved $ref
#/paths/~1azure~1costs/get/parameters/0 — unresolved $ref
Response
Successful Response
Example response
{
"request": {
"id": "46642c7d-bc29-417d-8ce4-79626f00c63c",
"url": "/aws/ec2/group/sig-123456/logs",
"method": "GET",
"timestamp": "2018-11-19T13:49:11.911Z"
},
"response": {
"status": {
"code": 200,
"message": "OK"
},
"kind": "spotinst:aws:ec2:group:log",
"count": 2
}
}