Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi,
I am trying to configure email alerts whenever a reload task fails using SmtpAppender. I am using Qlik sense November 2017 version. I found various discussions on this topic, but wasn't able to achieve it yet. Please find the code I am using for LocalLogConfig xml file below.
<?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="myname@domain.com" />
<param name="from" value="myname@domain.com" />
<param name="subject" value="Qlik Job Failure" />
<param name="smtpHost" value="mysmtphost" />
<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>
Could you please guide me?
Hi Kevin,
Thanks for your feedback. I will open an Qlik Case.
Regards
Serkan