<?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: Alert on stale access keys that have not been rotated in Splunk Enterprise</title>
    <link>https://community.splunk.com/t5/Splunk-Enterprise/Alert-on-stale-access-keys-that-have-not-been-rotated/m-p/531038#M4300</link>
    <description>&lt;P&gt;Hey Rich,&lt;/P&gt;&lt;P&gt;I can run this query at max for the past 7 days or so before the search times (using the standard time picker in search) out as its quite intensive on the search head. In my particular query here I know its looking at past 30 days but as the search can only target 7 days worth of information before timing out, Im missing the whole picture?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Just wondering if there is a way to make it more efficient by using a tstats based search? although feel like that would need a separate datamodel to pick up on the search fields?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;Tom&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 26 Nov 2020 17:07:51 GMT</pubDate>
    <dc:creator>OiskyPoisky</dc:creator>
    <dc:date>2020-11-26T17:07:51Z</dc:date>
    <item>
      <title>Alert on stale access keys that have not been rotated</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/Alert-on-stale-access-keys-that-have-not-been-rotated/m-p/531007#M4294</link>
      <description>&lt;P&gt;Afternoon Team,&lt;/P&gt;&lt;P&gt;Was hoping to get some assistance with building an alert in Splunk Enterprise Security that can pick up on old aws keys that were created in the past at a certain point - potentially 6 months for example. The below is a preliminary alert that im building but could use some guidance.&amp;nbsp;&lt;/P&gt;&lt;P&gt;We are ingesting events from AWS cloudtrail.&lt;BR /&gt;&lt;BR /&gt;index="aws-cloud-trail" responseElements.accessKey.accessKeyId=AKIA*&lt;BR /&gt;| spath eventName&lt;BR /&gt;| search eventName=CreateAccessKey userIdentity.type!=AssumedRole&lt;BR /&gt;| rename responseElements.accessKey.createDate as creationdate&lt;BR /&gt;| eval creationdate=strptime(creationdate, "%H:%M.%S %p, %a %m/%d/%Y")&lt;BR /&gt;| where creationdate &amp;lt; (now() - (86400 * 30))&lt;BR /&gt;| table sourceIPAddress userName src_user userIdentity.type userAgent action status creationdate&lt;BR /&gt;responseElements.accessKey.status responseElements.accessKey.accessKeyId&lt;BR /&gt;&lt;BR /&gt;Has anyone else come across something similar?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Be great to hear from you! Happy to lend more context if needed.&lt;/P&gt;</description>
      <pubDate>Thu, 26 Nov 2020 13:19:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/Alert-on-stale-access-keys-that-have-not-been-rotated/m-p/531007#M4294</guid>
      <dc:creator>OiskyPoisky</dc:creator>
      <dc:date>2020-11-26T13:19:14Z</dc:date>
    </item>
    <item>
      <title>Re: Alert on stale access keys that have not been rotated</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/Alert-on-stale-access-keys-that-have-not-been-rotated/m-p/531024#M4297</link>
      <description>&lt;P&gt;What seems to be the problem with that query?&lt;/P&gt;</description>
      <pubDate>Thu, 26 Nov 2020 15:49:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/Alert-on-stale-access-keys-that-have-not-been-rotated/m-p/531024#M4297</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2020-11-26T15:49:35Z</dc:date>
    </item>
    <item>
      <title>Re: Alert on stale access keys that have not been rotated</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/Alert-on-stale-access-keys-that-have-not-been-rotated/m-p/531038#M4300</link>
      <description>&lt;P&gt;Hey Rich,&lt;/P&gt;&lt;P&gt;I can run this query at max for the past 7 days or so before the search times (using the standard time picker in search) out as its quite intensive on the search head. In my particular query here I know its looking at past 30 days but as the search can only target 7 days worth of information before timing out, Im missing the whole picture?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Just wondering if there is a way to make it more efficient by using a tstats based search? although feel like that would need a separate datamodel to pick up on the search fields?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;Tom&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 26 Nov 2020 17:07:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/Alert-on-stale-access-keys-that-have-not-been-rotated/m-p/531038#M4300</guid>
      <dc:creator>OiskyPoisky</dc:creator>
      <dc:date>2020-11-26T17:07:51Z</dc:date>
    </item>
    <item>
      <title>Re: Alert on stale access keys that have not been rotated</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/Alert-on-stale-access-keys-that-have-not-been-rotated/m-p/531047#M4301</link>
      <description>&lt;P&gt;tstats won't help in this case because you need to return entire events rather than just statistics.&lt;/P&gt;&lt;P&gt;Try being more specific before the first pipe.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index="aws-cloud-trail" responseElements.accessKey.accessKeyId=AKIA* sourcetype=foo "eventName"
| spath eventName
...&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 26 Nov 2020 19:23:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/Alert-on-stale-access-keys-that-have-not-been-rotated/m-p/531047#M4301</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2020-11-26T19:23:34Z</dc:date>
    </item>
    <item>
      <title>Re: Alert on stale access keys that have not been rotated</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/Alert-on-stale-access-keys-that-have-not-been-rotated/m-p/532027#M4353</link>
      <description>&lt;P&gt;Hey Rich,&lt;/P&gt;&lt;P&gt;Sorry for the delay in responding. Confirming that really helped with being more specific before the first pipe.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Much Appreciated &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 04 Dec 2020 14:29:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/Alert-on-stale-access-keys-that-have-not-been-rotated/m-p/532027#M4353</guid>
      <dc:creator>OiskyPoisky</dc:creator>
      <dc:date>2020-12-04T14:29:19Z</dc:date>
    </item>
  </channel>
</rss>

