<?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 TA_Azure_Monitor - script running failed (exited with code 1). in All Apps and Add-ons</title>
    <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/TA-Azure-Monitor-script-running-failed-exited-with-code-1/m-p/489698#M60273</link>
    <description>&lt;P&gt;Hi everyone,&lt;/P&gt;

&lt;P&gt;An HF node in our env started getting this message all of a sudden.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Unable to initialize modular input "azure_monitor_metrics" defined inside the app "TA_Azure_Monitor": Introspecting scheme=azure_monitor_metrics: script running failed (exited with code 1).
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;While I understand that the articles below seem to have ended with a solution, I feel like I didn't get any procedure on how to attack this problem and solve it.&lt;/P&gt;

&lt;P&gt;These are some of the artifacts I found in our internal logs.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;09-25-2019 11:59:33.957 +1000 ERROR ModularInputs - Unable to initialize modular input "azure_monitor_metrics"  defined inside the app "TA_Azure_Monitor": Introspecting scheme=azure_monitor_metrics: script running failed (exited with code 1).
09-25-2019 11:59:33.856 +1000 ERROR ModularInputs - Unable to initialize modular input "azure_diagnostic_logs"  defined inside the app "TA_Azure_Monitor": Introspecting scheme=azure_diagnostic_logs: Unable to run `"/opt/splunk/etc/apps/TA_Azure_Monitor/bin/azure_diagnostic_logs.sh --scheme": child failed to start: Permission denied
09-25-2019 11:59:33.856 +1000 ERROR ModularInputs - Introspecting scheme=azure_diagnostic_logs: Unable to run "/opt/splunk/etc/apps/TA_Azure_Monitor/bin/azure_diagnostic_logs.sh --scheme": child failed to start: Permission denied
09-25-2019 11:59:33.854 +1000 ERROR ModularInputs - Unable to initialize modular input "azure_activity_log"  defined inside the app "TA_Azure_Monitor": Introspecting scheme=azure_activity_log: Unable to run "/opt/splunk/etc/apps/TA_Azure_Monitor/bin/azure_activity_log.sh --scheme": child failed to start: Permission denied
09-25-2019 11:59:33.854 +1000 ERROR ModularInputs - Introspecting scheme=azure_activity_log: Unable to run "/opt/splunk/etc/apps/TA_Azure_Monitor/bin/azure_activity_log.sh --scheme": child failed to start: Permission denied
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The box affected is a RHEL.&lt;/P&gt;

&lt;P&gt;Thanks in advance.&lt;/P&gt;

&lt;P&gt;Article 1. &lt;A href="https://github.com/Microsoft/AzureMonitorAddonForSplunk/issues/73"&gt;https://github.com/Microsoft/AzureMonitorAddonForSplunk/issues/73&lt;/A&gt;&lt;BR /&gt;
Article 2. &lt;A href="https://github.com/Microsoft/AzureMonitorAddonForSplunk/issues/63"&gt;https://github.com/Microsoft/AzureMonitorAddonForSplunk/issues/63&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 25 Sep 2019 06:45:01 GMT</pubDate>
    <dc:creator>morethanyell</dc:creator>
    <dc:date>2019-09-25T06:45:01Z</dc:date>
    <item>
      <title>TA_Azure_Monitor - script running failed (exited with code 1).</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/TA-Azure-Monitor-script-running-failed-exited-with-code-1/m-p/489698#M60273</link>
      <description>&lt;P&gt;Hi everyone,&lt;/P&gt;

&lt;P&gt;An HF node in our env started getting this message all of a sudden.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Unable to initialize modular input "azure_monitor_metrics" defined inside the app "TA_Azure_Monitor": Introspecting scheme=azure_monitor_metrics: script running failed (exited with code 1).
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;While I understand that the articles below seem to have ended with a solution, I feel like I didn't get any procedure on how to attack this problem and solve it.&lt;/P&gt;

&lt;P&gt;These are some of the artifacts I found in our internal logs.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;09-25-2019 11:59:33.957 +1000 ERROR ModularInputs - Unable to initialize modular input "azure_monitor_metrics"  defined inside the app "TA_Azure_Monitor": Introspecting scheme=azure_monitor_metrics: script running failed (exited with code 1).
09-25-2019 11:59:33.856 +1000 ERROR ModularInputs - Unable to initialize modular input "azure_diagnostic_logs"  defined inside the app "TA_Azure_Monitor": Introspecting scheme=azure_diagnostic_logs: Unable to run `"/opt/splunk/etc/apps/TA_Azure_Monitor/bin/azure_diagnostic_logs.sh --scheme": child failed to start: Permission denied
09-25-2019 11:59:33.856 +1000 ERROR ModularInputs - Introspecting scheme=azure_diagnostic_logs: Unable to run "/opt/splunk/etc/apps/TA_Azure_Monitor/bin/azure_diagnostic_logs.sh --scheme": child failed to start: Permission denied
09-25-2019 11:59:33.854 +1000 ERROR ModularInputs - Unable to initialize modular input "azure_activity_log"  defined inside the app "TA_Azure_Monitor": Introspecting scheme=azure_activity_log: Unable to run "/opt/splunk/etc/apps/TA_Azure_Monitor/bin/azure_activity_log.sh --scheme": child failed to start: Permission denied
09-25-2019 11:59:33.854 +1000 ERROR ModularInputs - Introspecting scheme=azure_activity_log: Unable to run "/opt/splunk/etc/apps/TA_Azure_Monitor/bin/azure_activity_log.sh --scheme": child failed to start: Permission denied
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The box affected is a RHEL.&lt;/P&gt;

&lt;P&gt;Thanks in advance.&lt;/P&gt;

&lt;P&gt;Article 1. &lt;A href="https://github.com/Microsoft/AzureMonitorAddonForSplunk/issues/73"&gt;https://github.com/Microsoft/AzureMonitorAddonForSplunk/issues/73&lt;/A&gt;&lt;BR /&gt;
Article 2. &lt;A href="https://github.com/Microsoft/AzureMonitorAddonForSplunk/issues/63"&gt;https://github.com/Microsoft/AzureMonitorAddonForSplunk/issues/63&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Sep 2019 06:45:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/TA-Azure-Monitor-script-running-failed-exited-with-code-1/m-p/489698#M60273</guid>
      <dc:creator>morethanyell</dc:creator>
      <dc:date>2019-09-25T06:45:01Z</dc:date>
    </item>
    <item>
      <title>Re: TA_Azure_Monitor - script running failed (exited with code 1).</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/TA-Azure-Monitor-script-running-failed-exited-with-code-1/m-p/489699#M60274</link>
      <description>&lt;P&gt;Not a full answer, but try setting &lt;CODE&gt;ModularInputs&lt;/CODE&gt; component logging to &lt;CODE&gt;DEBUG&lt;/CODE&gt; and see if you get any more useful information. You can do this through the GUI (Server Settings &amp;gt; Logging)&lt;/P&gt;</description>
      <pubDate>Tue, 01 Oct 2019 21:44:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/TA-Azure-Monitor-script-running-failed-exited-with-code-1/m-p/489699#M60274</guid>
      <dc:creator>jacobpevans</dc:creator>
      <dc:date>2019-10-01T21:44:31Z</dc:date>
    </item>
    <item>
      <title>Re: TA_Azure_Monitor - script running failed (exited with code 1).</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/TA-Azure-Monitor-script-running-failed-exited-with-code-1/m-p/489700#M60275</link>
      <description>&lt;P&gt;Will do. Thanks.&lt;/P&gt;</description>
      <pubDate>Thu, 03 Oct 2019 07:13:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/TA-Azure-Monitor-script-running-failed-exited-with-code-1/m-p/489700#M60275</guid>
      <dc:creator>morethanyell</dc:creator>
      <dc:date>2019-10-03T07:13:19Z</dc:date>
    </item>
    <item>
      <title>Re: TA_Azure_Monitor - script running failed (exited with code 1).</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/TA-Azure-Monitor-script-running-failed-exited-with-code-1/m-p/489701#M60276</link>
      <description>&lt;P&gt;Per the log information you had posted, there is a denied permission to run the child process "child failed to start: Permission denied". This lack of permission can be related with "exit code 1" from the app it self.&lt;BR /&gt;
Verify if the user that is running splunk service has the proper permission to run this TA app, it is common problem in linux environment for permission issues, but I dont know how the permission works at Azure because I never play with before. I would stop splunk service, re-apply the permissions and start splunk service.&lt;/P&gt;</description>
      <pubDate>Wed, 09 Oct 2019 04:24:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/TA-Azure-Monitor-script-running-failed-exited-with-code-1/m-p/489701#M60276</guid>
      <dc:creator>ivanreis</dc:creator>
      <dc:date>2019-10-09T04:24:35Z</dc:date>
    </item>
  </channel>
</rss>

