Skip to main content
Announcements
Have questions about Qlik Connect? Join us live on April 10th, at 11 AM ET: SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
poppypearce
Creator
Creator

How to move all the document log files into Separate folder in Qlikview

Hi,

Currently document log is not enabled in our server. could any of you please suggest me how to enable document log file generation at the server level and to store all the log files inside separate folder, dont want to save in the same QVW folder.

i dont want to do this change inside each app, instead i want to do this change at the server level and configure the separate log folder path.

Please suggest.

Regards,

Poppy

8 Replies
Gysbert_Wassenaar

Afaik you can only set the Generate Logfile option in the document properties. And the log file will be saved in the same place as the .qvw file that generates it. If you want the logs elsewhere then you need to create a windows script that moves those log files to whereever you want them. And rename those logfiles too if you have several qlikview documents with the same name. And of course if you check a log file and see that something went wrong you'll have to figure out where the relevant .qvw is stored again, because it's now in a different place then the log file.

In other words: bad idea, don't bother.


talk is cheap, supply exceeds demand
Colin-Albert

As gwassenaar‌ stated, you cannot set the Generate Logfile option at a server level.

What you can do though is set the User Preferences in Qlik Desktop to always use a logfile for new documenets, which is one of the first settings I change when installing the desktop.

Setting up the QlikView Desktop Environment

bnichol
Specialist
Specialist

I agree with the previous contributors about the setup and administration of log files.

Here are a couple of commands that we execute daily, in a batch file, to move the logs to a separate structure and maintain a months history there.

This command moves files that are over 24 hours old...

robocopy "C:\ProgramData\QlikTech\SourceDocuments" "C:\ProgramData\QlikTech\SourceDocumentsLogs" *.log /S /XX /NP /MOV /IS /MINAGE:1 /XD "*backup*" "*corrupt*"


This one deletes anything older than 31 days...

forfiles /p C:\ProgramData\QlikTech\SourceDocumentsLogs\ /s /m *.log /d -31 /c "cmd /c del @file| echo @FILE"


The only configuration needed is the establishment of a logs folder.  In this case I have called it "SourceDocumentLogs".

Hope this helps,

B

Colin-Albert

bnichol‌  Robocopy - an old utilty but a good (and powerful) one!

poppypearce
Creator
Creator
Author

Hi Brent,

Thanks a lot for your suggestions. i noticed that in qlikview 12 version we have "batchfile" folder where the logs will be written first later the logs will be moved to respective document folder, is there any option to disable the logs being written to respective document folder and to retain only in the "batchfile" folder. please suggest if anyone has any information on this.

Regards,

Poppy

poppypearce
Creator
Creator
Author

Also as i was going through the qlikview server & publisher book got to know that one copy of the document log file will be distributed to publisher log folder as per given path below along with the task log.

C:\ProgramData\QlikTech\DistributionService\1\Log

just wanted to know, will this document log be distributed to publisher log folder as mentioned above even though the "Generate Logfile" option is disabled in Document Properties. please suggest..

bnichol
Specialist
Specialist

Hi Poppy,

I could not able to identify a configuration setting to only write to the "batchfile" folder.  Perhaps someone else knows if this exists.

The only problem with your suggestion, it could lead to hundreds thousands of files in a single folder.  This could in turn lead to performance issues.  We've seen it happen when the EDXresults folder.

The benefit of the method I recommended earlier, is that only the current days logs are in the application folder, and a similar folder navigation is used for older files.

Regards,

B

bnichol
Specialist
Specialist

Hi Poppy,

If you uncheck the 'Generate Log' setting, then neither log file is generated...

1. "{ApllicationName}.qvw.log" in the (Application Folder)

2. "DocumentLog.txt" in the "\ProgramData\QlikTech\DistributionService\1\Log\{Date}\{Time}- {ApllicationName}" folder

Good idea for a configuration setting.   You might want to create an "idea" in the community, or see if someone has already submitted it... Ideas

Regards,

B