<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Alert for failed tasks - with log4net appender in Reporting Service &amp; Alerting</title>
    <link>https://community.qlik.com/t5/Reporting-Service-Alerting/Alert-for-failed-tasks-with-log4net-appender/m-p/2066432#M1706</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Thanks for this helpful link..&lt;/P&gt;
&lt;P&gt;I've used the example configuration posted there, but it still doesn't work.&lt;/P&gt;
&lt;P&gt;As some people commented there, it might not work with later versions of Sense.&lt;/P&gt;
&lt;P&gt;I share their frustration, and hope someone from support, will check and to resolve it.&lt;/P&gt;
&lt;P&gt;Thank you!&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 01 May 2023 20:28:37 GMT</pubDate>
    <dc:creator>dana</dc:creator>
    <dc:date>2023-05-01T20:28:37Z</dc:date>
    <item>
      <title>Alert for failed tasks - with log4net appender</title>
      <link>https://community.qlik.com/t5/Reporting-Service-Alerting/Alert-for-failed-tasks-with-log4net-appender/m-p/2066141#M1703</link>
      <description>&lt;P&gt;Hi People,&lt;/P&gt;
&lt;P&gt;I'm trying to implement&amp;nbsp; "&lt;FONT size="3"&gt;SMTP email notification Qlik Sense on task failure" based on the sources published by Christof&amp;nbsp; Schwarz&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="3"&gt;&lt;A href="https://www.youtube.com/watch?v=Px4pvSlqK0s" target="_blank"&gt;https://www.youtube.com/watch?v=Px4pvSlqK0s&lt;/A&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://github.com/ChristofSchwarz/qs_log4net_appender" target="_blank"&gt;https://github.com/ChristofSchwarz/qs_log4net_appender&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;My server version is May 2022.&lt;/P&gt;
&lt;P&gt;but, unfortunately, it didn't work.&lt;/P&gt;
&lt;P&gt;I did a couple of modifications based on other posts, but, still, with nosuccess.&lt;/P&gt;
&lt;P&gt;Regarding smtp.gmail.com:&lt;/P&gt;
&lt;P&gt;I defined the port based on my account definition (465). Is that correct?&lt;/P&gt;
&lt;P&gt;Is the user name the full mail address?&lt;/P&gt;
&lt;P&gt;bellow is the XML I'm using.&lt;/P&gt;
&lt;P&gt;Would appreciate some help!&lt;/P&gt;
&lt;P&gt;Thanks!&lt;/P&gt;
&lt;P&gt;&amp;lt;?xml version="1.0" encoding="UTF-8"?&amp;gt;&lt;BR /&gt;&amp;lt;configuration&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;lt;appender name="sendMail" type="log4net.Appender.SmtpAppender"&amp;gt;&lt;BR /&gt;&amp;lt;evaluator type="log4net.Core.LevelEvaluator"&amp;gt;&lt;BR /&gt;&amp;lt;param name="threshold" value="error"/&amp;gt;&lt;BR /&gt;&amp;lt;/evaluator&amp;gt;&lt;BR /&gt;&amp;lt;param name="to" value="XXX@gmail.com" /&amp;gt;&lt;BR /&gt;&amp;lt;param name="from" value="XXX@gmail.com" /&amp;gt;&lt;BR /&gt;&amp;lt;param name="smtpHost" value="smtp.gmail.com" /&amp;gt;&lt;BR /&gt;&amp;lt;&lt;FONT color="#FF0000"&gt;param name="port" value="465"&lt;/FONT&gt; /&amp;gt;&lt;BR /&gt;&amp;lt;param name="EnableSsl" value="true" /&amp;gt;&lt;BR /&gt;&amp;lt;param name="Authentication" value="Basic" /&amp;gt;&lt;BR /&gt;&amp;lt;&lt;FONT color="#FF0000"&gt;param name="username" value="XXX@gmail.com" /&amp;gt;&lt;/FONT&gt;&lt;BR /&gt;&amp;lt;param name="password" value="XXX" /&amp;gt;&lt;BR /&gt;&amp;lt;param name="bufferSize" value="0" /&amp;gt; &amp;lt;!-- dont change --&amp;gt;&lt;BR /&gt;&amp;lt;param name="lossy" value="true" /&amp;gt; &amp;lt;!-- dont change --&amp;gt;&lt;BR /&gt;&amp;lt;param name="subject" value="Qlik Sense Server QSSRV: App reload failed" /&amp;gt; &lt;BR /&gt;&amp;lt;layout type="log4net.Layout.PatternLayout"&amp;gt;&lt;BR /&gt;&amp;lt;param name="conversionPattern" &lt;BR /&gt;value="You receive this email because of settings for appender 'SendMail1' &lt;BR /&gt;in LocalLogConfig.xml in C:\ProgramData\Qlik\Sense\Scheduler%newline%&lt;BR /&gt;Date: %date %newline&lt;BR /&gt;Task Name: %property{TaskName}%newline&lt;BR /&gt;AppName: %property{AppName}%newline&lt;BR /&gt;AppId: %property{AppId}%newline&lt;BR /&gt;Error Message: %message%newline%newline%newline&lt;BR /&gt;To see more go to &lt;A href="https://QS1/qmc/tasks?ID=%property{TaskId" target="_blank"&gt;https://QS1/qmc/tasks?ID=%property{TaskId&lt;/A&gt;}" /&amp;gt;&lt;BR /&gt;&amp;lt;/layout&amp;gt;&lt;BR /&gt;&amp;lt;/appender&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;lt;logger name="System.Scheduler.Scheduler.Slave.Tasks.ReloadTask"&amp;gt;&lt;BR /&gt;&amp;lt;appender-ref ref="sendMail" /&amp;gt;&lt;BR /&gt;&amp;lt;/logger&amp;gt; &lt;BR /&gt;&amp;lt;/configuration&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jan 2025 15:57:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Reporting-Service-Alerting/Alert-for-failed-tasks-with-log4net-appender/m-p/2066141#M1703</guid>
      <dc:creator>dana</dc:creator>
      <dc:date>2025-01-29T15:57:23Z</dc:date>
    </item>
    <item>
      <title>Re: Alert for failed tasks - with log4net appender</title>
      <link>https://community.qlik.com/t5/Reporting-Service-Alerting/Alert-for-failed-tasks-with-log4net-appender/m-p/2066305#M1704</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/68009"&gt;@dana&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please refer to below article for your reference:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.qlik.com/t5/Qlik-Sense-Documents/Sending-e-mail-alerts-in-Qlik-Sense-Enterprise-Task-Failures/ta-p/1488735/page/2" target="_blank"&gt;https://community.qlik.com/t5/Qlik-Sense-Documents/Sending-e-mail-alerts-in-Qlik-Sense-Enterprise-Task-Failures/ta-p/1488735/page/2&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Padma Priya&lt;/P&gt;
&lt;P&gt;Qlik Support&lt;/P&gt;</description>
      <pubDate>Mon, 01 May 2023 11:40:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Reporting-Service-Alerting/Alert-for-failed-tasks-with-log4net-appender/m-p/2066305#M1704</guid>
      <dc:creator>PadmaPriya</dc:creator>
      <dc:date>2023-05-01T11:40:31Z</dc:date>
    </item>
    <item>
      <title>Re: Alert for failed tasks - with log4net appender</title>
      <link>https://community.qlik.com/t5/Reporting-Service-Alerting/Alert-for-failed-tasks-with-log4net-appender/m-p/2066338#M1705</link>
      <description>&lt;P&gt;Using the Log4Net SMTP appender will give you basic emails for ALL failed reload tasks.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This is a good start, but if you want better/more informative alert emails you need some other solution.&lt;BR /&gt;Or if you want alert emails for just some reload tasks, or different recipients for different tasks.&lt;/P&gt;
&lt;P&gt;I'm the creator of the Butler open source (free!) tool that offers a pretty comprehensive set of features around failed reload alerting, more info here:&amp;nbsp;&lt;A href="https://community.qlik.com/t5/Qlik-Sense-Documents/Sending-e-mail-alerts-in-Qlik-Sense-Enterprise-Task-Failures/tac-p/2066335/highlight/true#M5713" target="_blank"&gt;https://community.qlik.com/t5/Qlik-Sense-Documents/Sending-e-mail-alerts-in-Qlik-Sense-Enterprise-Task-Failures/tac-p/2066335/highlight/true#M5713&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 01 May 2023 14:40:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Reporting-Service-Alerting/Alert-for-failed-tasks-with-log4net-appender/m-p/2066338#M1705</guid>
      <dc:creator>mountaindude</dc:creator>
      <dc:date>2023-05-01T14:40:04Z</dc:date>
    </item>
    <item>
      <title>Re: Alert for failed tasks - with log4net appender</title>
      <link>https://community.qlik.com/t5/Reporting-Service-Alerting/Alert-for-failed-tasks-with-log4net-appender/m-p/2066432#M1706</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Thanks for this helpful link..&lt;/P&gt;
&lt;P&gt;I've used the example configuration posted there, but it still doesn't work.&lt;/P&gt;
&lt;P&gt;As some people commented there, it might not work with later versions of Sense.&lt;/P&gt;
&lt;P&gt;I share their frustration, and hope someone from support, will check and to resolve it.&lt;/P&gt;
&lt;P&gt;Thank you!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 01 May 2023 20:28:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Reporting-Service-Alerting/Alert-for-failed-tasks-with-log4net-appender/m-p/2066432#M1706</guid>
      <dc:creator>dana</dc:creator>
      <dc:date>2023-05-01T20:28:37Z</dc:date>
    </item>
    <item>
      <title>Re: Alert for failed tasks - with log4net appender</title>
      <link>https://community.qlik.com/t5/Reporting-Service-Alerting/Alert-for-failed-tasks-with-log4net-appender/m-p/2066433#M1707</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Currently,&amp;nbsp; I need a simple and quick solution, and I'm pretty upset with not being able to get it working..&lt;/P&gt;
&lt;P&gt;Does Butler require changing settings of Sense environment?&lt;/P&gt;
&lt;P&gt;Thanks!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 01 May 2023 20:33:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Reporting-Service-Alerting/Alert-for-failed-tasks-with-log4net-appender/m-p/2066433#M1707</guid>
      <dc:creator>dana</dc:creator>
      <dc:date>2023-05-01T20:33:01Z</dc:date>
    </item>
    <item>
      <title>Re: Alert for failed tasks - with log4net appender</title>
      <link>https://community.qlik.com/t5/Reporting-Service-Alerting/Alert-for-failed-tasks-with-log4net-appender/m-p/2066514#M1708</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/68009"&gt;@dana&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Currently,&amp;nbsp; I need a simple and quick solution, and I'm pretty upset with not being able to get it working..&lt;/P&gt;
&lt;P&gt;Does Butler require changing settings of Sense environment?&lt;/P&gt;
&lt;P&gt;Thanks!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Well, this feature isn't really something that Qlik supports. The fact that it's possible at all is more of a bonus feature coming with the fact that Log4Net is used within client-managed Qlik Sense Enterprise.&lt;BR /&gt;So I don't think you can hold Qlik liable for setup/configuration related problems.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;That said, once set up the Log4Net appenders tend to be very stable and just work.&lt;BR /&gt;I know Sense environments that have been using this concept for years without any problems, so it's pretty solid.&lt;/P&gt;
&lt;P&gt;Regarding Butler, in it's basic configuration it does not require any changes to Qlik Sense.&lt;BR /&gt;The basic configuration here means you will be notified (email, Teams, Slack, webhook, InfluxDB, New Relic, Signl4, MQTT, ...) for all failed reloads.&lt;/P&gt;
&lt;P&gt;If you want to control on a per-reload-task basis if a particular task should cause a reload failure alert, you do need to create a new custom property in Sense, and then set that CP for tasks that should result in reload failure alerts.&amp;nbsp;&lt;BR /&gt;If you have hundreds or thousands of tasks you probably want to control which result in alerts and which don't. Maybe different people/teams should be alerted depending on which task fails too. &lt;BR /&gt;If you on the other hand have a smaller Sense environment, the standard setup will probably be fine.&lt;/P&gt;</description>
      <pubDate>Tue, 02 May 2023 06:08:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Reporting-Service-Alerting/Alert-for-failed-tasks-with-log4net-appender/m-p/2066514#M1708</guid>
      <dc:creator>mountaindude</dc:creator>
      <dc:date>2023-05-02T06:08:51Z</dc:date>
    </item>
    <item>
      <title>Re: Alert for failed tasks - with log4net appender</title>
      <link>https://community.qlik.com/t5/Reporting-Service-Alerting/Alert-for-failed-tasks-with-log4net-appender/m-p/2066565#M1709</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Re Qlik's "reliability": well, I would expect a built-in feature for an e-mail alert for a task failure.&lt;/P&gt;
&lt;P&gt;Re Butler:&lt;/P&gt;
&lt;P&gt;I would appreciate if you'll reference me to the basic configuration: for all failed reloads.&lt;/P&gt;
&lt;P&gt;Thanks!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 02 May 2023 07:52:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Reporting-Service-Alerting/Alert-for-failed-tasks-with-log4net-appender/m-p/2066565#M1709</guid>
      <dc:creator>dana</dc:creator>
      <dc:date>2023-05-02T07:52:28Z</dc:date>
    </item>
    <item>
      <title>Re: Alert for failed tasks - with log4net appender</title>
      <link>https://community.qlik.com/t5/Reporting-Service-Alerting/Alert-for-failed-tasks-with-log4net-appender/m-p/2068971#M1710</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/28783"&gt;@mountaindude&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;I have customized my XML file,&amp;nbsp; but still, mails are not sent (Attached below).&lt;/P&gt;
&lt;P&gt;I have used the examples you shared , for a basic configuration without Butler:&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;My question is:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;Would I run to the same issue after installing Butler?&lt;/P&gt;
&lt;P&gt;I mean, is it something that should be defined in Windows Server?&lt;/P&gt;
&lt;P&gt;Thanks!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;lt;?xml version="1.0"?&amp;gt;&lt;BR /&gt;&amp;lt;configuration&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;lt;appender name="MailAppender" type="log4net.Appender.SmtpAppender"&amp;gt;&lt;BR /&gt;&amp;lt;filter type="log4net.Filter.StringMatchFilter"&amp;gt;&lt;BR /&gt;&amp;lt;param name="stringToMatch" value="Message from ReloadProvider" /&amp;gt;&lt;BR /&gt;&amp;lt;/filter&amp;gt;&lt;BR /&gt;&amp;lt;filter type="log4net.Filter.DenyAllFilter" /&amp;gt;&lt;BR /&gt;&amp;lt;evaluator type="log4net.Core.LevelEvaluator"&amp;gt;&lt;BR /&gt;&amp;lt;param name="threshold" value="ERROR"/&amp;gt;&lt;BR /&gt;&amp;lt;/evaluator&amp;gt;&lt;BR /&gt;&amp;lt;param name="to" value="XXX@gmail.com" /&amp;gt;&lt;BR /&gt;&amp;lt;param name="from" value="YYY@gmail.com" /&amp;gt;&lt;BR /&gt;&amp;lt;param name="smtpHost" value="smtp.gmail.com" /&amp;gt;&lt;BR /&gt;&amp;lt;param name="port" value="587" /&amp;gt;&lt;BR /&gt;&amp;lt;param name="EnableSsl" value="true" /&amp;gt;&lt;BR /&gt;&amp;lt;param name="Authentication" value="Basic" /&amp;gt;&lt;BR /&gt;&amp;lt;param name="username" value="XXX@gmail.com" /&amp;gt;&lt;BR /&gt;&amp;lt;param name="password" value="ZZZZ" /&amp;gt;&lt;BR /&gt;&amp;lt;param name="bufferSize" value="0" /&amp;gt; &amp;lt;!-- dont change --&amp;gt;&lt;BR /&gt;&amp;lt;param name="lossy" value="true" /&amp;gt; &amp;lt;!-- dont change --&amp;gt;&lt;BR /&gt;&amp;lt;param name="subject" value="Qlik Sense Server QS1: App reload failed" /&amp;gt; &lt;BR /&gt;&amp;lt;layout type="log4net.Layout.PatternLayout"&amp;gt;&lt;BR /&gt;&amp;lt;param name="conversionPattern" value="%newline%date %-5level %newline%property{TaskName}%newline%property{AppName}%newline%message%newline%newline%newline" /&amp;gt;&lt;BR /&gt;&amp;lt;/layout&amp;gt; &lt;BR /&gt;&amp;lt;/appender&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;lt;!--Send mail on task failure--&amp;gt;&lt;BR /&gt;&amp;lt;logger name="System.Scheduler.Scheduler.Slave.Tasks.ReloadTask"&amp;gt;&lt;BR /&gt;&amp;lt;appender-ref ref="MailAppender" /&amp;gt;&lt;BR /&gt;&amp;lt;/logger&amp;gt;&lt;BR /&gt;&amp;lt;/configuration&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 09 May 2023 05:41:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Reporting-Service-Alerting/Alert-for-failed-tasks-with-log4net-appender/m-p/2068971#M1710</guid>
      <dc:creator>dana</dc:creator>
      <dc:date>2023-05-09T05:41:04Z</dc:date>
    </item>
  </channel>
</rss>

