<?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 splunk forwarder OS version in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/splunk-forwarder-OS-version/m-p/377639#M68322</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;i am able to get spunk forwarder deaials using below query but i need information like windows 2012,2016, linux version 2,3 ,4 etc. &lt;BR /&gt;
How can we get this OS info.&lt;/P&gt;

&lt;P&gt;index=_internal source=*metrics.log component=Metrics group=tcpin_connections &lt;BR /&gt;
| dedup hostname | table hostname sourceIp os arch version&lt;/P&gt;

&lt;P&gt;Regards&lt;/P&gt;</description>
    <pubDate>Wed, 30 Sep 2020 00:35:40 GMT</pubDate>
    <dc:creator>keishamtcs</dc:creator>
    <dc:date>2020-09-30T00:35:40Z</dc:date>
    <item>
      <title>splunk forwarder OS version</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/splunk-forwarder-OS-version/m-p/377639#M68322</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;i am able to get spunk forwarder deaials using below query but i need information like windows 2012,2016, linux version 2,3 ,4 etc. &lt;BR /&gt;
How can we get this OS info.&lt;/P&gt;

&lt;P&gt;index=_internal source=*metrics.log component=Metrics group=tcpin_connections &lt;BR /&gt;
| dedup hostname | table hostname sourceIp os arch version&lt;/P&gt;

&lt;P&gt;Regards&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 00:35:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/splunk-forwarder-OS-version/m-p/377639#M68322</guid>
      <dc:creator>keishamtcs</dc:creator>
      <dc:date>2020-09-30T00:35:40Z</dc:date>
    </item>
    <item>
      <title>Re: splunk forwarder OS version</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/splunk-forwarder-OS-version/m-p/377640#M68323</link>
      <description>&lt;P&gt;Here is a search that I often use to check on how much data is being sent per hour, by forwarder.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; index=_internal source=*metrics.log group=tcpin_connections 
 | eval sourceHost=if(isnull(hostname), sourceHost,hostname) 
 | rename connectionType as connectType
 | eval connectType=case(fwdType=="uf","univ fwder", fwdType=="lwf", "lightwt fwder",fwdType=="full", "heavy fwder", connectType=="cooked" or connectType=="cookedSSL","Splunk fwder", connectType=="raw" or connectType=="rawSSL","legacy fwder")
 | eval version=if(isnull(version),"pre 4.2",version)
 | rename version as Ver 
 | fields connectType sourceIp sourceHost destPort kb tcp_eps tcp_Kprocessed tcp_KBps splunk_server Ver
 | eval Indexer= splunk_server
 | eval Hour=relative_time(_time,"@h")
 | stats avg(tcp_KBps) sum(tcp_eps) sum(tcp_Kprocessed) sum(kb) by Hour connectType sourceIp sourceHost destPort Indexer Ver
 | fieldformat Hour=strftime(Hour,"%x %H")
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Just copy this search and paste into your search box - and pick a relatively short time period (like last 24 hours or less). It should run on any Splunk 4.2 or newer. It might work on older versions, but I am not sure...&lt;/P&gt;

&lt;P&gt;You could change the stats command if you wanted a slightly different output. For example, replace the last 3 lines with the following to get an overall summary by forwarder, rather than hour by hour statistics:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; | stats avg(tcp_KBps) sum(tcp_eps) sum(tcp_Kprocessed) sum(kb) by connectType sourceIp sourceHost destPort Indexer Ver
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 17 May 2019 17:58:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/splunk-forwarder-OS-version/m-p/377640#M68323</guid>
      <dc:creator>vikramyadav</dc:creator>
      <dc:date>2019-05-17T17:58:45Z</dc:date>
    </item>
    <item>
      <title>Re: splunk forwarder OS version</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/splunk-forwarder-OS-version/m-p/377641#M68324</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;Your search does not give the information i am looking for that is OS details like windows 2012,2016, linux version 2,3 ,4 etc.&lt;/P&gt;

&lt;P&gt;Regards&lt;/P&gt;</description>
      <pubDate>Mon, 20 May 2019 08:24:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/splunk-forwarder-OS-version/m-p/377641#M68324</guid>
      <dc:creator>keishamtcs</dc:creator>
      <dc:date>2019-05-20T08:24:05Z</dc:date>
    </item>
  </channel>
</rss>

