<?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: sorting data in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-sort-data/m-p/657798#M227195</link>
    <description>&lt;LI-CODE lang="markup"&gt;index=query_mcc 
| eval data=split(_raw,"
")
| mvexpand data
| eval data = split(data, ",")
| eval Date = strftime(_time, "%Y-%m-%d-%H:%M:%S") 
| eval Category = mvindex(data, 1) 
| eval Status = mvindex(data, -1) 
| eval Command = mvindex(data, 0) 
| table host, Date, Category, Status, Command&lt;/LI-CODE&gt;</description>
    <pubDate>Sat, 16 Sep 2023 07:46:49 GMT</pubDate>
    <dc:creator>ITWhisperer</dc:creator>
    <dc:date>2023-09-16T07:46:49Z</dc:date>
    <item>
      <title>How to sort data?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-sort-data/m-p/657772#M227179</link>
      <description>&lt;P&gt;Hello, I wonder if somebody can please help me to sort the following data:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jaydiare_0-1694807431957.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/27214i4B057AF1797A62CE/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jaydiare_0-1694807431957.png" alt="jaydiare_0-1694807431957.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Into this table:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jaydiare_1-1694807459588.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/27215i1FF96BC6D11FEAC9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jaydiare_1-1694807459588.png" alt="jaydiare_1-1694807459588.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Any ideas are welcome&lt;/P&gt;
&lt;P&gt;I was trying to run this query but it is not separating the values of the fields properly:&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;index=query_mcc | eval data = split(_raw, ",") | eval Date = strftime(_time, "%Y-%m-%d-%H:%M:%S") | eval Category = mvindex(data, 1) | eval Status = mvindex(data, -1) | eval Command = mvindex(data, 0) | table host, Date, Category, Status, Command&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;but is giving me this , where it only shows the first line..&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jaydiare_0-1694810092225.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/27217i11D16A854C226FF9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jaydiare_0-1694810092225.png" alt="jaydiare_0-1694810092225.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Sep 2023 21:57:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-sort-data/m-p/657772#M227179</guid>
      <dc:creator>jaydiare</dc:creator>
      <dc:date>2023-09-18T21:57:21Z</dc:date>
    </item>
    <item>
      <title>Re: sorting data</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-sort-data/m-p/657798#M227195</link>
      <description>&lt;LI-CODE lang="markup"&gt;index=query_mcc 
| eval data=split(_raw,"
")
| mvexpand data
| eval data = split(data, ",")
| eval Date = strftime(_time, "%Y-%m-%d-%H:%M:%S") 
| eval Category = mvindex(data, 1) 
| eval Status = mvindex(data, -1) 
| eval Command = mvindex(data, 0) 
| table host, Date, Category, Status, Command&lt;/LI-CODE&gt;</description>
      <pubDate>Sat, 16 Sep 2023 07:46:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-sort-data/m-p/657798#M227195</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2023-09-16T07:46:49Z</dc:date>
    </item>
    <item>
      <title>Re: sorting data</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-sort-data/m-p/657799#M227196</link>
      <description>&lt;P&gt;Regardless of splitting the event, there is no "merged" cells in Splunk. So you can't visualize it this way.&lt;/P&gt;</description>
      <pubDate>Sat, 16 Sep 2023 08:24:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-sort-data/m-p/657799#M227196</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2023-09-16T08:24:14Z</dc:date>
    </item>
  </channel>
</rss>

