Retrieve a session log
get/sessions/{sessionId}/log
Retrieves the log output associated with a session. This operation returns a collection in which each entry is of the type application/vnd.sas.compute.log.line.
1{2 "links": [3 {4 "method": "GET",5 "rel": "self",6 "href": "/compute/sessions/912e75cb-3e8c-4466-a330-70742325cf71-ses0000/log?start=0&limit=42",7 "uri": "/compute/sessions/912e75cb-3e8c-4466-a330-70742325cf71-ses0000/log?start=0&limit=42",8 "type": "application/vnd.sas.collection",9 "itemType": "application/vnd.sas.compute.log.line"10 },11 {12 "method": "GET",13 "rel": "collection",14 "href": "/compute/sessions/912e75cb-3e8c-4466-a330-70742325cf71-ses0000/log",15 "uri": "/compute/sessions/912e75cb-3e8c-4466-a330-70742325cf71-ses0000/log",16 "type": "application/vnd.sas.collection",17 "itemType": "application/vnd.sas.compute.log.line"18 }19 ],20 "name": "Session Log",21 "accept": "application/vnd.sas.compute.log.line",22 "start": 0,23 "count": 42,24 "items": [25 {26 "line": "11 The SAS System 15:26 Friday, May 20, 2016",27 "type": "title"28 },29 {30 "line": " ",31 "type": "title"32 },33 {34 "line": " NOTE: Copyright (c) 2016 by SAS Institute Inc., Cary, NC, USA. ",35 "type": "note"36 },37 {38 "line": " NOTE: SAS (r) Proprietary Software V.03.00 (TS03.00M0D05192016 MBCS3280) ",39 "type": "note"40 },41 {42 "line": " Licensed to SAS Institute Inc., Site 1.",43 "type": "note"44 },45 {46 "line": " NOTE: This session is executing on the Linux 2.6.32-573.el6.x86_64 (LIN X64) platform.",47 "type": "note"48 },49 {50 "line": " ",51 "type": "normal"52 },53 {54 "line": " ",55 "type": "normal"56 },57 {58 "line": " ",59 "type": "normal"60 },61 {62 "line": " NOTE: Updated analytical products:",63 "type": "note"64 },65 {66 "line": " ",67 "type": "note"68 },69 {70 "line": " SAS/STAT 14.1",71 "type": "note"72 },73 {74 "line": " SAS/ETS 14.1",75 "type": "note"76 },77 {78 "line": " SAS/OR 14.1",79 "type": "note"80 },81 {82 "line": " SAS/IML 14.1",83 "type": "note"84 },85 {86 "line": " SAS/QC 14.1",87 "type": "note"88 },89 {90 "line": " ",91 "type": "note"92 },93 {94 "line": " NOTE: Additional host information:",95 "type": "note"96 },97 {98 "line": " ",99 "type": "note"100 },101 {102 "line": " Linux LIN X64 2.6.32-573.el6.x86_64 #1 SMP Wed Jul 1 18:23:37 EDT 2015 x86_64 Red Hat Enterprise Linux Server release 6.7 ",103 "type": "note"104 },105 {106 "line": " (Santiago) ",107 "type": "note"108 },109 {110 "line": " ",111 "type": "note"112 },113 {114 "line": " NOTE: SAS initialization used:",115 "type": "note"116 },117 {118 "line": " real time 2.24 seconds",119 "type": "note"120 },121 {122 "line": " cpu time 0.19 seconds",123 "type": "note"124 },125 {126 "line": " ",127 "type": "note"128 },129 {130 "line": " 1 ods html style=barrettsblue;",131 "type": "source"132 },133 {134 "line": " NOTE: Writing HTML Body file: sashtml.htm",135 "type": "note"136 },137 {138 "line": " 2 data test;x=3;run;",139 "type": "source"140 },141 {142 "line": " NOTE: The data set WORK.TEST has 1 observations and 1 variables.",143 "type": "note"144 },145 {146 "line": " NOTE: DATA statement used (Total process time):",147 "type": "note"148 },149 {150 "line": " real time 0.78 seconds",151 "type": "note"152 },153 {154 "line": " cpu time 0.03 seconds",155 "type": "note"156 },157 {158 "line": " ",159 "type": "note"160 },161 {162 "line": " 2 ! proc print data=test;quit;",163 "type": "source"164 },165 {166 "line": " NOTE: There were 1 observations read from the data set WORK.TEST.",167 "type": "note"168 },169 {170 "line": " NOTE: The PROCEDURE PRINT printed page 1.",171 "type": "note"172 },173 {174 "line": " NOTE: PROCEDURE PRINT used (Total process time):",175 "type": "note"176 },177 {178 "line": " real time 0.18 seconds",179 "type": "note"180 },181 {182 "line": " cpu time 0.11 seconds",183 "type": "note"184 },185 {186 "line": " ",187 "type": "note"188 },189 {190 "line": " 3 ods html close;",191 "type": "source"192 }193 ],194 "limit": 42,195 "version": 2196}
Name | Type | Required | Description |
---|---|---|---|
limit | integer<int32> | false | Specifies the number of items in this page. Default: 100 |
start | integer<int64> | false | Specifies the offset of the first item in the collection. The first line is at start=0. |
timeout | integer | false | Specifies the request time-out in seconds. |
type | string | false | Restricts the log collection to those entries whose type matches the query. Specify multiple types by separating them with a '|'. For example, you might specify ?type=error or ?type=error|warning. |
Status | Meaning | Description | ||
---|---|---|---|---|
200 | OK | The request succeeded. | Headers | Schema |
400 | Bad Request | The request was invalid. | Schema | |
404 | Not Found | No resource exists at the requested path. | Schema |