<?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 sort instance name alphanumeric not lexicographically? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-sort-instance-name-alphanumeric-not-lexicographically/m-p/589244#M205201</link>
    <description>You probably have some naming schema for hosts like a100&amp;lt;dep/something non numeral&amp;gt;&amp;lt;sequence number&amp;gt;? Or can the prefix be something else that a100?</description>
    <pubDate>Wed, 16 Mar 2022 08:14:35 GMT</pubDate>
    <dc:creator>isoutamo</dc:creator>
    <dc:date>2022-03-16T08:14:35Z</dc:date>
    <item>
      <title>How to sort instance name alphanumeric not lexicographically?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-sort-instance-name-alphanumeric-not-lexicographically/m-p/589142#M205174</link>
      <description>&lt;P&gt;Hi all,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I was wondering if someone could help with a sort ordering issue I have. I am looking for a way to sort instance names of my computers&amp;nbsp; alphanumerically where I can sort the list like:&lt;/P&gt;
&lt;P&gt;a100pc1&lt;/P&gt;
&lt;P&gt;a100pc2&lt;/P&gt;
&lt;P&gt;a100pc3&lt;/P&gt;
&lt;P&gt;a100pc10&lt;/P&gt;
&lt;P&gt;a100pc20&lt;/P&gt;
&lt;P&gt;instead of&amp;nbsp;lexicographically like:&lt;/P&gt;
&lt;P&gt;&amp;nbsp; a100pc1&lt;/P&gt;
&lt;P&gt;&amp;nbsp;a100pc10&lt;/P&gt;
&lt;P&gt;&amp;nbsp;a100pc2&lt;/P&gt;
&lt;P&gt;&amp;nbsp;a100pc20&lt;/P&gt;
&lt;P&gt;&amp;nbsp;a100pc3&lt;/P&gt;</description>
      <pubDate>Tue, 15 Mar 2022 15:47:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-sort-instance-name-alphanumeric-not-lexicographically/m-p/589142#M205174</guid>
      <dc:creator>myazdzik</dc:creator>
      <dc:date>2022-03-15T15:47:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to sort instance name alphanumeric not lexicographically?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-sort-instance-name-alphanumeric-not-lexicographically/m-p/589153#M205177</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/243886"&gt;@myazdzik&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;try the below&amp;nbsp;&lt;/P&gt;&lt;P&gt;|makeresults |eval new="a100pc1"&lt;BR /&gt;|append [|makeresults |eval new="a100pc10" ]&lt;BR /&gt;|append [|makeresults |eval new="a100pc2" ]&lt;BR /&gt;|append [|makeresults |eval new="a100pc20" ]&lt;BR /&gt;|append [|makeresults |eval new="a100pc3" ]|fields - _time | rex field=new "a100pc(?&amp;lt;_new&amp;gt;\d+)"| sort _new&lt;/P&gt;</description>
      <pubDate>Tue, 15 Mar 2022 16:36:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-sort-instance-name-alphanumeric-not-lexicographically/m-p/589153#M205177</guid>
      <dc:creator>venky1544</dc:creator>
      <dc:date>2022-03-15T16:36:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to sort instance name alphanumeric not lexicographically?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-sort-instance-name-alphanumeric-not-lexicographically/m-p/589175#M205182</link>
      <description>&lt;P&gt;Hi Venky1544,&lt;/P&gt;&lt;P&gt;sorry i should have included that my instance names are dynamic and can change names at any given time and possible to be over 75 instances. and the "pc" portion can be different as well where it could be a100srdb1 or a100srfs2. with the make results, it looks like I would need to manually create an entry for each instance name and adjust the search each time a new instance is added, is that a correct statement? what i would like to achieve is perform an alphabet sort after the a100 then identify the numeric numbering and sort by that dynamically. i tried different rex field statements but the first alphanumeric keys keep screwing me up on results&lt;/P&gt;</description>
      <pubDate>Tue, 15 Mar 2022 17:50:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-sort-instance-name-alphanumeric-not-lexicographically/m-p/589175#M205182</guid>
      <dc:creator>myazdzik</dc:creator>
      <dc:date>2022-03-15T17:50:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to sort instance name alphanumeric not lexicographically?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-sort-instance-name-alphanumeric-not-lexicographically/m-p/589244#M205201</link>
      <description>You probably have some naming schema for hosts like a100&amp;lt;dep/something non numeral&amp;gt;&amp;lt;sequence number&amp;gt;? Or can the prefix be something else that a100?</description>
      <pubDate>Wed, 16 Mar 2022 08:14:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-sort-instance-name-alphanumeric-not-lexicographically/m-p/589244#M205201</guid>
      <dc:creator>isoutamo</dc:creator>
      <dc:date>2022-03-16T08:14:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to sort instance name alphanumeric not lexicographically?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-sort-instance-name-alphanumeric-not-lexicographically/m-p/589247#M205203</link>
      <description>&lt;P&gt;As you have already realised, you need to split up the name into its constituent parts so that they can be sorted appropriately. For this, you need to be able to define your naming scheme (as&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/214410"&gt;@isoutamo&lt;/a&gt;&amp;nbsp;has already hinted). You have already said that you tried (and failed) to do this with rex. Perhaps, this should be your question i.e. you define your naming scheme, and we can help you come up with a rex expression to extract the constituent parts.&lt;/P&gt;</description>
      <pubDate>Wed, 16 Mar 2022 08:28:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-sort-instance-name-alphanumeric-not-lexicographically/m-p/589247#M205203</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2022-03-16T08:28:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to sort instance name alphanumeric not lexicographically?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-sort-instance-name-alphanumeric-not-lexicographically/m-p/589256#M205207</link>
      <description>&lt;P&gt;Hey &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/243886"&gt;@myazdzik&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;makresult was just to create the sample dataset as you dont need to use that but as&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/214410"&gt;@isoutamo&lt;/a&gt;&amp;nbsp;said you probably have to work on the naming convention of the servers&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Mar 2022 09:52:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-sort-instance-name-alphanumeric-not-lexicographically/m-p/589256#M205207</guid>
      <dc:creator>venky1544</dc:creator>
      <dc:date>2022-03-16T09:52:39Z</dc:date>
    </item>
  </channel>
</rss>

