<?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: Divide a Result By Two in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Divide-a-Result-By-Two/m-p/79757#M16381</link>
    <description>&lt;P&gt;Thank you! This worked but it created a new column. Would there be a way to hide the original column (since I'm creating a chart from this and only need the new column)? Or would it be possible to divide this without creating a new column?&lt;/P&gt;</description>
    <pubDate>Wed, 20 Jun 2012 17:38:52 GMT</pubDate>
    <dc:creator>henryt1</dc:creator>
    <dc:date>2012-06-20T17:38:52Z</dc:date>
    <item>
      <title>Divide a Result By Two</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Divide-a-Result-By-Two/m-p/79755#M16379</link>
      <description>&lt;P&gt;The following search I'm running is giving me duplicate results for each event:&lt;/P&gt;

&lt;P&gt;(host="zakta-test.inno-360.com") AND (demo-landscaping-test.inno-360.com) AND ("POST /search2sectionhandler.php" OR "POST /search2keephandler.php") | stats count by referer_domain&lt;/P&gt;

&lt;P&gt;For instance if there were five events I'm interested in within the past hour it will return 10. However if I try to use "dedup" it just gives me a count of 1 since they're all similar events.&lt;/P&gt;

&lt;P&gt;How would I divide the results by 2 within Splunk? To make it a little obvious just doing 10/2=5.&lt;/P&gt;</description>
      <pubDate>Wed, 20 Jun 2012 16:26:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Divide-a-Result-By-Two/m-p/79755#M16379</guid>
      <dc:creator>henryt1</dc:creator>
      <dc:date>2012-06-20T16:26:05Z</dc:date>
    </item>
    <item>
      <title>Re: Divide a Result By Two</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Divide-a-Result-By-Two/m-p/79756#M16380</link>
      <description>&lt;P&gt;Instead of deduping based on host (not sure if that's what you are doing) maybe you could create another field for the URI's and dedup by those? Or maybe it's referer_domain that would work.  Anyways hard to tell without seeing your raw events.&lt;/P&gt;

&lt;P&gt;If you want to manipulate your count just use the eval command but hopefully you can find a way to use dedup.  &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | eval newCount = count/2
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 20 Jun 2012 16:52:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Divide-a-Result-By-Two/m-p/79756#M16380</guid>
      <dc:creator>sdaniels</dc:creator>
      <dc:date>2012-06-20T16:52:26Z</dc:date>
    </item>
    <item>
      <title>Re: Divide a Result By Two</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Divide-a-Result-By-Two/m-p/79757#M16381</link>
      <description>&lt;P&gt;Thank you! This worked but it created a new column. Would there be a way to hide the original column (since I'm creating a chart from this and only need the new column)? Or would it be possible to divide this without creating a new column?&lt;/P&gt;</description>
      <pubDate>Wed, 20 Jun 2012 17:38:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Divide-a-Result-By-Two/m-p/79757#M16381</guid>
      <dc:creator>henryt1</dc:creator>
      <dc:date>2012-06-20T17:38:52Z</dc:date>
    </item>
    <item>
      <title>Re: Divide a Result By Two</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Divide-a-Result-By-Two/m-p/79758#M16382</link>
      <description>&lt;P&gt;You could do &lt;BR /&gt;
... | fields - count  or pipe it to table and specify the columns you want ... | table myCount referer_domain.  I think both of those will get rid of count for you.&lt;/P&gt;</description>
      <pubDate>Wed, 20 Jun 2012 17:52:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Divide-a-Result-By-Two/m-p/79758#M16382</guid>
      <dc:creator>sdaniels</dc:creator>
      <dc:date>2012-06-20T17:52:45Z</dc:date>
    </item>
    <item>
      <title>Re: Divide a Result By Two</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Divide-a-Result-By-Two/m-p/79759#M16383</link>
      <description>&lt;P&gt;This is great, thank you!&lt;/P&gt;</description>
      <pubDate>Mon, 25 Jun 2012 18:39:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Divide-a-Result-By-Two/m-p/79759#M16383</guid>
      <dc:creator>henryt1</dc:creator>
      <dc:date>2012-06-25T18:39:46Z</dc:date>
    </item>
    <item>
      <title>Re: Divide a Result By Two</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Divide-a-Result-By-Two/m-p/79760#M16384</link>
      <description>&lt;P&gt;using the fieldformat operator should do what you need.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;...|fieldformat count=count/2
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 27 Feb 2014 15:55:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Divide-a-Result-By-Two/m-p/79760#M16384</guid>
      <dc:creator>cheganbm</dc:creator>
      <dc:date>2014-02-27T15:55:01Z</dc:date>
    </item>
  </channel>
</rss>

