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: 
JoãoJunta
Partner - Contributor
Partner - Contributor

E-mail when reload task fails

Hello!
I use Qlik Sense Server, and need to set up some way to get an email sent to me everytime a task fails..

I followed the steps on a post that says to create a .xml, save it on the C:\ProgramData\Qlik\Sense\Scheduler folder as "LocalLogConfig.xml" and restart the QlikSenseSchedulerService.. but it's not working

following xml scripts with email and passwords hidden:

<?xml version="1.0"?> 
<configuration> 
<!-- Mail appender--> 
<appender name="MailAppender" type="log4net.Appender.SmtpAppender"> 
<filter type="log4net.Filter.LevelRangeFilter"> 
<param name="levelMin" value="WARN" /> 
<param name="levelMax" value="ERROR" /> 
</filter> 
<filter type="log4net.Filter.DenyAllFilter" /> 
<evaluator type="log4net.Core.LevelEvaluator"> 
<param name="threshold" value="ERROR"/> 
</evaluator> 
<param name="to" value="EMAIL@vortice.inf.br" /> <!-- informe o e-mail de quem receberá --> 
<param name="cc" value="" /> 
<param name="from" value="EMAIL@vortice.inf.br" /> <!-- informe o e-mail remetente --> 
<param name="subject" value="[QSPCENTRAL] - Qlik Sense - Falha Tarefa!!!" /> 
<param name="smtpHost" value="smtp.gmail.com" /> 
<param name="port" value="587" /> <!-- informe a porta SMTP (25, 465, 567)--> 
<param name="EnableSsl" value="true" /> <!-- Pode ser false --> 
<param name="username" value="EMAIL@vortice.inf.br" /> <!-- informe seu login SMTP --> 
<param name="password" value="PASSWORD" /> <!-- informe sua senha SMTP --> 
<param name="Authentication" value="Basic" /> <!-- Pode ser none caso seu SMPT aceite (None Basic NTML) --> 
<param name="bufferSize" value="0" /> <!-- Defina como 0 para envio a cada Erro --> 
<param name="lossy" value="true" /> 
<layout type="log4net.Layout.PatternLayout"> <!-- Você pode alterar o valor abaixo caso deseje personalisar a mensagem--> 
<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"> <!-- Filtrar que tipo de exceção será capturado --> 
<appender-ref ref="MailAppender" /> 
</logger> 
</configuration>

 

1 Reply
Andre_Sostizzo
Digital Support
Digital Support

@JoãoJunta, were you able to check in the logs (may need other param) and check for specific verbose?

You can also run a Network capture filtering on the specific SMTP server's tcp port which may help. (e.g. wireshark.org).

An example is documented under:

https://help.qlik.com/en-US/sense/September2018/Subsystems/PlanningQlikSenseDeployments/Content/Sens...

Other potential parameters mentioned can be seen under (may not apply to the built-in log4net appenders):

https://help.qlik.com/en-US/sense/September2018/Subsystems/PlanningQlikSenseDeployments/Content/Sens...

 

 

Help users find answers! Don't forget to mark a solution that worked for you! If already marked, give it a thumbs up! 🙂