<?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: Rules for new install server in Cortex XDR Discussions</title>
    <link>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/rules-for-new-install-server/m-p/529429#M3515</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/142551"&gt;@neelrohit&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for your reply!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sorry I am new to Cortex so I don't understand how this alert can help me creating that new server policy.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is this a query to list out the servers installed older than 30days and then I remove the servers from the my policy(&lt;SPAN&gt;installed the agent in the last 30days) according to the query result?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 01 Feb 2023 08:48:50 GMT</pubDate>
    <dc:creator>DCHKen_Yu</dc:creator>
    <dc:date>2023-02-01T08:48:50Z</dc:date>
    <item>
      <title>Rules for new install server</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/rules-for-new-install-server/m-p/529415#M3512</link>
      <description>&lt;P&gt;I would like to set a detect rule for the servers which installed the agent in the last 30days. After 30 days, Those servers will be applied for block rule.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The current setting is to select the server in the target and remove it from the target after 30days.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In Edit Policy, Target, I can't add install date in the filter. Is there any other way to do this automatically?&lt;/P&gt;</description>
      <pubDate>Wed, 01 Feb 2023 06:34:46 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/rules-for-new-install-server/m-p/529415#M3512</guid>
      <dc:creator>DCHKen_Yu</dc:creator>
      <dc:date>2023-02-01T06:34:46Z</dc:date>
    </item>
    <item>
      <title>Re: Rules for new install server</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/rules-for-new-install-server/m-p/529425#M3514</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/263230"&gt;@DCHKen_Yu&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you for writing to live community!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can do that by creating alerts in form of correlation rules by writing an XQL query on endpoints dataset.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="python"&gt;dataset = endpoints
| fields endpoint_status, last_seen, endpoint_name, endpoint_type, install_date , first_seen 
| alter ct = current_time()
| alter diff = timestamp_diff(ct, install_date, "DAY")
| filter endpoint_status != ENUM.CONNECTION_LOST  and endpoint_type = TYPE_SERVER and diff &amp;gt;= 30&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The above query should be saved as a correlation rule and should be able to help you.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please mark the response as "Accept as Solution" if it helps!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards&lt;/P&gt;</description>
      <pubDate>Wed, 01 Feb 2023 08:15:46 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/rules-for-new-install-server/m-p/529425#M3514</guid>
      <dc:creator>neelrohit</dc:creator>
      <dc:date>2023-02-01T08:15:46Z</dc:date>
    </item>
    <item>
      <title>Re: Rules for new install server</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/rules-for-new-install-server/m-p/529429#M3515</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/142551"&gt;@neelrohit&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for your reply!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sorry I am new to Cortex so I don't understand how this alert can help me creating that new server policy.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is this a query to list out the servers installed older than 30days and then I remove the servers from the my policy(&lt;SPAN&gt;installed the agent in the last 30days) according to the query result?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Feb 2023 08:48:50 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/rules-for-new-install-server/m-p/529429#M3515</guid>
      <dc:creator>DCHKen_Yu</dc:creator>
      <dc:date>2023-02-01T08:48:50Z</dc:date>
    </item>
    <item>
      <title>Re: Rules for new install server</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/rules-for-new-install-server/m-p/529443#M3521</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/263230"&gt;@DCHKen_Yu&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You will have to create a server policy on your own. Just create a policy rule in report mode for all servers/ workstations(depending upon your choice)&lt;/P&gt;
&lt;P&gt;If your requirement is that you want to keep servers or endpoints in report mode for 30 days of monitoring and then move them to block mode policy after that, then this query will help you list down those servers and then you can tag them/alias them.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Alternatively, just query and dowload the list of endpoints, put them in a notepad file and upload it to endpoint groups, tag all the endpoints of the group as some keyword of your choice (eg. "setblock" or "block" or "30days" etc.) and then you can delete the endpoint group.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Under your block mode policy rule target parameter, put a filter as per your choice with the tag. (Eg. Endpoint type= server and tags=30days) and place it on top of your report mode policy rule.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The moment you tag the endpoints, the endpoints will automatically take the block mode policy in the next heartbeat.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please mark the response "Accept as Solution" if it helps.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Feb 2023 10:34:14 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/rules-for-new-install-server/m-p/529443#M3521</guid>
      <dc:creator>neelrohit</dc:creator>
      <dc:date>2023-02-01T10:34:14Z</dc:date>
    </item>
    <item>
      <title>Re: Rules for new install server</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/rules-for-new-install-server/m-p/529555#M3527</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/142551"&gt;@neelrohit&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I searched for the XQL Language Reference and found that there is an "add" command that seems tag a dataset.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So, can I save the XQL query you provided to create a dataset named&amp;nbsp;ServersMoreThan30Days, then run a XQL query to tag the dataset like below and apply the tag to the policy?&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;dataset = ServersMoreThan30Days
| tag add "ServersMoreThan30Days"&lt;/LI-CODE&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;
&lt;P&gt;Or run a XQL like below?&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;dataset = endpoints
| fields endpoint_status, last_seen, endpoint_name, endpoint_type, install_date , first_seen 
| alter ct = current_time()
| alter diff = timestamp_diff(ct, install_date, "DAY")
| filter endpoint_status != ENUM.CONNECTION_LOST  and endpoint_type = TYPE_SERVER and diff &amp;gt;= 30
| target type = dataset ServersMoreThan30Days 
dataset = ServersMoreThan30Days
| tag add "ServersMoreThan30Days"&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for your help!&lt;/P&gt;</description>
      <pubDate>Thu, 02 Feb 2023 02:33:27 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/rules-for-new-install-server/m-p/529555#M3527</guid>
      <dc:creator>DCHKen_Yu</dc:creator>
      <dc:date>2023-02-02T02:33:27Z</dc:date>
    </item>
    <item>
      <title>Re: Rules for new install server</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/rules-for-new-install-server/m-p/530127#M3581</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/263230"&gt;@DCHKen_Yu&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If the above response was able to help, please mark the response as "Accept as Solution". Thank you.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2023-02-07 at 11.03.12 PM.png" style="width: 999px;"&gt;&lt;img src="https://live.paloaltonetworks.com/t5/image/serverpage/image-id/47696iA813DB54036A4EAC/image-size/large/is-moderation-mode/true?v=v2&amp;amp;px=999" role="button" title="Screenshot 2023-02-07 at 11.03.12 PM.png" alt="Screenshot 2023-02-07 at 11.03.12 PM.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt; &lt;/P&gt;</description>
      <pubDate>Tue, 07 Feb 2023 15:03:27 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/rules-for-new-install-server/m-p/530127#M3581</guid>
      <dc:creator>neelrohit</dc:creator>
      <dc:date>2023-02-07T15:03:27Z</dc:date>
    </item>
  </channel>
</rss>

