<?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 How to use timechart  with Eval command in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-use-timechart-with-Eval-command/m-p/489788#M136805</link>
    <description>&lt;P&gt;index=storage source="/******&lt;EM&gt;.csv" &lt;BR /&gt;
| stats sum(00_&lt;/EM&gt;)     //It represents sum of various fields&lt;BR /&gt;
| eval sum1=0 &lt;BR /&gt;
| foreach sum* &lt;BR /&gt;
    [ eval sum1=sum1+'&amp;lt;&lt;FIELD&gt;&amp;gt;'] &lt;BR /&gt;
| addinfo &lt;BR /&gt;
| eval time_in_min=(info_max_time-info_min_time)/60 &lt;BR /&gt;
| eval sum1=sum1/time_in_min     //It shows the average value &lt;BR /&gt;
| fields sum1&lt;/FIELD&gt;&lt;/P&gt;

&lt;P&gt;I need timechart for sum1 with above data, is it possible ? Any help would be appreciated.&lt;BR /&gt;
Thanks in Advance&lt;/P&gt;</description>
    <pubDate>Wed, 30 Sep 2020 02:20:28 GMT</pubDate>
    <dc:creator>shugup2923</dc:creator>
    <dc:date>2020-09-30T02:20:28Z</dc:date>
    <item>
      <title>How to use timechart  with Eval command</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-use-timechart-with-Eval-command/m-p/489788#M136805</link>
      <description>&lt;P&gt;index=storage source="/******&lt;EM&gt;.csv" &lt;BR /&gt;
| stats sum(00_&lt;/EM&gt;)     //It represents sum of various fields&lt;BR /&gt;
| eval sum1=0 &lt;BR /&gt;
| foreach sum* &lt;BR /&gt;
    [ eval sum1=sum1+'&amp;lt;&lt;FIELD&gt;&amp;gt;'] &lt;BR /&gt;
| addinfo &lt;BR /&gt;
| eval time_in_min=(info_max_time-info_min_time)/60 &lt;BR /&gt;
| eval sum1=sum1/time_in_min     //It shows the average value &lt;BR /&gt;
| fields sum1&lt;/FIELD&gt;&lt;/P&gt;

&lt;P&gt;I need timechart for sum1 with above data, is it possible ? Any help would be appreciated.&lt;BR /&gt;
Thanks in Advance&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 02:20:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-use-timechart-with-Eval-command/m-p/489788#M136805</guid>
      <dc:creator>shugup2923</dc:creator>
      <dc:date>2020-09-30T02:20:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to use timechart  with Eval command</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-use-timechart-with-Eval-command/m-p/489789#M136806</link>
      <description>&lt;P&gt;@shugup2923 &lt;/P&gt;

&lt;P&gt;Can you please share your search using &lt;CODE&gt;code&lt;/CODE&gt; block?&lt;/P&gt;</description>
      <pubDate>Wed, 25 Sep 2019 12:00:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-use-timechart-with-Eval-command/m-p/489789#M136806</guid>
      <dc:creator>kamlesh_vaghela</dc:creator>
      <dc:date>2019-09-25T12:00:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to use timechart  with Eval command</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-use-timechart-with-Eval-command/m-p/489790#M136807</link>
      <description>&lt;P&gt;The problem lies with the &lt;CODE&gt;stats&lt;/CODE&gt; and &lt;CODE&gt;fields&lt;/CODE&gt; commands.  They stripped out the &lt;CODE&gt;_time&lt;/CODE&gt; field required by &lt;CODE&gt;timechart&lt;/CODE&gt;.  Use &lt;CODE&gt;streamstats&lt;/CODE&gt; in place of &lt;CODE&gt;stats&lt;/CODE&gt; or find a way to include _time in &lt;CODE&gt;stats&lt;/CODE&gt;.  Change &lt;CODE&gt;fields sum1&lt;/CODE&gt; to &lt;CODE&gt;fields _time sum1&lt;/CODE&gt;.&lt;/P&gt;</description>
      <pubDate>Wed, 25 Sep 2019 12:13:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-use-timechart-with-Eval-command/m-p/489790#M136807</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2019-09-25T12:13:26Z</dc:date>
    </item>
  </channel>
</rss>

