<?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: Memory Spike on Universal Forwarder when specific inputs.conf stanza is included in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Memory-Spike-on-Universal-Forwarder-when-specific-inputs-conf/m-p/679801#M113598</link>
    <description>&lt;P&gt;Thanks for the reply.&amp;nbsp; I was able to resolve the issue today.&amp;nbsp; The issue was not load.&amp;nbsp; As mentioned, there are only a handful of files that actually match the criteria and they see infrequent updates - under 10 new entries per minute I would estimate.&lt;/P&gt;&lt;P&gt;The issue ended up being the stanza itself being too vague.&amp;nbsp; I'm not sure how Splunk monitors/parses these internally but I believe there is room for improvement.&amp;nbsp; Once I split out the stanzas into a couple that cover the majority of our use-cases the memory dropped back down to around 200MB.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The new stanzas for anyone else finding this in the future eliminated the `...` wildcard and replaced it with a single-level one by including a couple stanzas for the common places these logs would be found:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[monitor:///var/www/*/storage/logs/laravel*.log]
index = lh-linux
sourcetype = laravel_log
disabled = 0

[monitor:///var/www/*/shared/storage/logs/laravel*.log]
index = lh-linux
sourcetype = laravel_log
disabled = 0&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you kindly for taking the time to answer, there are some pieces of advice you mentioned that I wasn't as familiar with and it was good to learn more.&lt;/P&gt;</description>
    <pubDate>Wed, 06 Mar 2024 14:08:13 GMT</pubDate>
    <dc:creator>RyanPrice</dc:creator>
    <dc:date>2024-03-06T14:08:13Z</dc:date>
    <item>
      <title>Memory Spike on Universal Forwarder when specific inputs.conf stanza is included</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Memory-Spike-on-Universal-Forwarder-when-specific-inputs-conf/m-p/679638#M113577</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;We have the universal forwarder running on many machines.&amp;nbsp; In general, the memory usage is 200MB and below.&amp;nbsp; However, when adding the below stanza to inputs.conf it balloons to around 3000MB (3GB) on servers where the /var/www file path contains some content.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[monitor:///var/www/.../storage/logs/laravel*.log]
index = lh-linux
sourcetype = laravel_log
disabled = 0&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;These logs are not plentiful or especially active, so I'm confused why the large spike in memory usage.&amp;nbsp; There would only be a handful of logs and they'd be updated infrequently yet the memory spike happens anyway.&amp;nbsp; I've tried to be as specific with the filepath as I can (I still need the wildcard directory path) but that doesn't seem to bring any better performance.&lt;/P&gt;&lt;P&gt;There may be a lot of files in that path but only a handful that actually match the monitor stanza criteria.&amp;nbsp; Any suggestions on what can be done?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Mar 2024 19:16:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Memory-Spike-on-Universal-Forwarder-when-specific-inputs-conf/m-p/679638#M113577</guid>
      <dc:creator>RyanPrice</dc:creator>
      <dc:date>2024-03-05T19:16:57Z</dc:date>
    </item>
    <item>
      <title>Re: Memory Spike on Universal Forwarder when specific inputs.conf stanza is included</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Memory-Spike-on-Universal-Forwarder-when-specific-inputs-conf/m-p/679640#M113578</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/262581"&gt;@RyanPrice&lt;/a&gt;&amp;nbsp;The stanza which you've added monitors the log files under&amp;nbsp;///var/www/.../storage/logs/laravel*.log .&amp;nbsp;If these logs are large or frequently updated, it could contribute to increased memory usage.&amp;nbsp;&lt;/P&gt;&lt;P&gt;verify if you have disabled THP. refer the splunk doc on it&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/Splunk/latest/ReleaseNotes/SplunkandTHP" target="_blank"&gt;https://docs.splunk.com/Documentation/Splunk/latest/ReleaseNotes/SplunkandTHP&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;please check the limits.conf&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/Splunk/latest/Admin/Limitsconf" target="_blank"&gt;https://docs.splunk.com/Documentation/Splunk/latest/Admin/Limitsconf&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;[thruput]&lt;BR /&gt;maxKBps =&lt;/P&gt;&lt;PRE&gt;[thruput]&lt;BR /&gt;maxKBps = &amp;lt;integer&amp;gt;&lt;BR /&gt;* The maximum speed, in kilobytes per second, that incoming data is&lt;BR /&gt;processed through the thruput processor in the ingestion pipeline.&lt;BR /&gt;* To control the CPU load while indexing, use this setting to throttle&lt;BR /&gt;the number of events this indexer processes to the rate (in&lt;BR /&gt;kilobytes per second) that you specify.&lt;BR /&gt;* NOTE:&lt;BR /&gt;* There is no guarantee that the thruput processor&lt;BR /&gt;will always process less than the number of kilobytes per&lt;BR /&gt;second that you specify with this setting. The status of&lt;BR /&gt;earlier processing queues in the pipeline can cause&lt;BR /&gt;temporary bursts of network activity that exceed what&lt;BR /&gt;is configured in the setting.&lt;BR /&gt;* The setting does not limit the amount of data that is&lt;BR /&gt;written to the network from the tcpoutput processor, such&lt;BR /&gt;as what happens when a universal forwarder sends data to&lt;BR /&gt;an indexer.&lt;BR /&gt;* The thruput processor applies the 'maxKBps' setting for each&lt;BR /&gt;ingestion pipeline. If you configure multiple ingestion&lt;BR /&gt;pipelines, the processor multiplies the 'maxKBps' value&lt;BR /&gt;by the number of ingestion pipelines that you have&lt;BR /&gt;configured.&lt;BR /&gt;* For more information about multiple ingestion pipelines, see&lt;BR /&gt;the 'parallelIngestionPipelines' setting in the&lt;BR /&gt;server.conf.spec file.&lt;BR /&gt;* Default (Splunk Enterprise): 0 (unlimited)&lt;BR /&gt;* Default (Splunk Universal Forwarder): 256&lt;/PRE&gt;&lt;P&gt;the default value here is 256, you might consider increasing it if this is the actual reason for the data getting piled up, you can st the integer value to "0" which means unlimited.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.splunk.com/en_us/blog/tips-and-tricks/universal-or-heavy-that-is-the-question.html" target="_blank"&gt;Universal or Heavy, that is the question? | Splunk&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.splunk.com/en_us/blog/learn/splunk-universal-forwarder.html" target="_blank"&gt;Splunk Universal Forwarder | Splunk&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Mar 2024 19:47:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Memory-Spike-on-Universal-Forwarder-when-specific-inputs-conf/m-p/679640#M113578</guid>
      <dc:creator>kiran_panchavat</dc:creator>
      <dc:date>2024-03-05T19:47:17Z</dc:date>
    </item>
    <item>
      <title>Re: Memory Spike on Universal Forwarder when specific inputs.conf stanza is included</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Memory-Spike-on-Universal-Forwarder-when-specific-inputs-conf/m-p/679801#M113598</link>
      <description>&lt;P&gt;Thanks for the reply.&amp;nbsp; I was able to resolve the issue today.&amp;nbsp; The issue was not load.&amp;nbsp; As mentioned, there are only a handful of files that actually match the criteria and they see infrequent updates - under 10 new entries per minute I would estimate.&lt;/P&gt;&lt;P&gt;The issue ended up being the stanza itself being too vague.&amp;nbsp; I'm not sure how Splunk monitors/parses these internally but I believe there is room for improvement.&amp;nbsp; Once I split out the stanzas into a couple that cover the majority of our use-cases the memory dropped back down to around 200MB.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The new stanzas for anyone else finding this in the future eliminated the `...` wildcard and replaced it with a single-level one by including a couple stanzas for the common places these logs would be found:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[monitor:///var/www/*/storage/logs/laravel*.log]
index = lh-linux
sourcetype = laravel_log
disabled = 0

[monitor:///var/www/*/shared/storage/logs/laravel*.log]
index = lh-linux
sourcetype = laravel_log
disabled = 0&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you kindly for taking the time to answer, there are some pieces of advice you mentioned that I wasn't as familiar with and it was good to learn more.&lt;/P&gt;</description>
      <pubDate>Wed, 06 Mar 2024 14:08:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Memory-Spike-on-Universal-Forwarder-when-specific-inputs-conf/m-p/679801#M113598</guid>
      <dc:creator>RyanPrice</dc:creator>
      <dc:date>2024-03-06T14:08:13Z</dc:date>
    </item>
  </channel>
</rss>

