<?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: Elasticsearch integration events return limit in Cortex XSOAR Discussions</title>
    <link>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/elasticsearch-integration-events-return-limit/m-p/549561#M2321</link>
    <description>&lt;P&gt;Hi &lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/208028"&gt;@jfernandes1&lt;/a&gt;!&lt;/P&gt;
&lt;P&gt;Thanks for your reply. It was very helpful for the purpose of the post.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However, I would like to know if there is a way to create a loop to fetch all events to the end. I mean, I just created a built-in loop in a subplaybook that increments the page from 0 to 2. This method allows me to double search and retrieve 20k events, but what if there were 50k waiting to be retrieved?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My method allows to search, introducing a static parameter, those events. However, in the worst case, if instead of 50k, there were 20k, you would be making 3 queries that will not be efficient since there will be no results.&lt;BR /&gt;In the same way that if there were 100k events (instead of 50k), we would be "losing" events in the report.&lt;/P&gt;</description>
    <pubDate>Mon, 17 Jul 2023 11:38:31 GMT</pubDate>
    <dc:creator>SergioPalacios</dc:creator>
    <dc:date>2023-07-17T11:38:31Z</dc:date>
    <item>
      <title>Elasticsearch integration events return limit</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/elasticsearch-integration-events-return-limit/m-p/549365#M2318</link>
      <description>&lt;P&gt;Hello everyone!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am currently using the Elasticsearch integrations to retrieve events related to an incident or events for a specific report and generally have no issues with that. However, sometimes some "reports" have queries that retrieve +10k events.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Looking at the Elasticsearch integration, I can see that the maximum event count limit is 10k and I'm wondering if there is an "easy" solution to this.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I know that the Elasticserach API, when you need to search for more than 10k events, gives you a scroll_id that you can do a second query to and retrieve the rest of the events, but I haven't seen anything about this parameter or situation in the integration options by Elasticsearch&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is there a solution for this without developing a custom script based on the same Elasticsearch integration?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Fri, 14 Jul 2023 11:02:13 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/elasticsearch-integration-events-return-limit/m-p/549365#M2318</guid>
      <dc:creator>SergioPalacios</dc:creator>
      <dc:date>2023-07-14T11:02:13Z</dc:date>
    </item>
    <item>
      <title>Re: Elasticsearch integration events return limit</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/elasticsearch-integration-events-return-limit/m-p/549461#M2320</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/299305"&gt;@SergioPalacios&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Did you try the "page" option.&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2023-07-17 at 10.40.36 am.png" style="width: 773px;"&gt;&lt;img src="https://live.paloaltonetworks.com/t5/image/serverpage/image-id/51621i28790BA47C86CA2E/image-dimensions/773x121/is-moderation-mode/true?v=v2" width="773" height="121" role="button" title="Screenshot 2023-07-17 at 10.40.36 am.png" alt="Screenshot 2023-07-17 at 10.40.36 am.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can run the search command multiple times till the returned size is less than 10k. Please note that we not recommend storing large amounts of data inside the context. If not converted automatically, please save this as a file.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 17 Jul 2023 00:42:31 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/elasticsearch-integration-events-return-limit/m-p/549461#M2320</guid>
      <dc:creator>jfernandes1</dc:creator>
      <dc:date>2023-07-17T00:42:31Z</dc:date>
    </item>
    <item>
      <title>Re: Elasticsearch integration events return limit</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/elasticsearch-integration-events-return-limit/m-p/549561#M2321</link>
      <description>&lt;P&gt;Hi &lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/208028"&gt;@jfernandes1&lt;/a&gt;!&lt;/P&gt;
&lt;P&gt;Thanks for your reply. It was very helpful for the purpose of the post.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However, I would like to know if there is a way to create a loop to fetch all events to the end. I mean, I just created a built-in loop in a subplaybook that increments the page from 0 to 2. This method allows me to double search and retrieve 20k events, but what if there were 50k waiting to be retrieved?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My method allows to search, introducing a static parameter, those events. However, in the worst case, if instead of 50k, there were 20k, you would be making 3 queries that will not be efficient since there will be no results.&lt;BR /&gt;In the same way that if there were 100k events (instead of 50k), we would be "losing" events in the report.&lt;/P&gt;</description>
      <pubDate>Mon, 17 Jul 2023 11:38:31 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/elasticsearch-integration-events-return-limit/m-p/549561#M2321</guid>
      <dc:creator>SergioPalacios</dc:creator>
      <dc:date>2023-07-17T11:38:31Z</dc:date>
    </item>
  </channel>
</rss>

