<?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: eval/sum field in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/eval-sum-field/m-p/583828#M203316</link>
    <description>&lt;LI-CODE lang="markup"&gt;| bin span=1w _time
| stats dc(properties.request.viewerId) as count by _time
| autoregress count as previous
| eval diff=previous-count
| eval percent=100*diff/count&lt;/LI-CODE&gt;</description>
    <pubDate>Sat, 05 Feb 2022 17:34:11 GMT</pubDate>
    <dc:creator>ITWhisperer</dc:creator>
    <dc:date>2022-02-05T17:34:11Z</dc:date>
    <item>
      <title>eval/sum field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/eval-sum-field/m-p/583663#M203249</link>
      <description>&lt;P&gt;Hi folks,&lt;BR /&gt;What query can I use to sum up my field "viewer.Id" to see how many viewers we have between 01/22/2022 and 02/02/2022. I would like to see the count of Increment/decrement from my results and also in % by comparing it with different dates.&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;Evans&lt;/P&gt;</description>
      <pubDate>Fri, 04 Feb 2022 01:12:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/eval-sum-field/m-p/583663#M203249</guid>
      <dc:creator>EvansB</dc:creator>
      <dc:date>2022-02-04T01:12:59Z</dc:date>
    </item>
    <item>
      <title>Re: eval/sum field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/eval-sum-field/m-p/583667#M203250</link>
      <description>&lt;P&gt;What do your events look like?&lt;/P&gt;&lt;P&gt;Do you want to add up the values of viewer.id or count how many events each viewer id has or how many distinct viewer ids between those dates?&lt;/P&gt;&lt;P&gt;Which dates do you want to compare against?&lt;/P&gt;&lt;P&gt;Which increments/decrements are you trying to discover?&lt;/P&gt;</description>
      <pubDate>Fri, 04 Feb 2022 04:41:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/eval-sum-field/m-p/583667#M203250</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2022-02-04T04:41:23Z</dc:date>
    </item>
    <item>
      <title>Re: eval/sum field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/eval-sum-field/m-p/583725#M203276</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Thanks for the quick turnaround,&lt;BR /&gt;&lt;BR /&gt;I'm hoping to perform 2 tasks&lt;BR /&gt;1. Add up the values of viewer.id, and how many distinct viewer ids between those dates?&lt;BR /&gt;&lt;BR /&gt;2. I want to get the count of the total "viewer_id" for the past week against this week and compare if there were more viewers or less.&lt;BR /&gt;I also want to get this result not only as a count but also convert (more viewers or less total count) to percentage.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 04 Feb 2022 14:38:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/eval-sum-field/m-p/583725#M203276</guid>
      <dc:creator>EvansB</dc:creator>
      <dc:date>2022-02-04T14:38:36Z</dc:date>
    </item>
    <item>
      <title>Re: eval/sum field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/eval-sum-field/m-p/583823#M203312</link>
      <description>&lt;P&gt;It is still not clear what you are trying to do - your viewerId is not a number which can be added, it is a string of characters. You can however count the distinct values of viewerId or count how many times each viewerId occurs in your time period&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| stats dc(properties.request.viewerId)

| stats count by properties.request.viewerId&lt;/LI-CODE&gt;</description>
      <pubDate>Sat, 05 Feb 2022 16:44:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/eval-sum-field/m-p/583823#M203312</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2022-02-05T16:44:15Z</dc:date>
    </item>
    <item>
      <title>Re: eval/sum field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/eval-sum-field/m-p/583825#M203314</link>
      <description>&lt;P&gt;You're correct,&lt;BR /&gt;I want to get a&amp;nbsp;count of total viewerId that occurs in my time period(past week) and compare it with another time period(this week) to see possible increase or decrease of all viewerId.&amp;nbsp;&lt;BR /&gt;Also, I want to convert this result into percentage.&lt;BR /&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Sat, 05 Feb 2022 17:08:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/eval-sum-field/m-p/583825#M203314</guid>
      <dc:creator>EvansB</dc:creator>
      <dc:date>2022-02-05T17:08:06Z</dc:date>
    </item>
    <item>
      <title>Re: eval/sum field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/eval-sum-field/m-p/583826#M203315</link>
      <description>&lt;LI-CODE lang="markup"&gt;| bin span=1w _time
| stats dc(properties.request.viewerId) by _time&lt;/LI-CODE&gt;</description>
      <pubDate>Sat, 05 Feb 2022 17:14:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/eval-sum-field/m-p/583826#M203315</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2022-02-05T17:14:49Z</dc:date>
    </item>
    <item>
      <title>Re: eval/sum field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/eval-sum-field/m-p/583828#M203316</link>
      <description>&lt;LI-CODE lang="markup"&gt;| bin span=1w _time
| stats dc(properties.request.viewerId) as count by _time
| autoregress count as previous
| eval diff=previous-count
| eval percent=100*diff/count&lt;/LI-CODE&gt;</description>
      <pubDate>Sat, 05 Feb 2022 17:34:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/eval-sum-field/m-p/583828#M203316</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2022-02-05T17:34:11Z</dc:date>
    </item>
  </channel>
</rss>

