Skip to end of banner
Go to start of banner

Log API

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 9 Next »

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) info, warn, error 
  • 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:

ScenarioQuery
Return the log information for the given runtime IDGET https://elastic.snaplogic.com/api/1/rest/public/log/orgname?ruuid= <runtimeid>
Return only 100 logs for the given runtime IDGET https://elastic.snaplogic.com/api/1/rest/public/log/orgname?ruuid= <runtimeid>&limit=100
  • No labels