<?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: Sort based on Specific Value Within Field in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Sort-based-on-Specific-Value-Within-Field/m-p/259190#M77694</link>
    <description>&lt;P&gt;I apologize for such a late response,but  would it it be possible to do this, where this field is derived from a csv file ( named "Group") that I'm comparing to my search data?&lt;/P&gt;</description>
    <pubDate>Wed, 07 Oct 2015 20:44:23 GMT</pubDate>
    <dc:creator>raby1996</dc:creator>
    <dc:date>2015-10-07T20:44:23Z</dc:date>
    <item>
      <title>Sort based on Specific Value Within Field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Sort-based-on-Specific-Value-Within-Field/m-p/259188#M77692</link>
      <description>&lt;P&gt;Hi all&lt;BR /&gt;
My question has to do with sorting , and basically my field looks like this where I want it sorted by the last bit that is in parenthesis ( as shown),&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Dec12(V7)
April13(V71)
Nov14(V74)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;However when I use the sort command I get back the field sorted in alphabetical order so-&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;April13(V71)
Dec12(V7)
Nov14(V74)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Is there any way I can achieve this? &lt;BR /&gt;
Thank you&lt;/P&gt;</description>
      <pubDate>Tue, 06 Oct 2015 00:08:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Sort-based-on-Specific-Value-Within-Field/m-p/259188#M77692</guid>
      <dc:creator>raby1996</dc:creator>
      <dc:date>2015-10-06T00:08:03Z</dc:date>
    </item>
    <item>
      <title>Re: Sort based on Specific Value Within Field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Sort-based-on-Specific-Value-Within-Field/m-p/259189#M77693</link>
      <description>&lt;P&gt;You could create an auxiliary field that you eventually hide from your results:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | rex field=myfield "[A-Za-z]+\d{2}\(V(?&amp;lt;newfield&amp;gt;\d{2})\)" 
| convert num(newfield)
| sort newfield 
| fields myfield
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;CODE&gt;rex&lt;/CODE&gt; will create a new field that only contains the numeric portion in parentheses. Since you probably want to display V8 before V70 you need to treat the new field as a number, ignoring the "V". &lt;/P&gt;

&lt;P&gt;Finally you can just ignore &lt;CODE&gt;newfield&lt;/CODE&gt; for displaying purposes&lt;/P&gt;</description>
      <pubDate>Tue, 06 Oct 2015 00:27:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Sort-based-on-Specific-Value-Within-Field/m-p/259189#M77693</guid>
      <dc:creator>mporath_splunk</dc:creator>
      <dc:date>2015-10-06T00:27:28Z</dc:date>
    </item>
    <item>
      <title>Re: Sort based on Specific Value Within Field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Sort-based-on-Specific-Value-Within-Field/m-p/259190#M77694</link>
      <description>&lt;P&gt;I apologize for such a late response,but  would it it be possible to do this, where this field is derived from a csv file ( named "Group") that I'm comparing to my search data?&lt;/P&gt;</description>
      <pubDate>Wed, 07 Oct 2015 20:44:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Sort-based-on-Specific-Value-Within-Field/m-p/259190#M77694</guid>
      <dc:creator>raby1996</dc:creator>
      <dc:date>2015-10-07T20:44:23Z</dc:date>
    </item>
    <item>
      <title>Re: Sort based on Specific Value Within Field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Sort-based-on-Specific-Value-Within-Field/m-p/259191#M77695</link>
      <description>&lt;P&gt;I think so! You can define a lookup from a CSV and pull in any data that's part of the CSV as long as you can match the value of one CSV column to a field in your event data. Take a look at the &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.3.0/Knowledge/Addfieldsfromexternaldatasources"&gt;documentation&lt;/A&gt; for more details on lookups.&lt;/P&gt;</description>
      <pubDate>Wed, 07 Oct 2015 20:55:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Sort-based-on-Specific-Value-Within-Field/m-p/259191#M77695</guid>
      <dc:creator>mporath_splunk</dc:creator>
      <dc:date>2015-10-07T20:55:14Z</dc:date>
    </item>
    <item>
      <title>Re: Sort based on Specific Value Within Field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Sort-based-on-Specific-Value-Within-Field/m-p/259192#M77696</link>
      <description>&lt;P&gt;Great, thank you!&lt;/P&gt;</description>
      <pubDate>Wed, 07 Oct 2015 22:00:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Sort-based-on-Specific-Value-Within-Field/m-p/259192#M77696</guid>
      <dc:creator>raby1996</dc:creator>
      <dc:date>2015-10-07T22:00:44Z</dc:date>
    </item>
  </channel>
</rss>

