Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi,
Is there a verifiable solution for configuring task failure notifications/emails? I have seen a few posts about this in the past, but haven't come across anyone having success.
I asked this a couple of days ago and this was the response...
Seems not an out of the box solution and to utilise Qlik Branch solutions (see answers to my Question)
Appears to be a common request - hopefully added to a release soon
Barry
I have amended this http://www.johndaniel.com/index.php/qlik-sense-task-failure-notifications-solved/ to provide me a solution to a similar requirement.
Bill, do you have more information on this? What did you amend? did you use the same script in this link? I tried the script as a first step, and it did not work.
Monica
What kind of not work ?
Monica,
There is an out of the box solution for this! Re: Alerts in Qlik Sense
You can use the SMTPAppender to do this. The link above gives an example of how to implement this. I was able to configure this on both our test and production environments. And it works great.
Search the community or Qlik Help for SMTPAppender
Hi Kevin,
Thank you for your reply, and I am glad to hear that you got the notifications to work! I searched through the community for smtp appender discussions and stumbled across a few that you have been a part of. , I am new to Qlik Sense/developing. so, a lot of the information went over my head. Would you be able to help outline the steps that I would need to go through to get this configured (this will help others searching for the same solution)? I appreciate your help!
now i am following this with interest
Monica,
Here are the steps:
<?xml version="1.0"?>
<configuration>
<!-- Mail appender-->
<appender name="MailAppender" type="log4net.Appender.SmtpAppender">
<filter type="log4net.Filter.StringMatchFilter">
<param name="stringToMatch" value="ReloadResult" />
<param name="acceptOnMatch" value="false" />
</filter>
<filter type="log4net.Filter.LevelRangeFilter">
<param name="levelMin" value="ERROR" />
</filter>
<filter type="log4net.Filter.DenyAllFilter" />
<evaluator type="log4net.Core.LevelEvaluator">
<param name="threshold" value="ERROR"/>
</evaluator>
<param name="to" value="kevin@MyEmail.com" />
<param name="from" value="Qlik@MyQlikServer.com" />
<param name="subject" value="Qlik Job Failure" />
<param name="smtpHost" value="MySMTPAddress" />
<param name="port" value="25" />
<param name="bufferSize" value="0" /> <!-- Set this to 0 to make sure an email is sent on every error -->
<param name="lossy" value="true" />
<layout type="log4net.Layout.PatternLayout">
<param name="conversionPattern" value="%newline%date %-5level %newline%property{TaskName}%newline%property{AppName}%newline%message%newline%newline%newline" />
</layout>
</appender>
<!--Send mail on task failure-->
<logger name="System.Scheduler.Scheduler.Slave.Tasks.ReloadTask">
<appender-ref ref="MailAppender" />
</logger>
</configuration>
</configuration>
Now, whenever you have a job failure, an email will be sent to the recipient.
Kevin
Many thanks for posting that - I'll give it a go.