<?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: High CPU Usage from Splunk UF Linux Add-On Scripts on VM – lshw Impact in All Apps and Add-ons</title>
    <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/High-CPU-Usage-from-Splunk-UF-Linux-Add-On-Scripts-on-VM-lshw/m-p/750971#M82179</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/310156"&gt;@Keigo&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The hardware specs for a Splunk UF are&amp;nbsp;&lt;SPAN&gt;Dual-core 1.5GHz+ processor, 1GB+ RAM which you are sufficiently covering here, and there arent specific requirements for higher hardware specs when using the Linux Add-on.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;In relation to your other 3 questions,&amp;nbsp;&lt;SPAN&gt;lshw collects deep hardware information which is inherently compute-heavy and thus will cause a bit of a spike on lower resourced systems which might go un-noticed on higher spec'd servers.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;My main question is, are you using the information that this provides, and if so does it need to be run at a regular interval?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Like&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/28010"&gt;@PrewinThomas&lt;/a&gt;&amp;nbsp;said, you could reduce the frequency but you will ultimately still see the spike when it does run, but I would double check that the data is actually being used (often I see users enable a bunch of Linux TA inputs which go unused!). If you do use it then reducing the frequency is the only option.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-unicode-emoji" title=":glowing_star:"&gt;🌟&lt;/span&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;Did this answer help you?&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;If so, please consider:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Adding karma to show it was useful&lt;/LI&gt;&lt;LI&gt;Marking it as the solution if it resolved your issue&lt;/LI&gt;&lt;LI&gt;Commenting if you need any clarification&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Your feedback encourages the volunteers in this community to continue contributing&lt;/P&gt;</description>
    <pubDate>Mon, 04 Aug 2025 06:42:05 GMT</pubDate>
    <dc:creator>livehybrid</dc:creator>
    <dc:date>2025-08-04T06:42:05Z</dc:date>
    <item>
      <title>High CPU Usage from Splunk UF Linux Add-On Scripts on VM – lshw Impact</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/High-CPU-Usage-from-Splunk-UF-Linux-Add-On-Scripts-on-VM-lshw/m-p/750959#M82176</link>
      <description>&lt;P&gt;We are running Splunk Universal Forwarder on a virtual machine and using the Splunk Add-on for Unix and Linux.&lt;BR /&gt;The VM is configured with 2 vCPUs and 4GB of RAM.&lt;/P&gt;&lt;P&gt;During metric collection, it appears that the hardware.sh script executes the lshw command, which causes a temporary CPU spike of around 20–40%.&lt;BR /&gt;Since these scripts run periodically, this behavior may impact performance, especially on resource-constrained VMs.&lt;/P&gt;&lt;P&gt;I would appreciate any insights or experiences regarding the following:&lt;/P&gt;&lt;P&gt;・Recommended VM specifications for running the Linux Add-On&lt;BR /&gt;・Ways to reduce CPU load caused by lshw or other scripts&lt;BR /&gt;・Is this kind of CPU spike expected behavior for the Add-On?&lt;BR /&gt;・Any operational tips or configuration examples to mitigate the impact&lt;BR /&gt;Thanks in advance for your help!&lt;/P&gt;</description>
      <pubDate>Mon, 04 Aug 2025 01:02:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/High-CPU-Usage-from-Splunk-UF-Linux-Add-On-Scripts-on-VM-lshw/m-p/750959#M82176</guid>
      <dc:creator>Keigo</dc:creator>
      <dc:date>2025-08-04T01:02:45Z</dc:date>
    </item>
    <item>
      <title>Re: High CPU Usage from Splunk UF Linux Add-On Scripts on VM – lshw Impact</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/High-CPU-Usage-from-Splunk-UF-Linux-Add-On-Scripts-on-VM-lshw/m-p/750960#M82177</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/310156"&gt;@Keigo&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Normally production environments use 2–4 vCPUs and 4–8GB RAM to provide enough headroom, but it depends on your server roles/usage...&lt;/P&gt;&lt;P&gt;Ways to &lt;STRONG&gt;Reduce CPU Load&lt;/STRONG&gt;&lt;BR /&gt;-You can modify inputs.conf to &lt;STRONG&gt;increase the interval&lt;/STRONG&gt; for hardware.sh or &lt;STRONG&gt;disable&lt;/STRONG&gt; it entirely if hardware inventory isn’t critical&lt;BR /&gt;&lt;STRONG&gt;-Run/Schedule&lt;/STRONG&gt; scripts during off-peak hours&lt;BR /&gt;-Exclude &lt;STRONG&gt;unnecessary&lt;/STRONG&gt; scripts (set disabled = 1 for any stanza you don’t need) in inputs.conf&lt;BR /&gt;-If you need continuous performance data, &lt;STRONG&gt;CollectD&lt;/STRONG&gt; is more efficient i would say and integrates well with Splunk.&lt;BR /&gt;Ref#&lt;A href="https://docs.splunk.com/Documentation/AddOns/released/Linux/Hardwareandsoftwarerequirements" target="_blank"&gt;https://docs.splunk.com/Documentation/AddOns/released/Linux/Hardwareandsoftwarerequirements&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;Prewin&lt;BR /&gt;Splunk Enthusiast | Always happy to help! If this answer helped you, please consider marking it as the solution or giving a Karma. Thanks!&lt;/P&gt;</description>
      <pubDate>Mon, 04 Aug 2025 04:04:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/High-CPU-Usage-from-Splunk-UF-Linux-Add-On-Scripts-on-VM-lshw/m-p/750960#M82177</guid>
      <dc:creator>PrewinThomas</dc:creator>
      <dc:date>2025-08-04T04:04:07Z</dc:date>
    </item>
    <item>
      <title>Re: High CPU Usage from Splunk UF Linux Add-On Scripts on VM – lshw Impact</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/High-CPU-Usage-from-Splunk-UF-Linux-Add-On-Scripts-on-VM-lshw/m-p/750971#M82179</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/310156"&gt;@Keigo&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The hardware specs for a Splunk UF are&amp;nbsp;&lt;SPAN&gt;Dual-core 1.5GHz+ processor, 1GB+ RAM which you are sufficiently covering here, and there arent specific requirements for higher hardware specs when using the Linux Add-on.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;In relation to your other 3 questions,&amp;nbsp;&lt;SPAN&gt;lshw collects deep hardware information which is inherently compute-heavy and thus will cause a bit of a spike on lower resourced systems which might go un-noticed on higher spec'd servers.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;My main question is, are you using the information that this provides, and if so does it need to be run at a regular interval?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Like&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/28010"&gt;@PrewinThomas&lt;/a&gt;&amp;nbsp;said, you could reduce the frequency but you will ultimately still see the spike when it does run, but I would double check that the data is actually being used (often I see users enable a bunch of Linux TA inputs which go unused!). If you do use it then reducing the frequency is the only option.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-unicode-emoji" title=":glowing_star:"&gt;🌟&lt;/span&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;Did this answer help you?&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;If so, please consider:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Adding karma to show it was useful&lt;/LI&gt;&lt;LI&gt;Marking it as the solution if it resolved your issue&lt;/LI&gt;&lt;LI&gt;Commenting if you need any clarification&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Your feedback encourages the volunteers in this community to continue contributing&lt;/P&gt;</description>
      <pubDate>Mon, 04 Aug 2025 06:42:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/High-CPU-Usage-from-Splunk-UF-Linux-Add-On-Scripts-on-VM-lshw/m-p/750971#M82179</guid>
      <dc:creator>livehybrid</dc:creator>
      <dc:date>2025-08-04T06:42:05Z</dc:date>
    </item>
    <item>
      <title>Re: High CPU Usage from Splunk UF Linux Add-On Scripts on VM – lshw Impact</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/High-CPU-Usage-from-Splunk-UF-Linux-Add-On-Scripts-on-VM-lshw/m-p/751022#M82182</link>
      <description>&lt;P&gt;The addon for *nix contains several inputs. Some of them are more useful, some less...&lt;/P&gt;&lt;P&gt;The question is why would you run this input in the first place. Is this your only source of HW inventory? And even then - this is something that doesn't change often so the interval between subsequent runs can be quite big without any significant impact to the usefulness of the output data.&lt;/P&gt;</description>
      <pubDate>Tue, 05 Aug 2025 07:22:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/High-CPU-Usage-from-Splunk-UF-Linux-Add-On-Scripts-on-VM-lshw/m-p/751022#M82182</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2025-08-05T07:22:48Z</dc:date>
    </item>
    <item>
      <title>Re: High CPU Usage from Splunk UF Linux Add-On Scripts on VM – lshw Impact</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/High-CPU-Usage-from-Splunk-UF-Linux-Add-On-Scripts-on-VM-lshw/m-p/751023#M82183</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/310156"&gt;@Keigo&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You’re using &lt;STRONG&gt;Splunk Universal Forwarder&lt;/STRONG&gt; with the &lt;STRONG&gt;Linux Add-on&lt;/STRONG&gt; on a &lt;STRONG&gt;2 vCPU / 4GB RAM&lt;/STRONG&gt; VM.&lt;BR /&gt;A script (hardware.sh) that runs lshw causes &lt;STRONG&gt;20–40% CPU spikes&lt;/STRONG&gt;, which may impact performance. lshw is not light weight and is overkill most of the use cases, and thhis behavior is &lt;STRONG&gt;expected&lt;/STRONG&gt; because lshw is resource-heavy, especially on low-spec machines.&lt;/P&gt;&lt;P&gt;Below are the recommendations&lt;/P&gt;&lt;P&gt;1.&amp;nbsp;Check if you actually need hardware data.&amp;nbsp;&lt;/P&gt;&lt;P&gt;2.&amp;nbsp;&lt;STRONG&gt;If needed, reduce the frequency&lt;/STRONG&gt; to minimize impact&lt;/P&gt;&lt;P&gt;3.&amp;nbsp;&lt;STRONG&gt;Alternative&lt;/STRONG&gt;: Run the script via cron during off-peak hours and monitor its output file with Splunk.&lt;/P&gt;&lt;P&gt;4.&amp;nbsp;&lt;STRONG&gt;Use lightweight tools&lt;/STRONG&gt; like &lt;STRONG&gt;CollectD&lt;/STRONG&gt; for performance metrics instead of heavy scripts.&lt;/P&gt;&lt;P&gt;5.&amp;nbsp;&lt;STRONG&gt;Recommended specs&lt;/STRONG&gt; (if you keep such scripts):&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;Use &lt;STRONG&gt;4 vCPUs and 6–8 GB RAM&lt;/STRONG&gt; for better performance.&lt;/P&gt;</description>
      <pubDate>Tue, 05 Aug 2025 07:51:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/High-CPU-Usage-from-Splunk-UF-Linux-Add-On-Scripts-on-VM-lshw/m-p/751023#M82183</guid>
      <dc:creator>thahir</dc:creator>
      <dc:date>2025-08-05T07:51:51Z</dc:date>
    </item>
    <item>
      <title>Re: High CPU Usage from Splunk UF Linux Add-On Scripts on VM – lshw Impact</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/High-CPU-Usage-from-Splunk-UF-Linux-Add-On-Scripts-on-VM-lshw/m-p/751890#M82234</link>
      <description>&lt;P&gt;&lt;STRONG&gt;In the end, we decided not to collect metrics directly from the servers, but instead to send the data already being collected by Cacti to Splunk using HEC. Many thanks to everyone who provided their input.&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Aug 2025 06:13:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/High-CPU-Usage-from-Splunk-UF-Linux-Add-On-Scripts-on-VM-lshw/m-p/751890#M82234</guid>
      <dc:creator>Keigo</dc:creator>
      <dc:date>2025-08-20T06:13:42Z</dc:date>
    </item>
  </channel>
</rss>

