GET /api/1/rest/
...
public/log/
...
<orgname>?
Return Returns pipeline log information for the specified organization; ruuid is required.
Parameters
- ruuid: - (required) string - the pipeline runtime idID
- log_level: (optional) string - string - the level of log
- Default: info
- Level options: (case insensitive) info, warn, error and etc. (case insensitive)error
- limit: sets a limit on the number of logs returned in the response.
- Default: 100
- Minimum: 0
- Maximum: 10,000
Response
Code Block | ||
---|---|---|
| ||
{ "response_map": { "entries": [ "sort": [ 1426204801625 ], "_type": "sldb", "_source": { "prc": "FSHandler", "tags": [ "sldb" ], "type": "sldb", "@timestamp": "2015-03-13T00:00:05.254Z", "ts": "2015-03-13T00:00:01.625514Z", "host": "canxl-sldb2.fullsail.snaplogic.com", "lvl": "INFO", "msg": "user@snaplogic.com put file Snaplogic-Test/projects/sltemp/asset.json", "fi": "fs_handler.py:139", "path": "/opt/snaplogic/run/log/sldb_main.json", "@version": "1" }, "_score": null, "_index": "Snaplogic_v1", "_id": "T_f83xUSQ-WgahOpOVMyhQ" }, ...], "total": 32747809, "limit": 10, "offset": 0 }, "http_status_code": 200 } |
...
Scenario | Query |
---|---|
Return the log information for the given runtime ID | GET https://elastic.snaplogic.com/api/1/rest/public/log/orgname?ruuid= <runtimeid> |
Return only 100 logs for the given runtime ID | GET https://elastic.snaplogic.com/api/1/rest/public/log/orgname?ruuid= <runtimeid>&limit=100 |