<?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: How to create a timechart from calculated value? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-timechart-from-calculated-value/m-p/368224#M108540</link>
    <description>&lt;P&gt;I would try like this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| eval Output1 = 'Value1'*10
 | eval Output2 = ((10*'Value2') + 'Output1')
 | timechart span=1m values(Output2)  by host 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The values function may give multivalued field if your data coming multiple times in a minute and nothing will be plotted. If that is the case you may want to different function here (min, max, avg, sum etc instead of values).&lt;/P&gt;</description>
    <pubDate>Tue, 21 Mar 2017 14:59:00 GMT</pubDate>
    <dc:creator>somesoni2</dc:creator>
    <dc:date>2017-03-21T14:59:00Z</dc:date>
    <item>
      <title>How to create a timechart from calculated value?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-timechart-from-calculated-value/m-p/368221#M108537</link>
      <description>&lt;P&gt;Hello I have a search to plot the calculated value over time. However the search is not working as expected. &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| eval Output1 = Value1 * 10
| eval Output2 = ((10 * (Value2)) + Output1)
| timechart span=1m values(Output2)  by host 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The above search is not plotting the Output2 value graph. If I just change the value for Output1 in eval Output2 then it works i.e.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| eval Output2 = ((10 * (Value2)) + 10)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Is there any other way to timechart calculated value?&lt;/P&gt;</description>
      <pubDate>Tue, 21 Mar 2017 09:59:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-timechart-from-calculated-value/m-p/368221#M108537</guid>
      <dc:creator>balendra</dc:creator>
      <dc:date>2017-03-21T09:59:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a timechart from calculated value?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-timechart-from-calculated-value/m-p/368222#M108538</link>
      <description>&lt;P&gt;could you doublecheck the format of your fields to be numeric? &lt;/P&gt;</description>
      <pubDate>Tue, 21 Mar 2017 13:51:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-timechart-from-calculated-value/m-p/368222#M108538</guid>
      <dc:creator>asimagu</dc:creator>
      <dc:date>2017-03-21T13:51:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a timechart from calculated value?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-timechart-from-calculated-value/m-p/368223#M108539</link>
      <description>&lt;P&gt;Output1 field is numeric too. &lt;BR /&gt;
| eval Output1 = Value1 - 10&lt;/P&gt;</description>
      <pubDate>Tue, 21 Mar 2017 14:34:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-timechart-from-calculated-value/m-p/368223#M108539</guid>
      <dc:creator>balendra</dc:creator>
      <dc:date>2017-03-21T14:34:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a timechart from calculated value?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-timechart-from-calculated-value/m-p/368224#M108540</link>
      <description>&lt;P&gt;I would try like this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| eval Output1 = 'Value1'*10
 | eval Output2 = ((10*'Value2') + 'Output1')
 | timechart span=1m values(Output2)  by host 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The values function may give multivalued field if your data coming multiple times in a minute and nothing will be plotted. If that is the case you may want to different function here (min, max, avg, sum etc instead of values).&lt;/P&gt;</description>
      <pubDate>Tue, 21 Mar 2017 14:59:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-timechart-from-calculated-value/m-p/368224#M108540</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2017-03-21T14:59:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a timechart from calculated value?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-timechart-from-calculated-value/m-p/368225#M108541</link>
      <description>&lt;P&gt;Since the data is coming every minute with the values function there was no data. And I changed to the below query and its working now.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| eval Output1 = 'Value1'*10
| eval Output2 = (10*'Value2')
| timechart span=1m perc90(Output2) eval(avg(Ouput1) + avg(Output2)) as total_out by host
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Thanks somesoni2&lt;/P&gt;</description>
      <pubDate>Tue, 21 Mar 2017 21:39:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-timechart-from-calculated-value/m-p/368225#M108541</guid>
      <dc:creator>balendra</dc:creator>
      <dc:date>2017-03-21T21:39:59Z</dc:date>
    </item>
  </channel>
</rss>

