<?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: 'collect' command doesn't work in Splunk Enterprise</title>
    <link>https://community.splunk.com/t5/Splunk-Enterprise/Why-won-t-collect-command-work/m-p/627312#M15113</link>
    <description>&lt;P&gt;I've fixed the syntax but&amp;nbsp;unfortunately no behavior change.&lt;/P&gt;</description>
    <pubDate>Tue, 17 Jan 2023 08:31:25 GMT</pubDate>
    <dc:creator>shob4726</dc:creator>
    <dc:date>2023-01-17T08:31:25Z</dc:date>
    <item>
      <title>Why won't 'collect' command work?</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/Why-won-t-collect-command-work/m-p/627244#M15100</link>
      <description>&lt;P&gt;Hey,&lt;BR /&gt;I have a Splunk Enterprise environment with servers cluster of 4 SHDs, 5 HFDs and 3 Indexers.&lt;BR /&gt;In addition there is a number of alerts that are configured on my Search Heads, the alerts use the 'collect' command which indexes the returned events&lt;BR /&gt;from the query to some index.&lt;BR /&gt;For example:&lt;BR /&gt;index=Example ... | collect index=production&lt;/P&gt;
&lt;P&gt;It's worked for some time, approximately 6 months. But now, when I try to search for events on index "production", I get 0 events.&lt;BR /&gt;I searched for errors and bugs with the support of a Splunk specialist, but we didn't find a solution.&lt;/P&gt;
&lt;P&gt;One speculation that we had was the 'stashParsing' queue which configured on the SHDs and used by the 'collect' command.&lt;BR /&gt;We found on the '_internal' index logs about the queue 'max_size=500KB' and 'current_size'.&lt;BR /&gt;The 'current_size' values were 0 99.9% of the time and 494, 449, 320, 256 0.001% of the time on the last 30 days.&lt;BR /&gt;I have tried increasing the 'max_size' of the queue&lt;BR /&gt;I have created a file named 'server.conf' in the following location: $SPLUNK_HOME/etc/shcluster/apps/shd_base.&lt;BR /&gt;The file content is:&lt;BR /&gt;[stashparsing]&lt;BR /&gt;maxsize=600MB&lt;BR /&gt;I have distributed this to the SHDs cluster, but it did not seem to have any effect.&lt;/P&gt;
&lt;P&gt;Splunk version: 8.1.3&lt;BR /&gt;Linux version: Red Hat Linux Enterprise 7.8&lt;BR /&gt;This is an air-gapped environment so I cannot attach any logs or data.&lt;/P&gt;</description>
      <pubDate>Tue, 17 Jan 2023 20:16:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/Why-won-t-collect-command-work/m-p/627244#M15100</guid>
      <dc:creator>shob4726</dc:creator>
      <dc:date>2023-01-17T20:16:55Z</dc:date>
    </item>
    <item>
      <title>Re: 'collect' command doesn't work</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/Why-won-t-collect-command-work/m-p/627260#M15102</link>
      <description>&lt;P&gt;The stanza in the server.conf is wrong.&lt;/P&gt;&lt;P&gt;Reconfigure it as&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[queue=stashparsing]
maxSize=600MB&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;Could you try to execute an adhoc search and use the collect command for that result?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 16 Jan 2023 15:19:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/Why-won-t-collect-command-work/m-p/627260#M15102</guid>
      <dc:creator>PaulPanther</dc:creator>
      <dc:date>2023-01-16T15:19:13Z</dc:date>
    </item>
    <item>
      <title>Re: 'collect' command doesn't work</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/Why-won-t-collect-command-work/m-p/627312#M15113</link>
      <description>&lt;P&gt;I've fixed the syntax but&amp;nbsp;unfortunately no behavior change.&lt;/P&gt;</description>
      <pubDate>Tue, 17 Jan 2023 08:31:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/Why-won-t-collect-command-work/m-p/627312#M15113</guid>
      <dc:creator>shob4726</dc:creator>
      <dc:date>2023-01-17T08:31:25Z</dc:date>
    </item>
  </channel>
</rss>

