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.
Query parameters
Epoch number that represents the date from which to collect the log (millisecond format)
Epoch number that represents the date until which log is collected (millisecond format)
Severity of log entries to extract. Valid Values: ALL, INFO,DEBUG,WARN. Default: ALL
Filter extracted log entries for a specific resource id. Default: Null
Maximum number of lines to extract in a response. Max value allowed - 1000. Default: 500
Parameters
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
}
}Changes
No recorded changes to this endpoint across all 4 revisions of this API.