Upload an external mapping file to Logz.io storage.
POST/v1/sawmill/external-mapping/upload
Uploads an external mapping file in .properties
format to Logz.io storage. This file can be used later by Sawmill ExternalMappingSourceProcessor. This feature is not available by default. To enable it, contact Logz.io support. 10 files can be uploaded per account. The file size is limited to 50 MB.
Please ensure to change the region in the URL to match your account's region.
Request
- multipart/form-data
Body
file binary[]
Responses
- 201
- 400
- 422
successful operation
- application/json
- Schema
- Example (from schema)
Schema
result string
Successfully updated external mapping
{
"result": "Successfully updated external mapping"
}
bad request
- application/json
- Schema
- Example (from schema)
Schema
errorCode string
message string
requestId string
parameters object
currentLimit integer
{
"errorCode": "FILE_RESTRICTIONS/EXTERNAL_MAPPINGS_LIMIT_REACHED",
"message": "Failed to upload external mapping. Exceeded allowed amount of mapping files per account - 10. Please Contact Support to delete old mappings.",
"requestId": "string",
"parameters": {
"currentLimit": 10
}
}
validation error
- application/json
- Schema
- Example (from schema)
Schema
result string
Failed to update external mapping
{
"result": "Failed to update external mapping"
}
Loading...