This command lists all of the logs available on an appliance. Each log returns the number of entries in the log and a time stamp of the last entry.
Example Request:
GET /api/log/v1/logs HTTP/1.1 Authorization: Basic ab6rt4psMWE= Host: zfs-storage.example.com:215 Accept: application/json
Example Results:
HTTP/1.1 200 OK X-Zfssa-Appliance-Api: 1.0 Content-Type: application/json Content-Length: 532 X-Zfssa-Api: 1.0 { "logs": [ { "href": "/api/log/v1/logs/fault", "name": "faults", "size": 16, "updated": "20130614T22:51:48" }, { "href": "/api/log/v1/logs/audit", "name": "audits", "size": 460149, "updated": "20130730T22:10:41" }, { "href": "/api/log/v1/logs/alert", "name": "alerts", "size": 13054, "updated": "20130728T00:06:10" }, { "href": "/api/log/v1/logs/phone-home", "name": "phone-home", "size": 249, "updated": "20130730T03:22:35" }, { "href": "/api/log/v1/logs/system", "name": "system", "size": 344, "updated": "20130724T03:21:55" } ] }