<?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: I'm having trouble with the &amp;quot;over&amp;quot; syntax.  How to use it in this situation? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/I-m-having-trouble-with-the-quot-over-quot-syntax-How-to-use-it/m-p/355955#M105319</link>
    <description>&lt;P&gt;Ah.  You lost the values for &lt;CODE&gt;MachineState&lt;/CODE&gt; in your &lt;CODE&gt;stats&lt;/CODE&gt; command.  Any field not present in the &lt;CODE&gt;stats&lt;/CODE&gt; command is &lt;STRONG&gt;GONE&lt;/STRONG&gt; after it.&lt;/P&gt;

&lt;P&gt;I'm assuming you have many more employees then you have machine states, so you may want to remember "over rowname by columnname")&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; index="Plt15_tms3" ShiftName="1" EmployeeLoggedInLastName="*" MachineNumber&amp;lt;26  MachineState="*" 
| stats sum(ElapsedMachineSecondsInOrderPath) as ElapsedSeconds by EmployeeLoggedInLastName MachineState
| eval "Login Hours"=round(ElapsedSeconds/3600,2) 
| chart  sum("Login Hours") over EmployeeLoggedInLastName by MachineState
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Mon, 25 Sep 2017 14:16:49 GMT</pubDate>
    <dc:creator>DalJeanis</dc:creator>
    <dc:date>2017-09-25T14:16:49Z</dc:date>
    <item>
      <title>I'm having trouble with the "over" syntax.  How to use it in this situation?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/I-m-having-trouble-with-the-quot-over-quot-syntax-How-to-use-it/m-p/355951#M105315</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;index="Plt15_tms3" ShiftName="1" EmployeeLoggedInLastName="*" MachineNumber&amp;lt;26  MachineState="*" | stats sum(ElapsedMachineSecondsInOrderPath) as ElapsedMachineSecondsInOrderPath by EmployeeLoggedInLastName | eval "Login Hours"=ElapsedMachineSecondsInOrderPath/3600 | chart  sum("Login Hours") **over** MachineState by EmployeeLoggedInLastName
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;updated - marked as code&lt;/P&gt;</description>
      <pubDate>Sat, 23 Sep 2017 02:25:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/I-m-having-trouble-with-the-quot-over-quot-syntax-How-to-use-it/m-p/355951#M105315</guid>
      <dc:creator>Hppjet</dc:creator>
      <dc:date>2017-09-23T02:25:36Z</dc:date>
    </item>
    <item>
      <title>Re: I'm having trouble with the "over" syntax.  How to use it in this situation?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/I-m-having-trouble-with-the-quot-over-quot-syntax-How-to-use-it/m-p/355952#M105316</link>
      <description>&lt;P&gt;hmm what is your desired output? can you be a bit more specific?&lt;/P&gt;</description>
      <pubDate>Sat, 23 Sep 2017 09:28:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/I-m-having-trouble-with-the-quot-over-quot-syntax-How-to-use-it/m-p/355952#M105316</guid>
      <dc:creator>Sukisen1981</dc:creator>
      <dc:date>2017-09-23T09:28:52Z</dc:date>
    </item>
    <item>
      <title>Re: I'm having trouble with the "over" syntax.  How to use it in this situation?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/I-m-having-trouble-with-the-quot-over-quot-syntax-How-to-use-it/m-p/355953#M105317</link>
      <description>&lt;P&gt;I was hoping to create a column chart that has totals for "Login Hours" that is separated by machine state(running, stopped) that is broken out by Employee last name.&lt;/P&gt;</description>
      <pubDate>Mon, 25 Sep 2017 12:40:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/I-m-having-trouble-with-the-quot-over-quot-syntax-How-to-use-it/m-p/355953#M105317</guid>
      <dc:creator>Hppjet</dc:creator>
      <dc:date>2017-09-25T12:40:13Z</dc:date>
    </item>
    <item>
      <title>Re: I'm having trouble with the "over" syntax.  How to use it in this situation?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/I-m-having-trouble-with-the-quot-over-quot-syntax-How-to-use-it/m-p/355954#M105318</link>
      <description>&lt;P&gt;@hppjet - can you post a quick mockup of your desired output?&lt;/P&gt;</description>
      <pubDate>Mon, 25 Sep 2017 14:07:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/I-m-having-trouble-with-the-quot-over-quot-syntax-How-to-use-it/m-p/355954#M105318</guid>
      <dc:creator>DalJeanis</dc:creator>
      <dc:date>2017-09-25T14:07:00Z</dc:date>
    </item>
    <item>
      <title>Re: I'm having trouble with the "over" syntax.  How to use it in this situation?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/I-m-having-trouble-with-the-quot-over-quot-syntax-How-to-use-it/m-p/355955#M105319</link>
      <description>&lt;P&gt;Ah.  You lost the values for &lt;CODE&gt;MachineState&lt;/CODE&gt; in your &lt;CODE&gt;stats&lt;/CODE&gt; command.  Any field not present in the &lt;CODE&gt;stats&lt;/CODE&gt; command is &lt;STRONG&gt;GONE&lt;/STRONG&gt; after it.&lt;/P&gt;

&lt;P&gt;I'm assuming you have many more employees then you have machine states, so you may want to remember "over rowname by columnname")&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; index="Plt15_tms3" ShiftName="1" EmployeeLoggedInLastName="*" MachineNumber&amp;lt;26  MachineState="*" 
| stats sum(ElapsedMachineSecondsInOrderPath) as ElapsedSeconds by EmployeeLoggedInLastName MachineState
| eval "Login Hours"=round(ElapsedSeconds/3600,2) 
| chart  sum("Login Hours") over EmployeeLoggedInLastName by MachineState
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 25 Sep 2017 14:16:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/I-m-having-trouble-with-the-quot-over-quot-syntax-How-to-use-it/m-p/355955#M105319</guid>
      <dc:creator>DalJeanis</dc:creator>
      <dc:date>2017-09-25T14:16:49Z</dc:date>
    </item>
    <item>
      <title>Re: I'm having trouble with the "over" syntax.  How to use it in this situation?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/I-m-having-trouble-with-the-quot-over-quot-syntax-How-to-use-it/m-p/355956#M105320</link>
      <description>&lt;P&gt;Thank you for this solution and lesson.   I didn't know it would be lost after stats.&lt;/P&gt;</description>
      <pubDate>Mon, 25 Sep 2017 14:26:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/I-m-having-trouble-with-the-quot-over-quot-syntax-How-to-use-it/m-p/355956#M105320</guid>
      <dc:creator>Hppjet</dc:creator>
      <dc:date>2017-09-25T14:26:38Z</dc:date>
    </item>
    <item>
      <title>Re: I'm having trouble with the "over" syntax.  How to use it in this situation?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/I-m-having-trouble-with-the-quot-over-quot-syntax-How-to-use-it/m-p/355957#M105321</link>
      <description>&lt;P&gt;@hppjet - yes, &lt;CODE&gt;stats&lt;/CODE&gt; is a transforming command that summarizes all the records into a few new summary records.  If you want to do something &lt;CODE&gt;stats&lt;/CODE&gt;-like, but just want to add the calculated fields to every event, then use &lt;CODE&gt;eventstats&lt;/CODE&gt;.   If you want to do something that will process the events in order, like calculating an ongoing cumulative value across time, then use &lt;CODE&gt;streamstats&lt;/CODE&gt; or &lt;CODE&gt;accum&lt;/CODE&gt;.  They each have their place.&lt;/P&gt;</description>
      <pubDate>Mon, 25 Sep 2017 15:00:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/I-m-having-trouble-with-the-quot-over-quot-syntax-How-to-use-it/m-p/355957#M105321</guid>
      <dc:creator>DalJeanis</dc:creator>
      <dc:date>2017-09-25T15:00:20Z</dc:date>
    </item>
  </channel>
</rss>

