<?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: Why do these seemingly identical searches return different results when sorted? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Why-do-these-seemingly-identical-searches-return-different/m-p/514898#M144543</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/224144"&gt;@CarbonCriterium&lt;/a&gt;&amp;nbsp;, in the last query&amp;nbsp;&lt;/P&gt;&lt;P&gt;..| stats sum(eval(sc_bytes/1073741824)) as Gigabytes by cs_uri_stem | sort -sc_bytes | head 100&lt;/P&gt;&lt;P&gt;below sort will do nothing as the field used for sorting does not exist in the result&lt;/P&gt;&lt;P&gt;...| sort -sc_bytes&lt;/P&gt;&lt;P&gt;and below is taking 100 results (after the stats command) from the top&amp;nbsp;&lt;/P&gt;&lt;P&gt;....| head 100&lt;/P&gt;&lt;P&gt;Are you seeing any different behavior?&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 19 Aug 2020 10:32:03 GMT</pubDate>
    <dc:creator>Nisha18789</dc:creator>
    <dc:date>2020-08-19T10:32:03Z</dc:date>
    <item>
      <title>Why do these seemingly identical searches return different results when sorted?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-do-these-seemingly-identical-searches-return-different/m-p/514777#M144496</link>
      <description>&lt;P&gt;I have four versions of a nearly identical search.&amp;nbsp; The last one returns a completely different result.&amp;nbsp; What is it about the interaction of the "sort" and "head" commands that changes the outcome?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;...| stats sum(eval(sc_bytes/1073741824)) AS Gigabytes by cs_uri_stem | sort -sc_bytes
...| stats sum(eval(sc_bytes/1073741824)) AS Gigabytes by cs_uri_stem | sort -Gigabytes
...| stats sum(eval(sc_bytes/1073741824)) AS Gigabytes by cs_uri_stem | sort -Gigabytes | head 100
...| stats sum(eval(sc_bytes/1073741824)) as Gigabytes by cs_uri_stem | sort -sc_bytes | head 100&lt;/LI-CODE&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>Tue, 18 Aug 2020 21:17:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-do-these-seemingly-identical-searches-return-different/m-p/514777#M144496</guid>
      <dc:creator>CarbonCriterium</dc:creator>
      <dc:date>2020-08-18T21:17:51Z</dc:date>
    </item>
    <item>
      <title>Re: Why do these seemingly identical searches return different results when sorted?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-do-these-seemingly-identical-searches-return-different/m-p/514898#M144543</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/224144"&gt;@CarbonCriterium&lt;/a&gt;&amp;nbsp;, in the last query&amp;nbsp;&lt;/P&gt;&lt;P&gt;..| stats sum(eval(sc_bytes/1073741824)) as Gigabytes by cs_uri_stem | sort -sc_bytes | head 100&lt;/P&gt;&lt;P&gt;below sort will do nothing as the field used for sorting does not exist in the result&lt;/P&gt;&lt;P&gt;...| sort -sc_bytes&lt;/P&gt;&lt;P&gt;and below is taking 100 results (after the stats command) from the top&amp;nbsp;&lt;/P&gt;&lt;P&gt;....| head 100&lt;/P&gt;&lt;P&gt;Are you seeing any different behavior?&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Aug 2020 10:32:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-do-these-seemingly-identical-searches-return-different/m-p/514898#M144543</guid>
      <dc:creator>Nisha18789</dc:creator>
      <dc:date>2020-08-19T10:32:03Z</dc:date>
    </item>
    <item>
      <title>Re: Why do these seemingly identical searches return different results when sorted?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-do-these-seemingly-identical-searches-return-different/m-p/514946#M144550</link>
      <description>&lt;P&gt;The head command appears to work correctly, but the results do not match up.&amp;nbsp; In the attached screenshot the values that have the greatest value in GB do not have the greatest value in Bytes.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Aug 2020 13:36:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-do-these-seemingly-identical-searches-return-different/m-p/514946#M144550</guid>
      <dc:creator>CarbonCriterium</dc:creator>
      <dc:date>2020-08-19T13:36:30Z</dc:date>
    </item>
    <item>
      <title>Re: Why do these seemingly identical searches return different results when sorted?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-do-these-seemingly-identical-searches-return-different/m-p/514955#M144551</link>
      <description>&lt;P&gt;hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/224144"&gt;@CarbonCriterium&lt;/a&gt;&amp;nbsp;, can you try this once and see it that helps&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;..| stats sum(sc_bytes) as bytes by cs_uri_stem | eval Gigabytes=bytes/1073741824|sort - Gigabytes | head 100&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Aug 2020 14:15:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-do-these-seemingly-identical-searches-return-different/m-p/514955#M144551</guid>
      <dc:creator>Nisha18789</dc:creator>
      <dc:date>2020-08-19T14:15:48Z</dc:date>
    </item>
  </channel>
</rss>

