<?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 to convert version number so the dots are consistent in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-convert-version-number-so-the-dots-are-consistent/m-p/534408#M151016</link>
    <description>&lt;LI-CODE lang="markup"&gt;| makeresults 
| eval version="7.3.2" | appendpipe[eval version="8.0.2.1" | appendpipe[eval version="7.2"| appendpipe[eval version="7"]]] 
| eval versions=mvindex(mvappend(split(version,"."),split("0000000","")),0,3)
| eval version=mvjoin(versions,".")&lt;/LI-CODE&gt;&lt;P&gt;I couldn't make it with regular expressions.&lt;/P&gt;</description>
    <pubDate>Wed, 30 Dec 2020 00:07:37 GMT</pubDate>
    <dc:creator>to4kawa</dc:creator>
    <dc:date>2020-12-30T00:07:37Z</dc:date>
    <item>
      <title>How to convert version number so the dots are consistent</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-convert-version-number-so-the-dots-are-consistent/m-p/534402#M151013</link>
      <description>&lt;P&gt;See the example values below. How do I convert the value of the version field, so that they have the same number of decimals?&lt;/P&gt;&lt;P&gt;version=7.3.2&lt;/P&gt;&lt;P&gt;version=8.0.2.1&lt;/P&gt;&lt;P&gt;I would like this to be converted to:&lt;/P&gt;&lt;P&gt;version=7.3.2.0&lt;/P&gt;&lt;P&gt;version=8.0.2.1&lt;/P&gt;</description>
      <pubDate>Tue, 29 Dec 2020 23:03:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-convert-version-number-so-the-dots-are-consistent/m-p/534402#M151013</guid>
      <dc:creator>splunkyj</dc:creator>
      <dc:date>2020-12-29T23:03:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert version number so the dots are consistent</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-convert-version-number-so-the-dots-are-consistent/m-p/534403#M151014</link>
      <description>&lt;LI-CODE lang="markup"&gt;| makeresults 
| eval version="7.3.2" | appendpipe [| eval version="8.0.2.1"]
| rex field=version mode=sed "s/\b(\d)\b/0\1/g s/\.//g"
| eval version=substr(version."0000000",1,8)
| rex field=version mode=sed "s/(\d\d)/\1./g s/0(\d)\b/\1/g s/\.$//"&lt;/LI-CODE&gt;&lt;P&gt;&lt;SPAN&gt;I want the shift instruction.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Dec 2020 23:24:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-convert-version-number-so-the-dots-are-consistent/m-p/534403#M151014</guid>
      <dc:creator>to4kawa</dc:creator>
      <dc:date>2020-12-29T23:24:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert version number so the dots are consistent</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-convert-version-number-so-the-dots-are-consistent/m-p/534406#M151015</link>
      <description>&lt;LI-CODE lang="markup"&gt;| makeresults 
| eval version="7.3.2" | appendpipe [| eval version="8.0.2.1" |appendpipe [eval version="7.2"|appendpipe [eval version="7"]]]
| eval count=mvcount(split(version,"."))
| eval version=version.substr(".0.0.0.0",1,(abs(count - 4) * 2) )&lt;/LI-CODE&gt;&lt;P&gt;Maybe it's easier this way.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Dec 2020 23:42:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-convert-version-number-so-the-dots-are-consistent/m-p/534406#M151015</guid>
      <dc:creator>to4kawa</dc:creator>
      <dc:date>2020-12-29T23:42:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert version number so the dots are consistent</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-convert-version-number-so-the-dots-are-consistent/m-p/534408#M151016</link>
      <description>&lt;LI-CODE lang="markup"&gt;| makeresults 
| eval version="7.3.2" | appendpipe[eval version="8.0.2.1" | appendpipe[eval version="7.2"| appendpipe[eval version="7"]]] 
| eval versions=mvindex(mvappend(split(version,"."),split("0000000","")),0,3)
| eval version=mvjoin(versions,".")&lt;/LI-CODE&gt;&lt;P&gt;I couldn't make it with regular expressions.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Dec 2020 00:07:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-convert-version-number-so-the-dots-are-consistent/m-p/534408#M151016</guid>
      <dc:creator>to4kawa</dc:creator>
      <dc:date>2020-12-30T00:07:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert version number so the dots are consistent</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-convert-version-number-so-the-dots-are-consistent/m-p/534505#M151048</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/184221"&gt;@to4kawa&lt;/a&gt;&amp;nbsp;thank you so much again!! You rock! Both worked, I just went with this one because it's simpler. Or looked to be, let me know if the other one is more efficient. But they both worked well! One day I wanna be like you &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Dec 2020 17:48:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-convert-version-number-so-the-dots-are-consistent/m-p/534505#M151048</guid>
      <dc:creator>splunkyj</dc:creator>
      <dc:date>2020-12-30T17:48:33Z</dc:date>
    </item>
  </channel>
</rss>

