<?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: Filter AWS Cloudtrail readonly events in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Filter-AWS-Cloudtrail-readonly-events/m-p/556927#M92155</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/136095"&gt;@ColinJacksonPS&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can try following to send readOnly them to nullQueue. the REGEX matches "readOnly' = true in every event and if it find a match then those events won't be indexed. So make sure the readOnly events containing the operations/eventNAme that you do not want to index.&lt;/P&gt;&lt;P&gt;aws:cloudtrail is a default sourcetype when you set this in props.conf it applies to everything at platform level, instead if you want to limit to particular source/host use source:: , host:: type stanzas as provided here in example.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;#props.conf
[your_sourcetype/source::&amp;lt;source&amp;gt;/host::&amp;lt;hostname&amp;gt;]
TRANSFORMS-nullq= setreadonlytonullQ
 
#transforms.conf
[setreadonlytonullQ]
REGEX = \"readOnly\"\:\s+true
DEST_KEY = queue
FORMAT = nullQueue&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;----&lt;/P&gt;&lt;P&gt;An upvote would be appreciated and accept solutions if it helps!&lt;/P&gt;</description>
    <pubDate>Thu, 24 Jun 2021 03:48:40 GMT</pubDate>
    <dc:creator>venkatasri</dc:creator>
    <dc:date>2021-06-24T03:48:40Z</dc:date>
    <item>
      <title>Filter AWS Cloudtrail readonly events</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Filter-AWS-Cloudtrail-readonly-events/m-p/556906#M92152</link>
      <description>&lt;P&gt;Does anybody know a good way to filter out AWS Cloudtrail readonly events?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is what I have on my HF and jumping through hoops to get this on the IDM for Splunk Cloud.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;[cloudtrail_read_only]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;REGEX = "^Describe|Get|List\p{Lu}|LookupEvents"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;DEST_KEY = queue&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;FORMAT = nullQueue&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;and this to props.conf:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[aws:cloudtrail]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;#Strip out readOnly AWS events (i.e. Describe*, List*)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;TRANSFORMS-cloudtrail_read_only = cloudtrail_read_only&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Doesn't seem to be filtering. Thoughts?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Jun 2021 22:40:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Filter-AWS-Cloudtrail-readonly-events/m-p/556906#M92152</guid>
      <dc:creator>ColinJacksonPS</dc:creator>
      <dc:date>2021-06-23T22:40:11Z</dc:date>
    </item>
    <item>
      <title>Re: Filter AWS Cloudtrail readonly events</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Filter-AWS-Cloudtrail-readonly-events/m-p/556909#M92153</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/136095"&gt;@ColinJacksonPS&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you share sample event how it looks like covering Get*, List*, LookupEvents etc.. I am sure they don not start at very beginning of event since you mentioned ^ in regex which indicates very beginning of event.&amp;nbsp; REGEX shall be changed to match with event.&lt;/P&gt;</description>
      <pubDate>Thu, 24 Jun 2021 00:29:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Filter-AWS-Cloudtrail-readonly-events/m-p/556909#M92153</guid>
      <dc:creator>venkatasri</dc:creator>
      <dc:date>2021-06-24T00:29:51Z</dc:date>
    </item>
    <item>
      <title>Re: Filter AWS Cloudtrail readonly events</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Filter-AWS-Cloudtrail-readonly-events/m-p/556925#M92154</link>
      <description>&lt;P&gt;Here's what I can share. If this is working, readOnly=true should return no results, or at least those listed.&amp;nbsp; Raw, JSON formatted, and simple stats output.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2021-06-23 at 9.27.21 PM.png" style="width: 999px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/14782i30042DB4A6B71F81/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screen Shot 2021-06-23 at 9.27.21 PM.png" alt="Screen Shot 2021-06-23 at 9.27.21 PM.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2021-06-23 at 9.26.57 PM.png" style="width: 977px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/14784iF27F18270DE62F36/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screen Shot 2021-06-23 at 9.26.57 PM.png" alt="Screen Shot 2021-06-23 at 9.26.57 PM.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2021-06-23 at 9.27.11 PM.png" style="width: 999px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/14783i40A7C6BA7FE1D070/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screen Shot 2021-06-23 at 9.27.11 PM.png" alt="Screen Shot 2021-06-23 at 9.27.11 PM.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Jun 2021 03:31:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Filter-AWS-Cloudtrail-readonly-events/m-p/556925#M92154</guid>
      <dc:creator>ColinJacksonPS</dc:creator>
      <dc:date>2021-06-24T03:31:39Z</dc:date>
    </item>
    <item>
      <title>Re: Filter AWS Cloudtrail readonly events</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Filter-AWS-Cloudtrail-readonly-events/m-p/556927#M92155</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/136095"&gt;@ColinJacksonPS&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can try following to send readOnly them to nullQueue. the REGEX matches "readOnly' = true in every event and if it find a match then those events won't be indexed. So make sure the readOnly events containing the operations/eventNAme that you do not want to index.&lt;/P&gt;&lt;P&gt;aws:cloudtrail is a default sourcetype when you set this in props.conf it applies to everything at platform level, instead if you want to limit to particular source/host use source:: , host:: type stanzas as provided here in example.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;#props.conf
[your_sourcetype/source::&amp;lt;source&amp;gt;/host::&amp;lt;hostname&amp;gt;]
TRANSFORMS-nullq= setreadonlytonullQ
 
#transforms.conf
[setreadonlytonullQ]
REGEX = \"readOnly\"\:\s+true
DEST_KEY = queue
FORMAT = nullQueue&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;----&lt;/P&gt;&lt;P&gt;An upvote would be appreciated and accept solutions if it helps!&lt;/P&gt;</description>
      <pubDate>Thu, 24 Jun 2021 03:48:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Filter-AWS-Cloudtrail-readonly-events/m-p/556927#M92155</guid>
      <dc:creator>venkatasri</dc:creator>
      <dc:date>2021-06-24T03:48:40Z</dc:date>
    </item>
    <item>
      <title>Re: Filter AWS Cloudtrail readonly events</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Filter-AWS-Cloudtrail-readonly-events/m-p/557266#M92218</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/136095"&gt;@ColinJacksonPS&lt;/a&gt;&amp;nbsp;Appreciate if you could accept the solution. Hope it helped for your case.&lt;/P&gt;</description>
      <pubDate>Sat, 26 Jun 2021 22:41:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Filter-AWS-Cloudtrail-readonly-events/m-p/557266#M92218</guid>
      <dc:creator>venkatasri</dc:creator>
      <dc:date>2021-06-26T22:41:00Z</dc:date>
    </item>
  </channel>
</rss>

