Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Log qvw in e-mail

Greetings!

Can anyone tell me if you can send the log file to qvw email when an error occurs? I get an automated message with a brief description, but I would like to receive the log file ... as attachment or plain text in the body of the email, whatever.

Is this possible?

I appreciate any guidance!

Stive

7 Replies
fabienmd
Partner - Creator
Partner - Creator

Hi,

If you put [Log] in the alert email template, you will received the part of the log where there is an error. For example :

The task "[TaskName]" failed. Part of the log file follows:

[Log]

Not applicable
Author

Hello Fabien, thanks for listening!

I've received this message in my email. But "part of the log" does not contain exactly which line or command script that generated the fault. So I understand that it would be important to have this feature. Always read the message in my email and I do not see any information that effectively show the reason for the error in the script. But when I open the log file, it shows that at some point the execution failed.

Stive

fabienmd
Partner - Creator
Partner - Creator

Hi,

Oh, do you mean that you want the log of the .qvw and not the log from the task ?

I don't think this is possible, but I am not completely sure about it. May be someone else knows how.

dmohanty
Partner - Specialist
Partner - Specialist

Hi,

Two types of Logs:

Log from QMC Tasks

Log from QVW File

If you need the QVW Log File, there you can clearly see the errors. Just request the team whoever has the permission to reach out to Source Documents where the base QVW lies. There you can find the the Log Files and request them to send.

Not applicable
Author

DMohanty Hello, thank you for your attention!

As I described above, I have access to the log file. I wonder if you can get this file in the error message that arrives in the mail. It's a very specific need that I can not describe here with a few lines. Anyway someone might need it someday too. If you enable the option to put the date and time the log will have many log files and this is not what I want. For my problem I created a specific solution to save a copy of the log only when errors happen in another folder with date and time.

Anyone can access the address:

http://wandersonmarques.blogspot.com.br/2013/09/alterar-pasta-delogs-do-qvw-proposito.html

marcus_sommer

I think a possibility could be to extract the qvw from the task-log and use this as trigger for a vbs-batch which sending (per cdo.message - see examples here: http://community.qlik.com/search.jspa?q=mail+per+macro)  the load-log to you.

- Marcus

Not applicable
Author

Marcos,

Your suggestion is excellent. Already working with scripts sending emails. Just had to identify whether the error and call the vbs script that appends the log and send message to my email. Thank you for the suggestion. When do I put here.

Wanderson