<?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: Alternative for eval while using pivot in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Alternative-for-eval-while-using-pivot/m-p/118135#M31500</link>
    <description>&lt;P&gt;I downvoted this post because i tried the same and it didn't work for me.&lt;/P&gt;</description>
    <pubDate>Thu, 17 Nov 2016 23:12:44 GMT</pubDate>
    <dc:creator>emoyoun</dc:creator>
    <dc:date>2016-11-17T23:12:44Z</dc:date>
    <item>
      <title>Alternative for eval while using pivot</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Alternative-for-eval-while-using-pivot/m-p/118132#M31497</link>
      <description>&lt;P&gt;I wanted to accelerate my searches so I am using data models and pivot. &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| pivot Accounting Accounting  sum(Input) AS "Input" sum(Output) AS "Output" dc(User_Name) AS "Distinct Count of User_Name" SPLITROW _time AS _time PERIOD hour SORT 100 _time ROWSUMMARY 0 COLSUMMARY 0 NUMCOLS 0 SHOWOTHER 1 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I want to do a simple &lt;CODE&gt;sum(Input)/10000 as "input"&lt;/CODE&gt;  (Division by 10000) that's all. &lt;BR /&gt;
I tried using stats before the sum and also eval, but it does not work on a pivot. How can I do this? &lt;/P&gt;</description>
      <pubDate>Wed, 20 May 2015 16:59:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Alternative-for-eval-while-using-pivot/m-p/118132#M31497</guid>
      <dc:creator>sushmitha_mj</dc:creator>
      <dc:date>2015-05-20T16:59:36Z</dc:date>
    </item>
    <item>
      <title>Re: Alternative for eval while using pivot</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Alternative-for-eval-while-using-pivot/m-p/118133#M31498</link>
      <description>&lt;P&gt;I don't currently have a way to test this, but if it behaves like the timechart command, you should be able to do this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| pivot Accounting Accounting  sum(eval(Input/1000))  AS "Input" sum(Output) AS "Output" dc(User_Name) AS "Distinct Count of User_Name" SPLITROW _time AS _time PERIOD hour SORT 100 _time ROWSUMMARY 0 COLSUMMARY 0 NUMCOLS 0 SHOWOTHER 1 
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 20 May 2015 21:21:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Alternative-for-eval-while-using-pivot/m-p/118133#M31498</guid>
      <dc:creator>alacercogitatus</dc:creator>
      <dc:date>2015-05-20T21:21:04Z</dc:date>
    </item>
    <item>
      <title>Re: Alternative for eval while using pivot</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Alternative-for-eval-while-using-pivot/m-p/118134#M31499</link>
      <description>&lt;P&gt;I tried this and it didn't work.&lt;BR /&gt;
| pivot Statistics HTTP sum(eval(count/3600)) AS "Total Number of Transactions"&lt;/P&gt;

&lt;P&gt;I get this error:&lt;BR /&gt;
 Error in 'PivotCell': The object 'HTTP' has no field 'eval(count/3600'.&lt;/P&gt;

&lt;P&gt;Any ideas??&lt;/P&gt;</description>
      <pubDate>Thu, 17 Nov 2016 23:11:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Alternative-for-eval-while-using-pivot/m-p/118134#M31499</guid>
      <dc:creator>emoyoun</dc:creator>
      <dc:date>2016-11-17T23:11:51Z</dc:date>
    </item>
    <item>
      <title>Re: Alternative for eval while using pivot</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Alternative-for-eval-while-using-pivot/m-p/118135#M31500</link>
      <description>&lt;P&gt;I downvoted this post because i tried the same and it didn't work for me.&lt;/P&gt;</description>
      <pubDate>Thu, 17 Nov 2016 23:12:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Alternative-for-eval-while-using-pivot/m-p/118135#M31500</guid>
      <dc:creator>emoyoun</dc:creator>
      <dc:date>2016-11-17T23:12:44Z</dc:date>
    </item>
    <item>
      <title>Re: Alternative for eval while using pivot</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Alternative-for-eval-while-using-pivot/m-p/118136#M31501</link>
      <description>&lt;P&gt;Hi @emoyoun&lt;/P&gt;

&lt;P&gt;Please reserve downvoting for answers and suggestions that could potentially be harmful for a Splunk environment, not just because something didn't work for you. as this solution can be useful for other users. Please review how voting etiquette works in the Splunk community and this forum before further engaging in the forum. &lt;BR /&gt;
&lt;A href="https://answers.splunk.com/answers/244111/proper-etiquette-and-timing-for-voting-here-on-ans.html"&gt;https://answers.splunk.com/answers/244111/proper-etiquette-and-timing-for-voting-here-on-ans.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Nov 2016 23:23:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Alternative-for-eval-while-using-pivot/m-p/118136#M31501</guid>
      <dc:creator>ppablo</dc:creator>
      <dc:date>2016-11-17T23:23:11Z</dc:date>
    </item>
  </channel>
</rss>

