<?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: Splunk query to fetch Heavy forwarder's Hardware specifications in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-query-to-fetch-Heavy-forwarder-s-Hardware-specifications/m-p/472341#M81179</link>
    <description>&lt;P&gt;Your join doesn't have a field to join on, such as the host name of your HFs.&lt;/P&gt;

&lt;P&gt;Even better, don't use join if all you want is to filter one search by another search:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;generating search for your hardware stuff [search for your HFs | dedup hostname | table hostname | rename hostname as host]
| rex, extract, table, whatever
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Tue, 24 Dec 2019 12:57:45 GMT</pubDate>
    <dc:creator>martin_mueller</dc:creator>
    <dc:date>2019-12-24T12:57:45Z</dc:date>
    <item>
      <title>Splunk query to fetch Heavy forwarder's Hardware specifications</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-query-to-fetch-Heavy-forwarder-s-Hardware-specifications/m-p/472340#M81178</link>
      <description>&lt;P&gt;Hi Splunkers,&lt;/P&gt;

&lt;P&gt;I am still a beginner, trying to write a query to fetch splunk heavy forwarder's cpu, memory usage and other hardware related stuff. With the below query i am not able to fetch the correct values for Heavy forwarders(see below results). So, could anyone please help me to resolve this issue. &lt;/P&gt;

&lt;P&gt;Query: &lt;CODE&gt;internal&lt;/CODE&gt; host=&lt;EM&gt;spi&lt;/EM&gt; source="/opt/splunk/var/log/splunk/metrics.log" fwdType=full | dedup hostname | table hostname | join type=left [search index = *  sourcetype=nix:hardware host=* | rex mode=sed "s/\s\s+/=/g" | extract kvdelim="=" pairdelim="\n" ] |table hostname,CPU_TYPE,CPU_COUNT,MEMORY_REAL&lt;/P&gt;

&lt;P&gt;Results: Same values being replicated for all Hfs which is incorrect&lt;/P&gt;

&lt;P&gt;Host                       CPU_TYPE              CPU_COUNT      MEMORY_REAL&lt;BR /&gt;
HF 1        Intel(R) Xeon(R) @ 2.70GHz     12                  24504164 kB&lt;BR /&gt;&lt;BR /&gt;
HF 2    Intel(R) Xeon(R) @2.70GHz      12                  24504164 kB&lt;BR /&gt;&lt;BR /&gt;
HF 3    Intel(R) Xeon(R) @2.70GHz      12                  24504164 kB&lt;/P&gt;

&lt;P&gt;HF n    Intel(R) Xeon(R) @ 2.70GHz     12                  24504164 kB  &lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 03:28:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Splunk-query-to-fetch-Heavy-forwarder-s-Hardware-specifications/m-p/472340#M81178</guid>
      <dc:creator>swamysanjanaput</dc:creator>
      <dc:date>2020-09-30T03:28:58Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk query to fetch Heavy forwarder's Hardware specifications</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-query-to-fetch-Heavy-forwarder-s-Hardware-specifications/m-p/472341#M81179</link>
      <description>&lt;P&gt;Your join doesn't have a field to join on, such as the host name of your HFs.&lt;/P&gt;

&lt;P&gt;Even better, don't use join if all you want is to filter one search by another search:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;generating search for your hardware stuff [search for your HFs | dedup hostname | table hostname | rename hostname as host]
| rex, extract, table, whatever
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 24 Dec 2019 12:57:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Splunk-query-to-fetch-Heavy-forwarder-s-Hardware-specifications/m-p/472341#M81179</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2019-12-24T12:57:45Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk query to fetch Heavy forwarder's Hardware specifications</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-query-to-fetch-Heavy-forwarder-s-Hardware-specifications/m-p/472342#M81180</link>
      <description>&lt;P&gt;The easiest way (AND FREE) is to enable &lt;CODE&gt;platform instrumentation&lt;/CODE&gt; which will start populating the &lt;CODE&gt;_introspection&lt;/CODE&gt; index (disabled by default) by following these steps:&lt;BR /&gt;
&lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/Troubleshooting/ConfigurePIF"&gt;http://docs.splunk.com/Documentation/Splunk/latest/Troubleshooting/ConfigurePIF&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Then search like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index="_introspection" AND sourcetype="splunk_resource_usage"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Here are some other ways, too:&lt;BR /&gt;
&lt;A href="https://answers.splunk.com/answers/423998/is-there-an-easy-way-to-get-resource-usage-per-spl.html"&gt;https://answers.splunk.com/answers/423998/is-there-an-easy-way-to-get-resource-usage-per-spl.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Dec 2019 19:20:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Splunk-query-to-fetch-Heavy-forwarder-s-Hardware-specifications/m-p/472342#M81180</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2019-12-24T19:20:36Z</dc:date>
    </item>
  </channel>
</rss>

