<?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 AWS Missing feeds in Monitoring Splunk</title>
    <link>https://community.splunk.com/t5/Monitoring-Splunk/AWS-Missing-feeds/m-p/503696#M4210</link>
    <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I am in the process of creating an app for AWS sources and one of the objectives is to alert when an account stops sending events. As there are a number of sources per account I have settled on the one source that all accounts provide, CloudTrail. There may be a flaw in my logic but I will continue for now. I have looked at the TA's data however we aggregate into a single account so this would not be representative. The feeds are via either the AWS TA or HEC.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The problem I am having is to alert when the source stops, I have created a similar app to DMC i.e. a list of accounts feed into a lookup but the problem I am having is that unlike DMC there is no avg__tcp_kbps etc to understand if the feed has stopped. I also looked at taking the date_second, date_mday etc but need a way of updating the lookup csv with the values.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My questions is, has anyone done anything similar with AWS feeds or are there some values around time that I could use?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
    <pubDate>Wed, 10 Jun 2020 08:48:07 GMT</pubDate>
    <dc:creator>realtimetechnol</dc:creator>
    <dc:date>2020-06-10T08:48:07Z</dc:date>
    <item>
      <title>AWS Missing feeds</title>
      <link>https://community.splunk.com/t5/Monitoring-Splunk/AWS-Missing-feeds/m-p/503696#M4210</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I am in the process of creating an app for AWS sources and one of the objectives is to alert when an account stops sending events. As there are a number of sources per account I have settled on the one source that all accounts provide, CloudTrail. There may be a flaw in my logic but I will continue for now. I have looked at the TA's data however we aggregate into a single account so this would not be representative. The feeds are via either the AWS TA or HEC.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The problem I am having is to alert when the source stops, I have created a similar app to DMC i.e. a list of accounts feed into a lookup but the problem I am having is that unlike DMC there is no avg__tcp_kbps etc to understand if the feed has stopped. I also looked at taking the date_second, date_mday etc but need a way of updating the lookup csv with the values.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My questions is, has anyone done anything similar with AWS feeds or are there some values around time that I could use?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 10 Jun 2020 08:48:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Monitoring-Splunk/AWS-Missing-feeds/m-p/503696#M4210</guid>
      <dc:creator>realtimetechnol</dc:creator>
      <dc:date>2020-06-10T08:48:07Z</dc:date>
    </item>
    <item>
      <title>Re: AWS Missing feeds</title>
      <link>https://community.splunk.com/t5/Monitoring-Splunk/AWS-Missing-feeds/m-p/504028#M4217</link>
      <description>&lt;P&gt;I might have the wrong end of the stick (apologies)...&lt;/P&gt;&lt;P&gt;We collect Cloudtrail (and others) from a number (120+) of accounts into a single index and extract the account id at index time. You can then use tstats to quickly look when an account was last seen...&lt;/P&gt;&lt;P&gt;something like this might do it:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;#props.conf
[set_aws_account_id]
SOURCE_KEY = _raw
REGEX =  \"accountId\": \"([0-9]{12})\"
FORMAT = aws_account_id::$1

#transforms.conf
[aws:cloudtrail]
TRANSFORMS-get_aws_account_id=set_aws_account_id&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;Then search:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| tstats latest(_time) as latest where index=&amp;lt;your_aws_index&amp;gt; earliest=-24h by aws_account_id
| eval recent = if(latest &amp;gt; relative_time(now(),"-5m"),1,0), realLatest = strftime(latest,"%c")
| where recent=0&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 11 Jun 2020 23:27:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Monitoring-Splunk/AWS-Missing-feeds/m-p/504028#M4217</guid>
      <dc:creator>livehybrid</dc:creator>
      <dc:date>2020-06-11T23:27:01Z</dc:date>
    </item>
  </channel>
</rss>

