Qlik Community

Qlik Sense Integration, Extensions, & APIs

Discussion board where members can learn more about Integration, Extensions and API’s for Qlik Sense.

Highlighted
Partner
Partner

Download LOG file using QRS API

Hi All,

I am trying to figure out a way to be able to download the log file using the REST API.

I able to locate the file using the API endpoint FileReference. However, i am not able to figure out a way to be able to download the file as  a result of the API call.

here is what i am using 

REST call:  <servername>/qrs/filereference/<filereference_id>

Response:

id                 : fd8ad364-109b-4924-adfa-7ae285bbf00d
createdDate        : 2019-03-05T10:38:35.354Z
modifiedDate       : 2019-03-05T10:38:35.354Z
modifiedByUserName : INTERNAL\sa_scheduler
location           : myserver\Script\40ab5878-2164-4275-bbe0-0824fa04e040.2019_03_05_10_19_11.B5B796AD93CF2FFCEC06.log
size               : 309341
hash               : flG4jmMasEaHO7OJiV9Nxbw==
syncDirection      : 1
fileType           : 1
privileges         : 
schemaPath         : FileReference

 

As you can see, i have the log file name and the path under the location key.

Can someone help me figure out how to download the file.

 

Thanks,

Aadil

1 Solution

Accepted Solutions
Employee
Employee

Re: Download LOG file using QRS API

GET /qrs/ReloadTask/{ReloadTaskID}
Response:
You need the "operational"."fileReferenceID"
GET /qrs/ReloadTask/{ReloadTaskID}/scriptlog?fileReferenceId={fileReferenceID}
Example Response:
{
"value": "99ceba11-8ca5-4b0b-ba3d-e08fc8643863"
}
GET /qrs/download/reloadtask/{ID from previous call}/{ArbitraryFileName.FileExt}
1 Reply
Employee
Employee

Re: Download LOG file using QRS API

GET /qrs/ReloadTask/{ReloadTaskID}
Response:
You need the "operational"."fileReferenceID"
GET /qrs/ReloadTask/{ReloadTaskID}/scriptlog?fileReferenceId={fileReferenceID}
Example Response:
{
"value": "99ceba11-8ca5-4b0b-ba3d-e08fc8643863"
}
GET /qrs/download/reloadtask/{ID from previous call}/{ArbitraryFileName.FileExt}