Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
rahu8037
Contributor
Contributor

How to see historical running log from QlikSense server

Hi All,

How to fetch the Log file for a particular app from QlikSense Server.

I went C:\Share\Archived Logs\Server Name\Script that path, but found only last run log(suppose 07/13/2020).

If  I want to fetch a log dated 07/09/2020, then what is the location of this(I have an app id).

 

Thanks,

Rahul

Labels (2)
1 Reply
BTIZAG_OA
Creator
Creator

Hello you can try this

 

//Particular app id that you want to search in logs

set appid = 'xxxx-xxx....'; 

 

//change date to satisfy your needs

let date = date(date#('07/09/2020','DD/MM/YYYY'),'YYYYMMDD');

 

// Add every nodename that may be execute apps in your environment.

//Add names as they appear in ArchivedLogsFolder connection (FQDN)

 

// add more here with "," if your cluster have more nodes

 for each node in 'Servername1','Servername2'

 

 

set errormode=0; //in case if your app not ran on that specific node

Log:

LOAD
@1
FROM [lib://ArchivedLogsFolder/$(node)/Script/$(appid).$(date)*.log]
(txt, utf8, no labels, delimiter is '\t', msq);

next node;

 

set errormode=1;