<?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: Agent version grouping by OS in Knowledge Management</title>
    <link>https://community.splunk.com/t5/Knowledge-Management/Agent-version-grouping-by-OS/m-p/557825#M5085</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/54774"&gt;@jcorcoran508&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;you can use substr eval function&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| eval version=substr(version,1,1)&lt;/LI-CODE&gt;&lt;P&gt;useful search:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=_internal sourcetype=splunkd group=tcpin_connections version=* os=* arch=* build=* hostname=* source=*metrics.log
| stats latest(version) as version,latest(arch) as arch,latest(os) as os,latest(build) as build by hostname
| eval version=substr(version,1,1)
| join hostname [ | metadata type=hosts index=*
| eval last_seen_hours=(now()-lastTime)/60/60
| table host, last_seen_hours
| rex field=host "(?&amp;lt;hostname&amp;gt;[^\.]+)" | fields - host ]&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;Regards&lt;/P&gt;&lt;P&gt;Ale&lt;/P&gt;</description>
    <pubDate>Wed, 30 Jun 2021 14:30:41 GMT</pubDate>
    <dc:creator>aasabatini</dc:creator>
    <dc:date>2021-06-30T14:30:41Z</dc:date>
    <item>
      <title>Agent version grouping by OS</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/Agent-version-grouping-by-OS/m-p/557814#M5082</link>
      <description>&lt;P&gt;I have many agent versions and each row is displayed as the different version... Like the query is telling it to do.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need help in the sense of&amp;nbsp; would like to truncate evey period and digit to the single version digit.&lt;/P&gt;&lt;P&gt;6.3.0.0&lt;/P&gt;&lt;P&gt;6.2.1&lt;/P&gt;&lt;P&gt;7.3.3&lt;/P&gt;&lt;P&gt;7.21&lt;/P&gt;&lt;P&gt;To look like this:&lt;/P&gt;&lt;P&gt;6&amp;nbsp;&lt;/P&gt;&lt;P&gt;7&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Jun 2021 13:41:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/Agent-version-grouping-by-OS/m-p/557814#M5082</guid>
      <dc:creator>jcorcoran508</dc:creator>
      <dc:date>2021-06-30T13:41:59Z</dc:date>
    </item>
    <item>
      <title>Re: Agent version grouping by OS</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/Agent-version-grouping-by-OS/m-p/557823#M5083</link>
      <description>&lt;P&gt;There are a few ways to do that.&amp;nbsp; Here's one&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| rex field=version "(?&amp;lt;version&amp;gt;\d+)\."&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 30 Jun 2021 14:27:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/Agent-version-grouping-by-OS/m-p/557823#M5083</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2021-06-30T14:27:15Z</dc:date>
    </item>
    <item>
      <title>Re: Agent version grouping by OS</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/Agent-version-grouping-by-OS/m-p/557825#M5085</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/54774"&gt;@jcorcoran508&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;you can use substr eval function&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| eval version=substr(version,1,1)&lt;/LI-CODE&gt;&lt;P&gt;useful search:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=_internal sourcetype=splunkd group=tcpin_connections version=* os=* arch=* build=* hostname=* source=*metrics.log
| stats latest(version) as version,latest(arch) as arch,latest(os) as os,latest(build) as build by hostname
| eval version=substr(version,1,1)
| join hostname [ | metadata type=hosts index=*
| eval last_seen_hours=(now()-lastTime)/60/60
| table host, last_seen_hours
| rex field=host "(?&amp;lt;hostname&amp;gt;[^\.]+)" | fields - host ]&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;Regards&lt;/P&gt;&lt;P&gt;Ale&lt;/P&gt;</description>
      <pubDate>Wed, 30 Jun 2021 14:30:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/Agent-version-grouping-by-OS/m-p/557825#M5085</guid>
      <dc:creator>aasabatini</dc:creator>
      <dc:date>2021-06-30T14:30:41Z</dc:date>
    </item>
  </channel>
</rss>

