| Field | Type | Description |
|---|---|---|
| content | string | The raw log file content as string. Maximum length is 10MiB and 25k lines, will be shortened if necessary. |
curl -X POST --data-urlencode 'content@path/to/latest.log' 'https://api.mclogs.novacloud-hosting.com/1/log'
{
"success": true,
"id": "8FlTowW",
"url": "https://mclogs.novacloud-hosting.com/8FlTowW",
"raw": "https://api.mclogs.novacloud-hosting.com/1/raw/8FlTowW"
}
{
"success": false,
"error": "Required POST argument 'content' is empty."
}
| Field | Type | Description |
|---|---|---|
| [id] | string | The log file id, received from the paste endpoint or from a URL (https://mclogs.novacloud-hosting.com/[id]). |
[18:25:33] [Server thread/INFO]: Starting minecraft server version 1.16.2 [18:25:33] [Server thread/INFO]: Loading properties [18:25:34] [Server thread/INFO]: Default game type: SURVIVAL ...
{
"success": false,
"error": "Log not found."
}
| Field | Type | Description |
|---|---|---|
| [id] | string | The log file id, received from the paste endpoint or from a URL (https://mclogs.novacloud-hosting.com/[id]). |
{
"id": "name/type",
"name": "Software name, e.g. Vanilla",
"type": "Type name, e.g. Server Log",
"version": "Version, e.g. 1.12.2",
"title": "Combined title, e.g. Vanilla 1.12.2 Server Log",
"analysis": {
"problems": [
{
"message": "A message explaining the problem.",
"counter": 1,
"entry": {
"level": 6,
"time": null,
"prefix": "The prefix of this entry, usually the part containing time and loglevel.",
"lines": [
{
"number": 1,
"content": "The full content of the line."
}
]
},
"solutions": [
{
"message": "A message explaining a possible solution."
}
]
}
],
"information": [
{
"message": "Label: value",
"counter": 1,
"label": "The label of this information, e.g. Minecraft version",
"value": "The value of this information, e.g. 1.12.2",
"entry": {
"level": 6,
"time": null,
"prefix": "The prefix of this entry, usually the part containing time and loglevel.",
"lines": [
{
"number": 6,
"content": "The full content of the line."
}
]
}
}
]
}
}
{
"success": false,
"error": "Log not found."
}
| Field | Type | Description |
|---|---|---|
| content | string | The raw log file content as string. Maximum length is 10MiB and 25k lines, will be shortened if necessary. |
{
"id": "name/type",
"name": "Software name, e.g. Vanilla",
"type": "Type name, e.g. Server Log",
"version": "Version, e.g. 1.12.2",
"title": "Combined title, e.g. Vanilla 1.12.2 Server Log",
"analysis": {
"problems": [
{
"message": "A message explaining the problem.",
"counter": 1,
"entry": {
"level": 6,
"time": null,
"prefix": "The prefix of this entry, usually the part containing time and loglevel.",
"lines": [
{
"number": 1,
"content": "The full content of the line."
}
]
},
"solutions": [
{
"message": "A message explaining a possible solution."
}
]
}
],
"information": [
{
"message": "Label: value",
"counter": 1,
"label": "The label of this information, e.g. Minecraft version",
"value": "The value of this information, e.g. 1.12.2",
"entry": {
"level": 6,
"time": null,
"prefix": "The prefix of this entry, usually the part containing time and loglevel.",
"lines": [
{
"number": 6,
"content": "The full content of the line."
}
]
}
}
]
}
}
{
"success": false,
"error": "Required POST argument 'content' is empty."
}
{
"storageTime": 7776000,
"maxLength": 10485760,
"maxLines": 25000
}
| Field | Type | Description |
|---|---|---|
| storageTime | integer | The duration in seconds that a log is stored for after the last view. |
| maxLength | integer | Maximum file length in bytes. Logs over this limit will be truncated to this length. |
| maxLines | integer | Maximum number of lines. Additional lines will be removed. |