<?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: How do I group software versions together in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-group-software-versions-together/m-p/124680#M33708</link>
    <description>&lt;P&gt;Thank you! This is exactly what I needed. &lt;/P&gt;</description>
    <pubDate>Wed, 01 Apr 2015 19:16:27 GMT</pubDate>
    <dc:creator>dbendixen</dc:creator>
    <dc:date>2015-04-01T19:16:27Z</dc:date>
    <item>
      <title>How do I group software versions together</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-group-software-versions-together/m-p/124678#M33706</link>
      <description>&lt;P&gt;I have a query that tells me the count of unique devices running a particular software version (major.minor.release.build format--x.x.x.x). I'd like to group on the "release" or 3rd digit in the group. So if I have the following versions:&lt;/P&gt;

&lt;BLOCKQUOTE&gt;
&lt;P&gt;1.1.2.45&lt;BR /&gt;
1.1.2.47&lt;BR /&gt;
1.1.2.36&lt;BR /&gt;
1.1.3.45&lt;BR /&gt;
I'd like to to really just see this in the output:&lt;BR /&gt;
1.1.2&lt;BR /&gt;
1.1.3&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;

&lt;P&gt;Right now my query looks something like this:&lt;/P&gt;

&lt;BLOCKQUOTE&gt;
&lt;P&gt;index=stats_sess | stats dc(device.uuid) as count by software.version | sort 10 count d  | table software.version, count&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;</description>
      <pubDate>Wed, 01 Apr 2015 17:54:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-group-software-versions-together/m-p/124678#M33706</guid>
      <dc:creator>dbendixen</dc:creator>
      <dc:date>2015-04-01T17:54:38Z</dc:date>
    </item>
    <item>
      <title>Re: How do I group software versions together</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-group-software-versions-together/m-p/124679#M33707</link>
      <description>&lt;P&gt;Try this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=stats_sess  | eval software.version=replace('software.version',"(.*)\.(\d+)$","\1")| stats dc(device.uuid) as count by software.version | sort 10 count d | table software.version, count
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 01 Apr 2015 18:52:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-group-software-versions-together/m-p/124679#M33707</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2015-04-01T18:52:14Z</dc:date>
    </item>
    <item>
      <title>Re: How do I group software versions together</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-group-software-versions-together/m-p/124680#M33708</link>
      <description>&lt;P&gt;Thank you! This is exactly what I needed. &lt;/P&gt;</description>
      <pubDate>Wed, 01 Apr 2015 19:16:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-group-software-versions-together/m-p/124680#M33708</guid>
      <dc:creator>dbendixen</dc:creator>
      <dc:date>2015-04-01T19:16:27Z</dc:date>
    </item>
  </channel>
</rss>

