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: 
Mohitsanwalka_12
Contributor
Contributor

How we can send Application failure alerts on Email in Qliksense without any extensions?

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

Labels (2)
1 Reply
tush
Creator II
Creator II