<?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>question Ambari Alert logs are not getting generated in /var/log/ambari-server in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Ambari-Alert-logs-are-not-getting-generated-in-var-log/m-p/285280#M211733</link>
    <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hello Folks,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am trying to debug Ambari alerts , I am not getting logs generated in /var/log/ambari-server/ directory.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV class="project"&gt;Ambari&amp;nbsp;&lt;SPAN&gt;Version&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;2.5.1.0&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;HDP -&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1) Tried ambari-server restart&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2)&amp;nbsp;enabled debug mode mentioned in&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;tried steps mentioned in&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.cloudera.com/t5/Support-Questions/Not-able-to-receive-emails-via-Ambari-Alerts/td-p/122948" target="_blank" rel="noopener"&gt;https://community.cloudera.com/t5/Support-Questions/Not-able-to-receive-emails-via-Ambari-Alerts/td-p/122948&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://mail-archives.apache.org/mod_mbox/ambari-user/201504.mbox/%3CA0F1A095-D4F9-47CE-BEC7-12C4EB54E5EC@hortonworks.com%3E" target="_blank" rel="noopener"&gt;http://mail-archives.apache.org/mod_mbox/ambari-user/201504.mbox/%3CA0F1A095-D4F9-47CE-BEC7-12C4EB54E5EC@hortonworks.com%3E&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/35917"&gt;@nsabharwal&lt;/a&gt;- Could you please provide some ways to debug&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>Tue, 10 Dec 2019 20:02:19 GMT</pubDate>
    <dc:creator>vendevu</dc:creator>
    <dc:date>2019-12-10T20:02:19Z</dc:date>
    <item>
      <title>Ambari Alert logs are not getting generated in /var/log/ambari-server</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Ambari-Alert-logs-are-not-getting-generated-in-var-log/m-p/285280#M211733</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hello Folks,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am trying to debug Ambari alerts , I am not getting logs generated in /var/log/ambari-server/ directory.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV class="project"&gt;Ambari&amp;nbsp;&lt;SPAN&gt;Version&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;2.5.1.0&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;HDP -&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1) Tried ambari-server restart&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2)&amp;nbsp;enabled debug mode mentioned in&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;tried steps mentioned in&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.cloudera.com/t5/Support-Questions/Not-able-to-receive-emails-via-Ambari-Alerts/td-p/122948" target="_blank" rel="noopener"&gt;https://community.cloudera.com/t5/Support-Questions/Not-able-to-receive-emails-via-Ambari-Alerts/td-p/122948&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://mail-archives.apache.org/mod_mbox/ambari-user/201504.mbox/%3CA0F1A095-D4F9-47CE-BEC7-12C4EB54E5EC@hortonworks.com%3E" target="_blank" rel="noopener"&gt;http://mail-archives.apache.org/mod_mbox/ambari-user/201504.mbox/%3CA0F1A095-D4F9-47CE-BEC7-12C4EB54E5EC@hortonworks.com%3E&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/35917"&gt;@nsabharwal&lt;/a&gt;- Could you please provide some ways to debug&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>Tue, 10 Dec 2019 20:02:19 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Ambari-Alert-logs-are-not-getting-generated-in-var-log/m-p/285280#M211733</guid>
      <dc:creator>vendevu</dc:creator>
      <dc:date>2019-12-10T20:02:19Z</dc:date>
    </item>
    <item>
      <title>Re: Ambari Alert logs are not getting generated in /var/log/ambari-server</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Ambari-Alert-logs-are-not-getting-generated-in-var-log/m-p/285411#M211809</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/67979"&gt;@vendevu&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Unfortunately the classes present inside the "org.apache.ambari.server.state.alert" package does not contain DEBUG messages hence you can not see those debugs.&amp;nbsp; But you can get the Alert Notification related DEBUGs.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;As you have referred to other Community threads where you see the "Notification" related DEBUG messages like following:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;DEBUG [alert-dispatch-5] EmailDispatcher:142 - Successfully dispatched email to [@.com], so it seems like Ambari is sending email but it is struck somewhere.&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So if you want to see &lt;EM&gt;&lt;STRONG&gt;"Alert Notification"&lt;/STRONG&gt; &lt;/EM&gt;(like Email Notification/ SMTP notification) related DEBUGs inside your "ambari-server.log" then please try this:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Can you please try this:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;1). Edit the "/etc/ambari-server/conf/log4j.properties" file and then Add the following line somewhere at the end of this file.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;log4j.logger.org.apache.ambari.server.notifications=DEBUG&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;2). Restart Amabri Server&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;# ambari-server restart&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;3). Tail the ambari-server.log file.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;# tail -f /var/log/ambari-server/ambari-server.log&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;4). As soon as some new alert notification (Like SMTP Alert Notification OR SNMP Alert Notification) will be triggered we should see some logging in the above log file.&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Dec 2019 04:00:42 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Ambari-Alert-logs-are-not-getting-generated-in-var-log/m-p/285411#M211809</guid>
      <dc:creator>jsensharma</dc:creator>
      <dc:date>2019-12-12T04:00:42Z</dc:date>
    </item>
    <item>
      <title>Re: Ambari Alert logs are not getting generated in /var/log/ambari-server</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Ambari-Alert-logs-are-not-getting-generated-in-var-log/m-p/285516#M211870</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/50614"&gt;@jsensharma&lt;/a&gt;&amp;nbsp; Thank you Sen Sharma. I have set the settings you mentioned in log4j.properties file.. will update shortly if I am able to see the ambari alert logs getting generated.&lt;/P&gt;</description>
      <pubDate>Thu, 12 Dec 2019 23:07:24 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Ambari-Alert-logs-are-not-getting-generated-in-var-log/m-p/285516#M211870</guid>
      <dc:creator>vendevu</dc:creator>
      <dc:date>2019-12-12T23:07:24Z</dc:date>
    </item>
    <item>
      <title>Re: Ambari Alert logs are not getting generated in /var/log/ambari-server</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Ambari-Alert-logs-are-not-getting-generated-in-var-log/m-p/285741#M212007</link>
      <description>&lt;P&gt;hi&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/50614"&gt;@jsensharma&lt;/a&gt;&amp;nbsp;, Thank you very much. after following your steps of adding the debug in log4j properites file and restarting the ambari server . The alerts logs are now being generated. Really appreciate your input..&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks to the Community!!.. you guys rock!&lt;/P&gt;</description>
      <pubDate>Tue, 17 Dec 2019 00:07:58 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Ambari-Alert-logs-are-not-getting-generated-in-var-log/m-p/285741#M212007</guid>
      <dc:creator>vendevu</dc:creator>
      <dc:date>2019-12-17T00:07:58Z</dc:date>
    </item>
  </channel>
</rss>

