<?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: RQL - Checking tags using _DateTime function in Prisma Cloud Discussions</title>
    <link>https://live.paloaltonetworks.com/t5/prisma-cloud-discussions/rql-checking-tags-using-datetime-function/m-p/566057#M1102</link>
    <description>&lt;P&gt;It seems that the way the &lt;A href="https://docs.prismacloud.io/en/classic/rql-reference/rql-reference/operators" target="_self"&gt;documentation&lt;/A&gt; is written that while it is possible to use the _DateTime function to get the various time and age related properties from a resources, it doesen't seem to be possible to use it to get the time and date of &lt;STRONG&gt;attributes&lt;/STRONG&gt; of the resources.&amp;nbsp; If you look at the examples, you can use the TimeDate function against resources an EC2 instance or a key, but not from an attribute of the recourse, like a tag.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 16 Nov 2023 20:41:36 GMT</pubDate>
    <dc:creator>JCalloway1</dc:creator>
    <dc:date>2023-11-16T20:41:36Z</dc:date>
    <item>
      <title>RQL - Checking tags using _DateTime function</title>
      <link>https://live.paloaltonetworks.com/t5/prisma-cloud-discussions/rql-checking-tags-using-datetime-function/m-p/565893#M1101</link>
      <description>&lt;P&gt;Can _DateTime function be used to check the date of a tag on a resource in AWS? My current query syntax is accepted by prisma however the _DateTime functions are not actually checking the tag (type string because all tags are strings in AWS) so it is returning undesired output.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Current query (should return all volumes with a (tag.key=Retain).value greater than 365 days old:&lt;BR /&gt;config from cloud.resource where cloud.type = 'aws' AND api.name = 'aws-ec2-describe-volumes' AND AND json.rule = _DateTime.ageInDays(tags[?(@.key=='Retain')].value) &amp;gt; 365 addcolumn tags[?(@.key=='Retain')].value&lt;BR /&gt;&lt;BR /&gt;Are there any examples of checking a tag using the _DateTime function or any other ways to work with a date in prisma to check the value of a tag's date? Or any useful links/resources to look into this further are appreciated!&amp;nbsp;&lt;LI-PRODUCT title="Prisma Cloud" id="Prisma_Cloud"&gt;&lt;/LI-PRODUCT&gt;&amp;nbsp;&lt;LI-PRODUCT title="AWS" id="AWS"&gt;&lt;/LI-PRODUCT&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Nov 2023 21:06:36 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/prisma-cloud-discussions/rql-checking-tags-using-datetime-function/m-p/565893#M1101</guid>
      <dc:creator>awsrqlqueryuser</dc:creator>
      <dc:date>2023-11-15T21:06:36Z</dc:date>
    </item>
    <item>
      <title>Re: RQL - Checking tags using _DateTime function</title>
      <link>https://live.paloaltonetworks.com/t5/prisma-cloud-discussions/rql-checking-tags-using-datetime-function/m-p/566057#M1102</link>
      <description>&lt;P&gt;It seems that the way the &lt;A href="https://docs.prismacloud.io/en/classic/rql-reference/rql-reference/operators" target="_self"&gt;documentation&lt;/A&gt; is written that while it is possible to use the _DateTime function to get the various time and age related properties from a resources, it doesen't seem to be possible to use it to get the time and date of &lt;STRONG&gt;attributes&lt;/STRONG&gt; of the resources.&amp;nbsp; If you look at the examples, you can use the TimeDate function against resources an EC2 instance or a key, but not from an attribute of the recourse, like a tag.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Nov 2023 20:41:36 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/prisma-cloud-discussions/rql-checking-tags-using-datetime-function/m-p/566057#M1102</guid>
      <dc:creator>JCalloway1</dc:creator>
      <dc:date>2023-11-16T20:41:36Z</dc:date>
    </item>
  </channel>
</rss>

