<?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: KeyError: 'LaunchConfigurationName' in Splunk App for AWS in All Apps and Add-ons</title>
    <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/KeyError-LaunchConfigurationName-in-Splunk-App-for-AWS/m-p/400442#M48853</link>
    <description>&lt;P&gt;nothing should have changed, been seeing this error since I configured the addon&lt;/P&gt;</description>
    <pubDate>Mon, 18 Feb 2019 17:44:34 GMT</pubDate>
    <dc:creator>cemeyer2</dc:creator>
    <dc:date>2019-02-18T17:44:34Z</dc:date>
    <item>
      <title>KeyError: 'LaunchConfigurationName' in Splunk App for AWS</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/KeyError-LaunchConfigurationName-in-Splunk-App-for-AWS/m-p/400440#M48851</link>
      <description>&lt;P&gt;I am seeing thousands of errors in my splunk logs from the App for AWS in the form:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;2019-02-18 15:46:34,156 level=ERROR pid=26588 tid=MainThread logger=splunk_ta_aws.modinputs.cloudwatch.handler pos=utils.py:wrapper:71 | start_time=1550504529.1, iam_role="" region="========" account="==========", datainput="cloudwatch_===========" region="us-east-1" | message="Task was interrupted by an unhandled exception." 
Traceback (most recent call last):
  File "/opt/splunk/etc/apps/Splunk_TA_aws/bin/splunksdc/utils.py", line 69, in wrapper
    return func(*args, **kwargs)
  File "/opt/splunk/etc/apps/Splunk_TA_aws/bin/splunk_ta_aws/modinputs/cloudwatch/handler.py", line 121, in run
    metrics = self._load_metrics(checkpoint, client)
  File "/opt/splunk/etc/apps/Splunk_TA_aws/bin/splunk_ta_aws/modinputs/cloudwatch/handler.py", line 128, in _load_metrics
    metrics = self._discover(client)
  File "/opt/splunk/etc/apps/Splunk_TA_aws/bin/splunk_ta_aws/modinputs/cloudwatch/handler.py", line 160, in _discover
    for metrics in self._discovery(client):
  File "/opt/splunk/etc/apps/Splunk_TA_aws/bin/splunk_ta_aws/modinputs/cloudwatch/discovery/ec2.py", line 121, in __call__
    lcn = group['LaunchConfigurationName']
KeyError: 'LaunchConfigurationName'
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;It seems like this might be what is causing my ec2 insights page to not display any data. Is there some configuration I missed when setting up the add on?&lt;/P&gt;</description>
      <pubDate>Mon, 18 Feb 2019 15:53:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/KeyError-LaunchConfigurationName-in-Splunk-App-for-AWS/m-p/400440#M48851</guid>
      <dc:creator>cemeyer2</dc:creator>
      <dc:date>2019-02-18T15:53:14Z</dc:date>
    </item>
    <item>
      <title>Re: KeyError: 'LaunchConfigurationName' in Splunk App for AWS</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/KeyError-LaunchConfigurationName-in-Splunk-App-for-AWS/m-p/400441#M48852</link>
      <description>&lt;P&gt;Did any of the configs for AWS TA changed, like any of the API keys. Check if all the keys are same in AWS for your inputs in Splunk AWS add-on.The message in your first line is "Task was interrupted by an unhandled exception". This message seems to be for cloudwatch input, see if something changed.&lt;/P&gt;</description>
      <pubDate>Mon, 18 Feb 2019 17:30:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/KeyError-LaunchConfigurationName-in-Splunk-App-for-AWS/m-p/400441#M48852</guid>
      <dc:creator>Vijeta</dc:creator>
      <dc:date>2019-02-18T17:30:34Z</dc:date>
    </item>
    <item>
      <title>Re: KeyError: 'LaunchConfigurationName' in Splunk App for AWS</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/KeyError-LaunchConfigurationName-in-Splunk-App-for-AWS/m-p/400442#M48853</link>
      <description>&lt;P&gt;nothing should have changed, been seeing this error since I configured the addon&lt;/P&gt;</description>
      <pubDate>Mon, 18 Feb 2019 17:44:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/KeyError-LaunchConfigurationName-in-Splunk-App-for-AWS/m-p/400442#M48853</guid>
      <dc:creator>cemeyer2</dc:creator>
      <dc:date>2019-02-18T17:44:34Z</dc:date>
    </item>
    <item>
      <title>Re: KeyError: 'LaunchConfigurationName' in Splunk App for AWS</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/KeyError-LaunchConfigurationName-in-Splunk-App-for-AWS/m-p/400443#M48854</link>
      <description>&lt;P&gt;Did you restart after doing the config. I was getting error from python script regarding authentication and for me restarting the Heavy forwarder where my add-on was configured resolved the issue.&lt;/P&gt;</description>
      <pubDate>Mon, 18 Feb 2019 17:47:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/KeyError-LaunchConfigurationName-in-Splunk-App-for-AWS/m-p/400443#M48854</guid>
      <dc:creator>Vijeta</dc:creator>
      <dc:date>2019-02-18T17:47:35Z</dc:date>
    </item>
    <item>
      <title>Re: KeyError: 'LaunchConfigurationName' in Splunk App for AWS</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/KeyError-LaunchConfigurationName-in-Splunk-App-for-AWS/m-p/400444#M48855</link>
      <description>&lt;P&gt;yep, its been restarted several times&lt;/P&gt;</description>
      <pubDate>Mon, 18 Feb 2019 17:49:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/KeyError-LaunchConfigurationName-in-Splunk-App-for-AWS/m-p/400444#M48855</guid>
      <dc:creator>cemeyer2</dc:creator>
      <dc:date>2019-02-18T17:49:19Z</dc:date>
    </item>
    <item>
      <title>Re: KeyError: 'LaunchConfigurationName' in Splunk App for AWS</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/KeyError-LaunchConfigurationName-in-Splunk-App-for-AWS/m-p/400445#M48856</link>
      <description>&lt;P&gt;@cemeyer2 : Any luck resolving this?&lt;/P&gt;</description>
      <pubDate>Mon, 27 Jan 2020 21:34:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/KeyError-LaunchConfigurationName-in-Splunk-App-for-AWS/m-p/400445#M48856</guid>
      <dc:creator>adityapavan27</dc:creator>
      <dc:date>2020-01-27T21:34:58Z</dc:date>
    </item>
    <item>
      <title>Re: KeyError: 'LaunchConfigurationName' in Splunk App for AWS</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/KeyError-LaunchConfigurationName-in-Splunk-App-for-AWS/m-p/400446#M48857</link>
      <description>&lt;P&gt;Did you ever get this resolved?&lt;BR /&gt;
I'm getting the same exact error on a brand new Splunk AWS add-on installation (I have restarted it since the install).&lt;/P&gt;</description>
      <pubDate>Wed, 01 Apr 2020 03:48:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/KeyError-LaunchConfigurationName-in-Splunk-App-for-AWS/m-p/400446#M48857</guid>
      <dc:creator>brt</dc:creator>
      <dc:date>2020-04-01T03:48:00Z</dc:date>
    </item>
    <item>
      <title>Re: KeyError: 'LaunchConfigurationName' in Splunk App for AWS</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/KeyError-LaunchConfigurationName-in-Splunk-App-for-AWS/m-p/537329#M64705</link>
      <description>&lt;P&gt;I have had the same error.&amp;nbsp; I was able to eliminate that error by updating the ec2.py script as suggested by Splunk Support Team.&lt;/P&gt;&lt;P&gt;Update from Splunk Support:&lt;/P&gt;&lt;P&gt;Please try the following workaround&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Open %SPLUNK_HOME/etc/apps/Splunk_TA_aws/bin/splunk_ta_aws/modinputs/cloudwatch/discovery/ec2.py&lt;/LI&gt;&lt;LI&gt;Find&amp;nbsp;the following lines, those lines should be located at line 120 to line 123&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;for group in auto_scaling_groups: &amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;lcn = group['LaunchConfigurationName']&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;typename = configurations[lcn]&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;metric_names = self._create_metric_names(typename)&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Remove line 121 and hardcode the typename, it should&amp;nbsp;looks like the following text after editing&amp;nbsp;&amp;nbsp;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;for group in auto_scaling_groups:&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;typename = 'c5'&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;metric_names = self._create_metric_names(typename)&lt;/P&gt;&lt;P&gt;using your corresponding instance type.&lt;/P&gt;&lt;P&gt;There is a known limitation of AWS Launch template instance type detection.&lt;/P&gt;</description>
      <pubDate>Wed, 27 Jan 2021 01:58:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/KeyError-LaunchConfigurationName-in-Splunk-App-for-AWS/m-p/537329#M64705</guid>
      <dc:creator>ngohel</dc:creator>
      <dc:date>2021-01-27T01:58:45Z</dc:date>
    </item>
  </channel>
</rss>

