<?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: Moving files and folders inputs to heavy forwarder in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Moving-files-and-folders-inputs-to-heavy-forwarder/m-p/406332#M72114</link>
    <description>&lt;P&gt;Thank you, will try during the nearest change&lt;/P&gt;</description>
    <pubDate>Wed, 27 Feb 2019 16:11:00 GMT</pubDate>
    <dc:creator>evelenke</dc:creator>
    <dc:date>2019-02-27T16:11:00Z</dc:date>
    <item>
      <title>Moving files and folders inputs to heavy forwarder</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Moving-files-and-folders-inputs-to-heavy-forwarder/m-p/406329#M72111</link>
      <description>&lt;P&gt;Hi Splunkers,&lt;/P&gt;

&lt;P&gt;we use approach to collect logs on syslog and than point Splunk on logs with Files &amp;amp; Directories inputs. All inputs were located on the indexer (single-node deployment). &lt;BR /&gt;
It was deployed another node as Heavy Forwarder, also with the purpose to move inputs there. &lt;BR /&gt;
Each folder has logs from particular asset, where data is collected and separated by date (deep structure). &lt;BR /&gt;
Previously we've moved about 30 inputs, and it worked nice and quick. Now we've moved around 700 inputs there. &lt;BR /&gt;
To avoid license violation (when Splunk potentially might re-index all old logs) we've added a stanza ignoreOlderThan=1d for each input. &lt;BR /&gt;
After restarting Splunk on the HF node, it takes a long time to start forwarding events to the indexer. &lt;BR /&gt;
As I understand it re-reads all the file structure to keep this "ignoreOld" policy. &lt;BR /&gt;
Question - how can we improve the process, what may we change in confihurations to speed-up processing and forwarding data in case new Splunk restarts on HF? &lt;/P&gt;</description>
      <pubDate>Sat, 23 Feb 2019 21:44:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Moving-files-and-folders-inputs-to-heavy-forwarder/m-p/406329#M72111</guid>
      <dc:creator>evelenke</dc:creator>
      <dc:date>2019-02-23T21:44:06Z</dc:date>
    </item>
    <item>
      <title>Re: Moving files and folders inputs to heavy forwarder</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Moving-files-and-folders-inputs-to-heavy-forwarder/m-p/406330#M72112</link>
      <description>&lt;P&gt;I assume you have setup ulimits as per splunk's recommendations on the Indexer and heavy forwarders.&lt;BR /&gt;
&lt;A href="https://docs.splunk.com/Documentation/Splunk/7.2.4/Installation/Systemrequirements"&gt;https://docs.splunk.com/Documentation/Splunk/7.2.4/Installation/Systemrequirements&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Also, if the old files are read and indexed, you can either delete or archive them on to a different folder or name, so they are not read again.&lt;/P&gt;

&lt;P&gt;Additionally, you can read only a certain number of directories or files (using name pattern/regex) and after they are indexed, you can add additional files/folders in stages [ you may need to have more than one monitor stanza as required]&lt;/P&gt;</description>
      <pubDate>Sat, 23 Feb 2019 22:29:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Moving-files-and-folders-inputs-to-heavy-forwarder/m-p/406330#M72112</guid>
      <dc:creator>lakshman239</dc:creator>
      <dc:date>2019-02-23T22:29:40Z</dc:date>
    </item>
    <item>
      <title>Re: Moving files and folders inputs to heavy forwarder</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Moving-files-and-folders-inputs-to-heavy-forwarder/m-p/406331#M72113</link>
      <description>&lt;P&gt;Hi @evelenke&lt;/P&gt;

&lt;P&gt;Your setup sounds quite similar than ours. We collect syslog with rsyslog and put them into a structured folder system like /var/log/rsyslog-splunk/uc////logfile.log&lt;/P&gt;

&lt;P&gt;We have also several hundreds of files on our servers. First of all make sure that you configure the ulimits as described by @lakshman239 (&lt;A href="https://docs.splunk.com/Documentation/Splunk/7.2.4/Installation/Systemrequirements"&gt;https://docs.splunk.com/Documentation/Splunk/7.2.4/Installation/Systemrequirements&lt;/A&gt;)&lt;/P&gt;

&lt;P&gt;We also raised the thruput limits (limits.conf): &lt;CODE&gt;maxKBps = 0&lt;/CODE&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[thruput]
maxKBps = &amp;lt;integer&amp;gt;
 If specified and not zero, this limits the speed through the thruput processor to the specified 
rate in kilobytes per second.
 To control the CPU load while indexing, use this to throttle the number of events this indexer 
processes to the rate (in KBps) you specify. 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The second config we did was raising the pipelines to 4 (server.conf). &lt;CODE&gt;parallelIngestionPipelines = 4&lt;/CODE&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;parallelIngestionPipelines = &amp;lt;integer&amp;gt;
* The number of discrete data ingestion pipeline sets to create for this
  instance.
* A pipeline set handles the processing of data, from receiving streams
  of events through event processing and writing the events to disk.
* An indexer that operates multiple pipeline sets can achieve improved
  performance with data parsing and disk writing, at the cost of additional 
  CPU cores. 
* For most installations, the default setting of "1" is optimal. 
* Use caution when changing this setting. Increasing the CPU usage for data 
  ingestion reduces available CPU cores for other tasks like searching.
* NOTE: Enabling multiple ingestion pipelines can change the behavior of some
  settings in other configuration files. Each ingestion pipeline enforces 
  the limits of the following settings independently:
    1. maxKBps (in the limits.conf file)
    2. max_fd (in the limits.conf file)
    3. maxHotBuckets (in the indexes.conf file)
    4. maxHotSpanSecs (in the indexes.conf file)
* Default: 1
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 24 Feb 2019 05:26:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Moving-files-and-folders-inputs-to-heavy-forwarder/m-p/406331#M72113</guid>
      <dc:creator>markusspitzli</dc:creator>
      <dc:date>2019-02-24T05:26:05Z</dc:date>
    </item>
    <item>
      <title>Re: Moving files and folders inputs to heavy forwarder</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Moving-files-and-folders-inputs-to-heavy-forwarder/m-p/406332#M72114</link>
      <description>&lt;P&gt;Thank you, will try during the nearest change&lt;/P&gt;</description>
      <pubDate>Wed, 27 Feb 2019 16:11:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Moving-files-and-folders-inputs-to-heavy-forwarder/m-p/406332#M72114</guid>
      <dc:creator>evelenke</dc:creator>
      <dc:date>2019-02-27T16:11:00Z</dc:date>
    </item>
    <item>
      <title>Re: Moving files and folders inputs to heavy forwarder</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Moving-files-and-folders-inputs-to-heavy-forwarder/m-p/406333#M72115</link>
      <description>&lt;P&gt;Thank you, will try during the nearest change&lt;/P&gt;</description>
      <pubDate>Wed, 27 Feb 2019 16:11:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Moving-files-and-folders-inputs-to-heavy-forwarder/m-p/406333#M72115</guid>
      <dc:creator>evelenke</dc:creator>
      <dc:date>2019-02-27T16:11:10Z</dc:date>
    </item>
  </channel>
</rss>

