<?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 How to prevent Splunk from streaming / chunking data to custom search commands? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-prevent-Splunk-from-streaming-chunking-data-to-custom/m-p/601593#M209368</link>
    <description>&lt;P&gt;Hi all,&lt;/P&gt;
&lt;P&gt;I encountered the problem in MLTK that the data from the search is passed in multiple chunks to my custom classifier (using the apply command). &lt;SPAN&gt;Interestingly enough, the fit command passes the entire dataframe to the apply method of the custom classifier as shown below.&lt;/SPAN&gt;&lt;/P&gt;
&lt;DIV class=""&gt;&lt;STRONG&gt;Search with apply&lt;/STRONG&gt;&lt;/DIV&gt;
&lt;PRE&gt;index=test
| apply model

PID 10489 2022-06-12 22:35:13,604 INFO [mlspl.ECOD Logger] [apply] Length of dataframe: 50
PID 10489 2022-06-12 22:35:13,730 INFO [mlspl.ECOD Logger] [apply] Length of dataframe: 205
PID 10489 2022-06-12 22:35:13,821 INFO [mlspl.ECOD Logger] [apply] Length of dataframe: 41&lt;/PRE&gt;
&lt;DIV class=""&gt;&lt;STRONG&gt;Search with fit command&lt;/STRONG&gt;&lt;/DIV&gt;
&lt;PRE&gt;index=test
| fit ECOD date_hour into model

PID 8345 2022-06-12 22:27:50,867 INFO [mlspl.ECOD Logger] [apply] Length of dataframe: 296&lt;/PRE&gt;
&lt;P&gt;The second one is the behavior I want since I need the data as a single batch. Setting "chunked=false" in the commands.conf to use the legacy protocol does not work because MLTK is not compatible with v1. Setting "streaming=false"&amp;nbsp; also has no effect. Does anyone know how I can prevent Splunk from splitting the data in multiple chunks?&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Any help is appreciated! Thanks.&lt;/SPAN&gt;&lt;SPAN class=""&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 13 Jun 2022 20:33:02 GMT</pubDate>
    <dc:creator>pmunaret</dc:creator>
    <dc:date>2022-06-13T20:33:02Z</dc:date>
    <item>
      <title>How to prevent Splunk from streaming / chunking data to custom search commands?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-prevent-Splunk-from-streaming-chunking-data-to-custom/m-p/601593#M209368</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;
&lt;P&gt;I encountered the problem in MLTK that the data from the search is passed in multiple chunks to my custom classifier (using the apply command). &lt;SPAN&gt;Interestingly enough, the fit command passes the entire dataframe to the apply method of the custom classifier as shown below.&lt;/SPAN&gt;&lt;/P&gt;
&lt;DIV class=""&gt;&lt;STRONG&gt;Search with apply&lt;/STRONG&gt;&lt;/DIV&gt;
&lt;PRE&gt;index=test
| apply model

PID 10489 2022-06-12 22:35:13,604 INFO [mlspl.ECOD Logger] [apply] Length of dataframe: 50
PID 10489 2022-06-12 22:35:13,730 INFO [mlspl.ECOD Logger] [apply] Length of dataframe: 205
PID 10489 2022-06-12 22:35:13,821 INFO [mlspl.ECOD Logger] [apply] Length of dataframe: 41&lt;/PRE&gt;
&lt;DIV class=""&gt;&lt;STRONG&gt;Search with fit command&lt;/STRONG&gt;&lt;/DIV&gt;
&lt;PRE&gt;index=test
| fit ECOD date_hour into model

PID 8345 2022-06-12 22:27:50,867 INFO [mlspl.ECOD Logger] [apply] Length of dataframe: 296&lt;/PRE&gt;
&lt;P&gt;The second one is the behavior I want since I need the data as a single batch. Setting "chunked=false" in the commands.conf to use the legacy protocol does not work because MLTK is not compatible with v1. Setting "streaming=false"&amp;nbsp; also has no effect. Does anyone know how I can prevent Splunk from splitting the data in multiple chunks?&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Any help is appreciated! Thanks.&lt;/SPAN&gt;&lt;SPAN class=""&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 13 Jun 2022 20:33:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-prevent-Splunk-from-streaming-chunking-data-to-custom/m-p/601593#M209368</guid>
      <dc:creator>pmunaret</dc:creator>
      <dc:date>2022-06-13T20:33:02Z</dc:date>
    </item>
    <item>
      <title>Re: Prevent Splunk from streaming / chunking data to custom search commands?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-prevent-Splunk-from-streaming-chunking-data-to-custom/m-p/601599#M209371</link>
      <description>&lt;DIV class=""&gt;I just tested it with the collapse command and it kinda works, however, I'm not a fan of using an internal command that is designed for debugging / testing.&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;STRONG&gt;Search with apply&lt;/STRONG&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;PRE&gt;index=test
| collapse
| apply model

PID 10489 2022-06-13 19:00:02,152 INFO [mlspl.ECOD Logger] [apply] Length of dataframe: &lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;296&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/PRE&gt;&lt;DIV class=""&gt;&lt;SPAN&gt;If anyone has a better way to do this, let me know. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 13 Jun 2022 17:11:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-prevent-Splunk-from-streaming-chunking-data-to-custom/m-p/601599#M209371</guid>
      <dc:creator>pmunaret</dc:creator>
      <dc:date>2022-06-13T17:11:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to prevent Splunk from streaming / chunking data to custom search commands?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-prevent-Splunk-from-streaming-chunking-data-to-custom/m-p/655349#M226385</link>
      <description>&lt;P&gt;Were you able to come up with a better solution for this?&lt;/P&gt;</description>
      <pubDate>Wed, 23 Aug 2023 14:25:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-prevent-Splunk-from-streaming-chunking-data-to-custom/m-p/655349#M226385</guid>
      <dc:creator>rlalle</dc:creator>
      <dc:date>2023-08-23T14:25:40Z</dc:date>
    </item>
  </channel>
</rss>

