Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
I am trying to attached code and save in XML file and store into below path but unable to send alerts mail in Qliksense.
Path:-C:\ProgramData\Qlik\Sense\Scheduler
Code:-
<?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="xyz@abc.com" />
<param name="from" value="xyz@abc.com" />
<param name="subject" value="Qlik Job Failure" />
<param name="smtpHost" value="xy.ab.z.qy" />
<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>
Regards,
Mohit
Hi,
Please find below URL:-
Thanks
Tushar