<?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 does the stats function remove my fields and what Splunk solutions can I use for the following order: 1st do lastest(_time) -&amp;gt; then do sum(on the result of latest) in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Why-does-the-stats-function-remove-my-fields-and-what-Splunk/m-p/415835#M119692</link>
    <description>&lt;P&gt;I will try to illustrate the required outcome:&lt;/P&gt;

&lt;P&gt;Before using stats function I have the following fields:&lt;/P&gt;

&lt;P&gt;A, B, C, _time &lt;/P&gt;

&lt;P&gt;then I do this:&lt;BR /&gt;
|stats latest(_time) by B  * I want  to see the values for field C  for every value of field B&lt;BR /&gt;
then If I want to do that :&lt;BR /&gt;
|stats sum(C) * I get error as field C doesnt exist anymore as its not mentioned in stats command.&lt;/P&gt;</description>
    <pubDate>Mon, 21 Jan 2019 13:28:20 GMT</pubDate>
    <dc:creator>net1993</dc:creator>
    <dc:date>2019-01-21T13:28:20Z</dc:date>
    <item>
      <title>Why does the stats function remove my fields and what Splunk solutions can I use for the following order: 1st do lastest(_time) -&gt; then do sum(on the result of latest)</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-does-the-stats-function-remove-my-fields-and-what-Splunk/m-p/415830#M119687</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I've read a while ago how easier Splunk is vs SQL, but I do not agree within the context of my issue:(&lt;/P&gt;

&lt;P&gt;I want to get the latest values based on a field, and then use a different field, but according to SPL, this is not so common, and I need to use hours to hit my head in table&lt;/P&gt;

&lt;P&gt;So, basically, here's what I want:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;|stats latest(_time) by A
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;-&amp;gt; I want now to see/use values for field C, but I cannot as after stats, the only fields that are left are the ones mentioned in stats.&lt;/P&gt;</description>
      <pubDate>Mon, 21 Jan 2019 13:00:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-does-the-stats-function-remove-my-fields-and-what-Splunk/m-p/415830#M119687</guid>
      <dc:creator>net1993</dc:creator>
      <dc:date>2019-01-21T13:00:09Z</dc:date>
    </item>
    <item>
      <title>Re: Why does the stats function remove my fields and what Splunk solutions can I use for the following order: 1st do lastest(_time) -&gt; then do sum(on the result of latest)</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-does-the-stats-function-remove-my-fields-and-what-Splunk/m-p/415831#M119688</link>
      <description>&lt;P&gt;@net1993 &lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;Answer Updated from comments:&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;Please try this one. &lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;YOUR_SEARCH | eventstats latest(C) as C1 by A | stats values(C1) as C1 latest(_time) as T by A | eval _time=T | stats sum(C1) as C&lt;/CODE&gt; &lt;/P&gt;

&lt;P&gt;You just remove one by one syntax, you will get the flow of result. &lt;/P&gt;

&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/Splunk/latest/SearchReference/Eventstats"&gt;https://docs.splunk.com/Documentation/Splunk/latest/SearchReference/Eventstats&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;My Sample Search:&lt;/STRONG&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| makeresults 
| eval _raw="A=text1,C=23,Time=20180101", _time=(_time-(86000*4))
| append 
    [| makeresults 
    | eval _raw="A=text2,C=33,Time=20180102", _time=(_time-(86000*3)) ] 
| append 
    [| makeresults 
    | eval _raw="A=text1,C=24,Time=20180103", _time=(_time-(86000*2)) ] 
| append 
    [| makeresults 
    | eval _raw="A=text2,C=54,Time=20180104", _time=(_time-(86000*1)) ] 
| kv 
| eventstats latest(C) as C1 by A | stats values(C1) as C1 latest(_time) as T by A | eval _time=T | stats sum(C1) as C
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;STRONG&gt;Happy Splunking&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Jan 2019 13:10:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-does-the-stats-function-remove-my-fields-and-what-Splunk/m-p/415831#M119688</guid>
      <dc:creator>kamlesh_vaghela</dc:creator>
      <dc:date>2019-01-21T13:10:01Z</dc:date>
    </item>
    <item>
      <title>Re: Why does the stats function remove my fields and what Splunk solutions can I use for the following order: 1st do lastest(_time) -&gt; then do sum(on the result of latest)</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-does-the-stats-function-remove-my-fields-and-what-Splunk/m-p/415832#M119689</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;so your problem is that stats switch you over to statistic tab?, just change your search mode to verbose and you can switch back to events as well.&lt;/P&gt;</description>
      <pubDate>Mon, 21 Jan 2019 13:10:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-does-the-stats-function-remove-my-fields-and-what-Splunk/m-p/415832#M119689</guid>
      <dc:creator>dkeck</dc:creator>
      <dc:date>2019-01-21T13:10:20Z</dc:date>
    </item>
    <item>
      <title>Re: Why does the stats function remove my fields and what Splunk solutions can I use for the following order: 1st do lastest(_time) -&gt; then do sum(on the result of latest)</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-does-the-stats-function-remove-my-fields-and-what-Splunk/m-p/415833#M119690</link>
      <description>&lt;P&gt;hmm, no this is not doing what I need. I tried but instead of doing grouping , it does something else.&lt;/P&gt;</description>
      <pubDate>Mon, 21 Jan 2019 13:14:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-does-the-stats-function-remove-my-fields-and-what-Splunk/m-p/415833#M119690</guid>
      <dc:creator>net1993</dc:creator>
      <dc:date>2019-01-21T13:14:20Z</dc:date>
    </item>
    <item>
      <title>Re: Why does the stats function remove my fields and what Splunk solutions can I use for the following order: 1st do lastest(_time) -&gt; then do sum(on the result of latest)</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-does-the-stats-function-remove-my-fields-and-what-Splunk/m-p/415834#M119691</link>
      <description>&lt;P&gt;no. this is not the problem. I want to have stat table but what I want is after using the stats function to keep all of the fields which are before using stats. Currently, after stats is used, the only available fields after that are the one mentioned in stats function. The rest are unavailable.&lt;/P&gt;</description>
      <pubDate>Mon, 21 Jan 2019 13:20:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-does-the-stats-function-remove-my-fields-and-what-Splunk/m-p/415834#M119691</guid>
      <dc:creator>net1993</dc:creator>
      <dc:date>2019-01-21T13:20:08Z</dc:date>
    </item>
    <item>
      <title>Re: Why does the stats function remove my fields and what Splunk solutions can I use for the following order: 1st do lastest(_time) -&gt; then do sum(on the result of latest)</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-does-the-stats-function-remove-my-fields-and-what-Splunk/m-p/415835#M119692</link>
      <description>&lt;P&gt;I will try to illustrate the required outcome:&lt;/P&gt;

&lt;P&gt;Before using stats function I have the following fields:&lt;/P&gt;

&lt;P&gt;A, B, C, _time &lt;/P&gt;

&lt;P&gt;then I do this:&lt;BR /&gt;
|stats latest(_time) by B  * I want  to see the values for field C  for every value of field B&lt;BR /&gt;
then If I want to do that :&lt;BR /&gt;
|stats sum(C) * I get error as field C doesnt exist anymore as its not mentioned in stats command.&lt;/P&gt;</description>
      <pubDate>Mon, 21 Jan 2019 13:28:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-does-the-stats-function-remove-my-fields-and-what-Splunk/m-p/415835#M119692</guid>
      <dc:creator>net1993</dc:creator>
      <dc:date>2019-01-21T13:28:20Z</dc:date>
    </item>
    <item>
      <title>Re: Why does the stats function remove my fields and what Splunk solutions can I use for the following order: 1st do lastest(_time) -&gt; then do sum(on the result of latest)</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-does-the-stats-function-remove-my-fields-and-what-Splunk/m-p/415836#M119693</link>
      <description>&lt;P&gt;Hi @net1993&lt;/P&gt;

&lt;P&gt;Try like&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index="_internal" 
| stats list(date_hour) as date_hour count by host 
| mvexpand date_hour 
| stats sum(date_hour)
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 21 Jan 2019 14:00:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-does-the-stats-function-remove-my-fields-and-what-Splunk/m-p/415836#M119693</guid>
      <dc:creator>vnravikumar</dc:creator>
      <dc:date>2019-01-21T14:00:36Z</dc:date>
    </item>
    <item>
      <title>Re: Why does the stats function remove my fields and what Splunk solutions can I use for the following order: 1st do lastest(_time) -&gt; then do sum(on the result of latest)</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-does-the-stats-function-remove-my-fields-and-what-Splunk/m-p/415837#M119694</link>
      <description>&lt;P&gt;Can you please share some sample events and your expected output?? like&lt;BR /&gt;
1) Table of your event with your expected fields.&lt;BR /&gt;
2) Your final expected table &lt;/P&gt;</description>
      <pubDate>Mon, 21 Jan 2019 14:27:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-does-the-stats-function-remove-my-fields-and-what-Splunk/m-p/415837#M119694</guid>
      <dc:creator>kamlesh_vaghela</dc:creator>
      <dc:date>2019-01-21T14:27:00Z</dc:date>
    </item>
    <item>
      <title>Re: Why does the stats function remove my fields and what Splunk solutions can I use for the following order: 1st do lastest(_time) -&gt; then do sum(on the result of latest)</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-does-the-stats-function-remove-my-fields-and-what-Splunk/m-p/415838#M119695</link>
      <description>&lt;P&gt;thank you but this still is not right solution but I think you got the point. The problems with mvexpand:&lt;BR /&gt;
- work with only up to 100 values.&lt;BR /&gt;
- it is sorting the values as they re strings where isntead I need to get only these values which care corresponding on the rows for result from latest function.&lt;BR /&gt;
- as far as I see from your command, the final sum will do sum on all values from list command fx 100x values but this ebcomes incorect as I want sum only on the values resulting from latest functions row&lt;/P&gt;</description>
      <pubDate>Mon, 21 Jan 2019 14:31:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-does-the-stats-function-remove-my-fields-and-what-Splunk/m-p/415838#M119695</guid>
      <dc:creator>net1993</dc:creator>
      <dc:date>2019-01-21T14:31:19Z</dc:date>
    </item>
    <item>
      <title>Re: Why does the stats function remove my fields and what Splunk solutions can I use for the following order: 1st do lastest(_time) -&gt; then do sum(on the result of latest)</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-does-the-stats-function-remove-my-fields-and-what-Splunk/m-p/415839#M119696</link>
      <description>&lt;P&gt;@net1993&lt;/P&gt;

&lt;P&gt;Can you please try these?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;|stats latest(_time) as Time by B,C |stats sum(C)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;OR&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;|stats latest(_time) as Time , latest(C) as C by B |stats sum(C)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;OR&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;|stats latest(_time) as Time , values(C) as C by B |stats sum(C)
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 21 Jan 2019 14:32:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-does-the-stats-function-remove-my-fields-and-what-Splunk/m-p/415839#M119696</guid>
      <dc:creator>kamlesh_vaghela</dc:creator>
      <dc:date>2019-01-21T14:32:40Z</dc:date>
    </item>
    <item>
      <title>Re: Why does the stats function remove my fields and what Splunk solutions can I use for the following order: 1st do lastest(_time) -&gt; then do sum(on the result of latest)</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-does-the-stats-function-remove-my-fields-and-what-Splunk/m-p/415840#M119697</link>
      <description>&lt;P&gt;Yes I hope this is enought.?&lt;/P&gt;

&lt;P&gt;Before using stats function I have the following fields:&lt;/P&gt;

&lt;P&gt;A, B, C, _time&lt;/P&gt;

&lt;P&gt;then I do this:&lt;BR /&gt;
|stats latest(_time) by B I want to see the resulting values for field C for every value of field B &lt;BR /&gt;
then If I want to do that :&lt;BR /&gt;
|stats sum(C) I get error as field C doesnt exist anymore as its not mentioned in stats command.&lt;BR /&gt;
let me know if not clear&lt;/P&gt;</description>
      <pubDate>Mon, 21 Jan 2019 14:33:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-does-the-stats-function-remove-my-fields-and-what-Splunk/m-p/415840#M119697</guid>
      <dc:creator>net1993</dc:creator>
      <dc:date>2019-01-21T14:33:24Z</dc:date>
    </item>
    <item>
      <title>Re: Why does the stats function remove my fields and what Splunk solutions can I use for the following order: 1st do lastest(_time) -&gt; then do sum(on the result of latest)</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-does-the-stats-function-remove-my-fields-and-what-Splunk/m-p/415841#M119698</link>
      <description>&lt;P&gt;@net1993&lt;/P&gt;

&lt;P&gt;Can you please share sample output of &lt;CODE&gt;A, B, C, _time&lt;/CODE&gt; ?&lt;/P&gt;</description>
      <pubDate>Mon, 21 Jan 2019 14:36:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-does-the-stats-function-remove-my-fields-and-what-Splunk/m-p/415841#M119698</guid>
      <dc:creator>kamlesh_vaghela</dc:creator>
      <dc:date>2019-01-21T14:36:38Z</dc:date>
    </item>
    <item>
      <title>Re: Why does the stats function remove my fields and what Splunk solutions can I use for the following order: 1st do lastest(_time) -&gt; then do sum(on the result of latest)</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-does-the-stats-function-remove-my-fields-and-what-Splunk/m-p/415842#M119699</link>
      <description>&lt;H2&gt;A|C|_time &lt;/H2&gt;

&lt;P&gt;text1|23|20180101\n&lt;BR /&gt;
text2|33|20180102\n&lt;BR /&gt;
text1|24|20180103\n&lt;BR /&gt;
text2|54|20180104\n&lt;/P&gt;

&lt;P&gt;|stats latest(_time) by A &lt;/P&gt;

&lt;H2&gt;A|C|_time &lt;/H2&gt;

&lt;P&gt;text1|20180103\n&lt;BR /&gt;
text2|20180104\n&lt;/P&gt;

&lt;H2&gt;A|C|_time &lt;/H2&gt;

&lt;P&gt;text1|24|20180103\n&lt;BR /&gt;
text2|54|20180104\n&lt;/P&gt;

&lt;P&gt;then I want to do sum on C&lt;/P&gt;

&lt;P&gt;and get:&lt;BR /&gt;
78&lt;/P&gt;</description>
      <pubDate>Mon, 21 Jan 2019 14:52:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-does-the-stats-function-remove-my-fields-and-what-Splunk/m-p/415842#M119699</guid>
      <dc:creator>net1993</dc:creator>
      <dc:date>2019-01-21T14:52:15Z</dc:date>
    </item>
    <item>
      <title>Re: Why does the stats function remove my fields and what Splunk solutions can I use for the following order: 1st do lastest(_time) -&gt; then do sum(on the result of latest)</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-does-the-stats-function-remove-my-fields-and-what-Splunk/m-p/415843#M119700</link>
      <description>&lt;P&gt;I marked \n for new line as the reply web form is not recognizing new lines&lt;/P&gt;</description>
      <pubDate>Mon, 21 Jan 2019 14:57:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-does-the-stats-function-remove-my-fields-and-what-Splunk/m-p/415843#M119700</guid>
      <dc:creator>net1993</dc:creator>
      <dc:date>2019-01-21T14:57:13Z</dc:date>
    </item>
    <item>
      <title>Re: Why does the stats function remove my fields and what Splunk solutions can I use for the following order: 1st do lastest(_time) -&gt; then do sum(on the result of latest)</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-does-the-stats-function-remove-my-fields-and-what-Splunk/m-p/415844#M119701</link>
      <description>&lt;P&gt;Does &lt;CODE&gt;_time&lt;/CODE&gt; contain &lt;CODE&gt;20180101&lt;/CODE&gt;?? Don't you think it should be epoch??&lt;/P&gt;</description>
      <pubDate>Mon, 21 Jan 2019 14:57:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-does-the-stats-function-remove-my-fields-and-what-Splunk/m-p/415844#M119701</guid>
      <dc:creator>kamlesh_vaghela</dc:creator>
      <dc:date>2019-01-21T14:57:36Z</dc:date>
    </item>
    <item>
      <title>Re: Why does the stats function remove my fields and what Splunk solutions can I use for the following order: 1st do lastest(_time) -&gt; then do sum(on the result of latest)</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-does-the-stats-function-remove-my-fields-and-what-Splunk/m-p/415845#M119702</link>
      <description>&lt;P&gt;its epoch but I write it like that for simplicity..&lt;/P&gt;</description>
      <pubDate>Mon, 21 Jan 2019 14:58:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-does-the-stats-function-remove-my-fields-and-what-Splunk/m-p/415845#M119702</guid>
      <dc:creator>net1993</dc:creator>
      <dc:date>2019-01-21T14:58:48Z</dc:date>
    </item>
    <item>
      <title>Re: Why does the stats function remove my fields and what Splunk solutions can I use for the following order: 1st do lastest(_time) -&gt; then do sum(on the result of latest)</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-does-the-stats-function-remove-my-fields-and-what-Splunk/m-p/415846#M119703</link>
      <description>&lt;P&gt;@net1993&lt;/P&gt;

&lt;P&gt;Can you please try this?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;YOUR_SEARCH 
| dedup A 
| stats sum(C) as C
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 21 Jan 2019 15:06:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-does-the-stats-function-remove-my-fields-and-what-Splunk/m-p/415846#M119703</guid>
      <dc:creator>kamlesh_vaghela</dc:creator>
      <dc:date>2019-01-21T15:06:28Z</dc:date>
    </item>
    <item>
      <title>Re: Why does the stats function remove my fields and what Splunk solutions can I use for the following order: 1st do lastest(_time) -&gt; then do sum(on the result of latest)</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-does-the-stats-function-remove-my-fields-and-what-Splunk/m-p/415847#M119704</link>
      <description>&lt;P&gt;dedup will remove data which I need , this is incorect.&lt;/P&gt;</description>
      <pubDate>Mon, 21 Jan 2019 15:08:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-does-the-stats-function-remove-my-fields-and-what-Splunk/m-p/415847#M119704</guid>
      <dc:creator>net1993</dc:creator>
      <dc:date>2019-01-21T15:08:32Z</dc:date>
    </item>
    <item>
      <title>Re: Why does the stats function remove my fields and what Splunk solutions can I use for the following order: 1st do lastest(_time) -&gt; then do sum(on the result of latest)</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-does-the-stats-function-remove-my-fields-and-what-Splunk/m-p/415848#M119705</link>
      <description>&lt;P&gt;@net1993&lt;/P&gt;

&lt;P&gt;Yes.&lt;/P&gt;

&lt;P&gt;Please try this one. &lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;YOUR_SEARCH | eventstats latest(C) as C1 by A | stats values(C1) as C1 latest(_time) as T by A | eval _time=T | stats sum(C1) as C&lt;/CODE&gt; &lt;/P&gt;

&lt;P&gt;You just remove one by one syntax, you will get the flow of result. &lt;/P&gt;

&lt;P&gt;My Sample Search:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| makeresults 
| eval _raw="A=text1,C=23,Time=20180101", _time=(_time-(86000*4))
| append 
    [| makeresults 
    | eval _raw="A=text2,C=33,Time=20180102", _time=(_time-(86000*3)) ] 
| append 
    [| makeresults 
    | eval _raw="A=text1,C=24,Time=20180103", _time=(_time-(86000*2)) ] 
| append 
    [| makeresults 
    | eval _raw="A=text2,C=54,Time=20180104", _time=(_time-(86000*1)) ] 
| kv 
| eventstats latest(C) as C1 by A | stats values(C1) as C1 latest(_time) as T by A | eval _time=T | stats sum(C1) as C
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 21 Jan 2019 15:21:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-does-the-stats-function-remove-my-fields-and-what-Splunk/m-p/415848#M119705</guid>
      <dc:creator>kamlesh_vaghela</dc:creator>
      <dc:date>2019-01-21T15:21:55Z</dc:date>
    </item>
    <item>
      <title>Re: Why does the stats function remove my fields and what Splunk solutions can I use for the following order: 1st do lastest(_time) -&gt; then do sum(on the result of latest)</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-does-the-stats-function-remove-my-fields-and-what-Splunk/m-p/415849#M119706</link>
      <description>&lt;P&gt;Hi &lt;BR /&gt;
Thanks a lot for the fast responses and help:)&lt;BR /&gt;
I needed 1,5 hour to check this but seems to work quite ok.&lt;BR /&gt;
Still it is not the perfect solution as this retain the value of only 1 field. lWhat do we do if we need whole row. Write 50 lines more?&lt;BR /&gt;
Anyway, this is working solution.&lt;/P&gt;</description>
      <pubDate>Mon, 21 Jan 2019 23:01:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-does-the-stats-function-remove-my-fields-and-what-Splunk/m-p/415849#M119706</guid>
      <dc:creator>net1993</dc:creator>
      <dc:date>2019-01-21T23:01:00Z</dc:date>
    </item>
  </channel>
</rss>

