<?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: Getting error when trying to send cloud watch alerts using lambda function in AWS. in Splunk Dev</title>
    <link>https://community.splunk.com/t5/Splunk-Dev/Getting-error-when-trying-to-send-cloud-watch-alerts-using/m-p/531904#M9133</link>
    <description>&lt;P&gt;We had the same problem when trying to set this up for the first time. We discovered that the lambda function is expecting the json from CloudWatch and not the default test event. The CloudWatch json has a data field that the function decodes from base64. Replacing the test event with the json below should work.&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;{
  "awslogs": {
    "data": "QVdTIGxvZyBjb250ZW50"
  }
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 03 Dec 2020 18:30:28 GMT</pubDate>
    <dc:creator>jschroederevers</dc:creator>
    <dc:date>2020-12-03T18:30:28Z</dc:date>
    <item>
      <title>Getting error when trying to send cloud watch alerts using lambda function in AWS.</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Getting-error-when-trying-to-send-cloud-watch-alerts-using/m-p/510755#M9132</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm trying send cloud watch alerts to Splunk using lambda and I created lambda function using blueprint "&lt;SPAN&gt;splunk-cloudwatch-logs-processor&lt;/SPAN&gt;" in AWS but function throwing me an error:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;START RequestId: 61c99093-e39e-4e86-90b3-1b97415aaa2c Version: $LATEST
2020-07-23T23:29:33.236Z	61c99093-e39e-4e86-90b3-1b97415aaa2c	INFO	Received event: {
  "key1": "value1",
  "key2": "value2",
  "key3": "value3"
}
2020-07-23T23:29:33.236Z	61c99093-e39e-4e86-90b3-1b97415aaa2c	ERROR	Invoke Error 	{"errorType":"TypeError","errorMessage":"Cannot read property 'data' of undefined","stack":["TypeError: Cannot read property 'data' of undefined","    at Runtime.exports.handler (/var/task/index.js:31:47)","    at Runtime.handleOnce (/var/runtime/Runtime.js:66:25)"]}
END RequestId: 61c99093-e39e-4e86-90b3-1b97415aaa2c
REPORT RequestId: 61c99093-e39e-4e86-90b3-1b97415aaa2c	Duration: 4.30 ms	Billed Duration: 100 ms	Memory Size: 512 MB	Max Memory Used: 66 MB	&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any suggestions?&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Sun, 26 Jul 2020 17:51:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Getting-error-when-trying-to-send-cloud-watch-alerts-using/m-p/510755#M9132</guid>
      <dc:creator>nagarajsf</dc:creator>
      <dc:date>2020-07-26T17:51:36Z</dc:date>
    </item>
    <item>
      <title>Re: Getting error when trying to send cloud watch alerts using lambda function in AWS.</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Getting-error-when-trying-to-send-cloud-watch-alerts-using/m-p/531904#M9133</link>
      <description>&lt;P&gt;We had the same problem when trying to set this up for the first time. We discovered that the lambda function is expecting the json from CloudWatch and not the default test event. The CloudWatch json has a data field that the function decodes from base64. Replacing the test event with the json below should work.&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;{
  "awslogs": {
    "data": "QVdTIGxvZyBjb250ZW50"
  }
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Dec 2020 18:30:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Getting-error-when-trying-to-send-cloud-watch-alerts-using/m-p/531904#M9133</guid>
      <dc:creator>jschroederevers</dc:creator>
      <dc:date>2020-12-03T18:30:28Z</dc:date>
    </item>
  </channel>
</rss>

