Ingesting Custom Logs
Use the PutLogs Logging Ingestion API operation to ingest custom logs directly.
For information about using the API and signing requests, see REST API documentation and Security Credentials. For information about SDKs, see SDKs and the CLI.
The following is a sample log entry payload that can be used with PutLogs:
{
"specversion":"1.0",
"logEntryBatches":[
{
"entries":[
{
"data":"Random test",
"id":"sha123",
"time":"2020-11-25T21:10:29.600Z"
}
],
"source":"hostname",
"type":"sampleType",
"subject":"/var/application.log",
"defaultlogentrytime":"2020-11-25T21:10:29.600Z"
}
]
}