Log API
GET /api/1/rest/public/log/<orgname>?
Returns pipeline log information for the specified organization.
Parameters
ruuid: (required) string - the pipeline runtime ID
log_level: (optional) string - the level of log
Default: info
Level options: (case insensitive) listed by priority
error: returns only error level logs.
warn: returns both warn and error level logs.
info: returns all info, warn, and error level logs.
limit: sets a limit on the number of logs returned in the response.
Default: 100
Minimum: 0
Maximum: 10,000
Response
{
"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
}
Examples
Get Pipeline Log Information
The following queries return information about the specified pipeline runtime:
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 |
Have feedback? Email documentation@snaplogic.com | Ask a question in the SnapLogic Community
© 2017-2024 SnapLogic, Inc.