Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Discover how organizations are unlocking new revenue streams: Watch here
cancel
Showing results for 
Search instead for 
Did you mean: 
MindaugasBacius
Partner - Specialist III
Partner - Specialist III

CMD. Log file

Hello,

I have written the .cmd file which runs and saves the Qlikview application.

"C:\Program Files (x86)\QlikView\Qv.exe" /R "C:\Users\Mindaugasb\Desktop\Temperature.qvw"

But I am willing to get the log file as well.

What is command to accomplish this?

Thank you!

11 Replies
maxgro
MVP
MVP

if you want a dos log maybe a batch file with

DATE /T >A.LOG

cmd.exe /c  >>A.LOG ""C:\Program Files\QlikView\Qv.exe" /R "C:\Users\mgrossi\Downloads\a cmd.qvw"" 

DATE /T >>A.LOG

if you want the QlikView document log enable in

Menù  --> Settings --> Document Properties --> General --> Generate Logfile

HirisH_V7
Master
Master

Hi,

In the .qvw: Settings > Document Settings - check the 'Generate Logfile' checkbox, a log file will now be created in the same folder as the .qvw.

  • You can also set server logging via teh Mgmt Console: Qlikview Server Settings > Logging.

  You will find the reload logs under following folder.

     If you have Windows Server 2003

          C:\Documents and Settings\All Users\Application Data\QlikTech\DistributionService\

     If you have Widows Server 2008

          C:\Programdata\QlikTech\DistributionService\



hope this helps,

Hirish

HirisH
MindaugasBacius
Partner - Specialist III
Partner - Specialist III
Author

It's not perfectly what I am looking for.

I want to get the log file only when I do reload the application by using .cmd file. Now it seems that the log file appears even when the application is reloaded manually.

Thank you!

MindaugasBacius
Partner - Specialist III
Partner - Specialist III
Author

Could you make my clear what needs to be added to my batch file?

Now the .cmd file contain this line:

"C:\Program Files (x86)\QlikView\Qv.exe" /R "C:\Users\Mindaugasb\Desktop\Temperature.qvw"

It reloads and saves the script. Additionally, I want to get the log file but only when executing the .cmd file.


Thanks.

Not applicable

Hi,

Just enable the  "Generate Logfile " check box in the application document properties  General tab.So that for every application reload a log file will get generated automatically!!

maxgro
MVP
MVP

DOS log and QlikView logfile are different.

In the batch you can add a DOS log (start date of the batch, end date, etc, .....) but you can't enable/disable the logfile of QlikView script.

In QlikView menu you can enable/disable the QlikView logfile.

AFAIK you can only enable/disable the QlikView logfile with the flag in the menu of QlikView, so always enabled or always disabled until the next change in Qlik menu.

HirisH_V7
Master
Master

Hi,

You can see the log file for every reload You made over here,probably in

C:\Documents and Settings\All Users\Application Data\QlikTech\DistributionService\2\Log

there is a folder with a datestamp and in that there is one folder for every single reload of that day where you can still find your logs.

HTH,

Hirish

HirisH
MindaugasBacius
Partner - Specialist III
Partner - Specialist III
Author

In QV server, I have seen a practice when the log is called straight from .cmd info the folder the user sets.

The command line looks like this:

"c:\Program Files\QlikView\Distribution Service\QVDistributionService.exe" -r="c:\QVD\Axapta.qvw" -out="c:\log\Axapta.log"

This line in the .cmd file works great in the server but not in the computer.

Actually, I do not understand the difference between /R and -r= in the script. But in my computer -r command do not work, /R works as a charm. -out also do not work in my computer and I am looking how to call this function.

Any help would be appreciated.

Thank you!

Peter_Cammaert
Partner - Champion III
Partner - Champion III

Indeed, that's what will happen and what Massimo already explained in his second post. The log file generation is controlled by a switch in the QVW document. You cannot enable/disable that setting at random from outside the document.

Best,

Peter