Log API

This topic might be out-of-date and is replaced by the following:

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 { "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

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