<?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 Apply a factor to count in timechart in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Apply-a-factor-to-count-in-timechart/m-p/142901#M39690</link>
    <description>&lt;P&gt;Hi. &lt;/P&gt;

&lt;P&gt;I'm triying to correlate in a time chart number of visits with average response time but time is in milisecons and visits in thousands, so y want to aply a factor to count thousands instead of visits, but seems I can not apply directly to a count. I also tried to eval it previously but still getting invalid command.&lt;/P&gt;

&lt;P&gt;so how do I apply a factor to a count in order to reduce its magnitude for a timechart? I'm using splunkstorm&lt;/P&gt;</description>
    <pubDate>Sat, 08 Feb 2014 08:59:18 GMT</pubDate>
    <dc:creator>splunkprimeriti</dc:creator>
    <dc:date>2014-02-08T08:59:18Z</dc:date>
    <item>
      <title>Apply a factor to count in timechart</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Apply-a-factor-to-count-in-timechart/m-p/142901#M39690</link>
      <description>&lt;P&gt;Hi. &lt;/P&gt;

&lt;P&gt;I'm triying to correlate in a time chart number of visits with average response time but time is in milisecons and visits in thousands, so y want to aply a factor to count thousands instead of visits, but seems I can not apply directly to a count. I also tried to eval it previously but still getting invalid command.&lt;/P&gt;

&lt;P&gt;so how do I apply a factor to a count in order to reduce its magnitude for a timechart? I'm using splunkstorm&lt;/P&gt;</description>
      <pubDate>Sat, 08 Feb 2014 08:59:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Apply-a-factor-to-count-in-timechart/m-p/142901#M39690</guid>
      <dc:creator>splunkprimeriti</dc:creator>
      <dc:date>2014-02-08T08:59:18Z</dc:date>
    </item>
    <item>
      <title>Re: Apply a factor to count in timechart</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Apply-a-factor-to-count-in-timechart/m-p/142902#M39691</link>
      <description>&lt;P&gt;How did you try eval? That's probably how you would achieve this.&lt;/P&gt;</description>
      <pubDate>Sat, 08 Feb 2014 10:19:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Apply-a-factor-to-count-in-timechart/m-p/142902#M39691</guid>
      <dc:creator>Ayn</dc:creator>
      <dc:date>2014-02-08T10:19:49Z</dc:date>
    </item>
    <item>
      <title>Re: Apply a factor to count in timechart</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Apply-a-factor-to-count-in-timechart/m-p/142903#M39692</link>
      <description>&lt;P&gt;Try this workaround. Assumming your original query is like this (giving count in 1000's and you want to apply a factor fct to reduce the magnitude of values.&lt;BR /&gt;
Orig:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=XX sourcetype=YY | timechart span=NN count by somefield
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Updated:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=XX sourcetype=YY | bucket span=NN _time | stats count by somefield,_time | timechart sum(eval(count/fct)) as count by somefield | makecontinous _time span=NN
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 08 Feb 2014 17:43:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Apply-a-factor-to-count-in-timechart/m-p/142903#M39692</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2014-02-08T17:43:21Z</dc:date>
    </item>
  </channel>
</rss>

