<?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: Splunk for Cloudwatch in Splunk Dev</title>
    <link>https://community.splunk.com/t5/Splunk-Dev/Splunk-for-Cloudwatch/m-p/35529#M413</link>
    <description>&lt;P&gt;Hi, &lt;/P&gt;

&lt;P&gt;Looks like you are trying to call &lt;CODE&gt;set_message_class&lt;/CODE&gt; on a 'NoneType' .. so my bet is that what was returned from &lt;CODE&gt;sqs.get_queue(queue_name)&lt;/CODE&gt; was None .. i.e you dont have a SQS queue with that name set up in your account.&lt;/P&gt;

&lt;P&gt;Wal&lt;/P&gt;</description>
    <pubDate>Thu, 15 Aug 2013 03:07:05 GMT</pubDate>
    <dc:creator>walmc</dc:creator>
    <dc:date>2013-08-15T03:07:05Z</dc:date>
    <item>
      <title>Splunk for Cloudwatch</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Splunk-for-Cloudwatch/m-p/35528#M412</link>
      <description>&lt;P&gt;Hi Folks,&lt;/P&gt;

&lt;P&gt;I was wondering if you ladies/gents could help me.  I'm trying to integrate Splunk for Cloudwatch to pick up message that are in an SQS.  I have created and SNS and test alarms and I can see these passing the the SQS.&lt;/P&gt;

&lt;P&gt;I have also created and AWS secret key and an access key to query the cloudwatch and edited this in the aws_sqs.py&lt;/P&gt;

&lt;P&gt;access_key = 'blah'&lt;BR /&gt;
secret_key = 'blah'&lt;BR /&gt;
queue_name = 'splunk_cloudwatch_test_sqs'&lt;/P&gt;

&lt;P&gt;Unfortunately I'm getting an error when I'm attempting to poll the SQS as seen in the output below.&lt;/P&gt;

&lt;P&gt;[*************** bin]# ./aws_sqs.py&lt;BR /&gt;
Traceback (most recent call last):&lt;BR /&gt;
  File "./aws_sqs.py", line 45, in &lt;MODULE&gt;&lt;BR /&gt;
    q.set_message_class(RawMessage)&lt;BR /&gt;
AttributeError: 'NoneType' object has no attribute 'set_message_class'&lt;BR /&gt;
[*************** bin]# &lt;/MODULE&gt;&lt;/P&gt;

&lt;P&gt;Could anyone point me in the right direction as to what I'm missing that could be causing this issue?&lt;/P&gt;

&lt;P&gt;Regards&lt;BR /&gt;
Michael&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 14:34:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Splunk-for-Cloudwatch/m-p/35528#M412</guid>
      <dc:creator>michaeloleary</dc:creator>
      <dc:date>2020-09-28T14:34:32Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk for Cloudwatch</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Splunk-for-Cloudwatch/m-p/35529#M413</link>
      <description>&lt;P&gt;Hi, &lt;/P&gt;

&lt;P&gt;Looks like you are trying to call &lt;CODE&gt;set_message_class&lt;/CODE&gt; on a 'NoneType' .. so my bet is that what was returned from &lt;CODE&gt;sqs.get_queue(queue_name)&lt;/CODE&gt; was None .. i.e you dont have a SQS queue with that name set up in your account.&lt;/P&gt;

&lt;P&gt;Wal&lt;/P&gt;</description>
      <pubDate>Thu, 15 Aug 2013 03:07:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Splunk-for-Cloudwatch/m-p/35529#M413</guid>
      <dc:creator>walmc</dc:creator>
      <dc:date>2013-08-15T03:07:05Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk for Cloudwatch</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Splunk-for-Cloudwatch/m-p/35530#M414</link>
      <description>&lt;P&gt;Actually it was just a problem with the version of python-boto that was installed on the system.  Version 2.5 of python-boto was installed by upgrading to python-boto 2.10 the issue was solved and now I can see all regions.  Just something to watch out for if you guys are doing any work with AWS in the future.  I also explicitly told the script to connect to the APAC southeast 2 region using the boto.sqs.connect_to_region() object found in the docs below.&lt;/P&gt;

&lt;P&gt;Docs:&lt;BR /&gt;
&lt;A href="http://boto.readthedocs.org/en/latest/sqs_tut.html" target="_blank"&gt;http://boto.readthedocs.org/en/latest/sqs_tut.html&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;[RegionInfo:us-east-1, RegionInfo:eu-west-1, RegionInfo:us-west-1, RegionInfo:us-west-2, RegionInfo:sa-east-1, RegionInfo:ap-northeast-1, RegionInfo:ap-southeast-1, RegionInfo:ap-southeast-2]&lt;BR /&gt;
2.10.0&lt;BR /&gt;
[Queue(&lt;A href="https://ap-southeast-2.queue.amazonaws.com/" target="_blank"&gt;https://ap-southeast-2.queue.amazonaws.com/&lt;/A&gt;&lt;ACC_NUMBER&gt;/splunk_test_queue_ap_southeast_2)]&lt;/ACC_NUMBER&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 14:35:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Splunk-for-Cloudwatch/m-p/35530#M414</guid>
      <dc:creator>michaeloleary</dc:creator>
      <dc:date>2020-09-28T14:35:09Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk for Cloudwatch</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Splunk-for-Cloudwatch/m-p/35531#M415</link>
      <description>&lt;P&gt;The queue was setup but because python-boto 2.5 was unable to see the ap-southeast-2 region It was returning None instead of the queue that I created.   Cheers Walmc for the information, I'm not really a python programmer so the info you gave me got me started on the right track.&lt;/P&gt;</description>
      <pubDate>Thu, 15 Aug 2013 23:52:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Splunk-for-Cloudwatch/m-p/35531#M415</guid>
      <dc:creator>michaeloleary</dc:creator>
      <dc:date>2013-08-15T23:52:57Z</dc:date>
    </item>
  </channel>
</rss>

