<?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: Dashboard timechart query problem in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/Dashboard-timechart-query-problem/m-p/359075#M23372</link>
    <description>&lt;P&gt;Hi &lt;/P&gt;

&lt;P&gt;Can you please try this one?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; "exception1" OR "exception2" OR "exception3" OR "call"
         | eval calls = if(like(message, "%call%"), 1, 0)
         | eval errors1 = if(like(message, "%exception1%"), 1, 0)
         | eval errors2 = if(like(message, "%exception2%"), 1, 0)
         | eval errors3 = if(like(message, "%exception3%"), 1, 0)
         | timechart sum(errors1) AS errors1 sum(errors2) AS errors2 sum(errors3) AS errors3 sum(calls) AS calls 
         | eval allErrorsPerMile=if(calls&amp;gt;0, ((errors1 + errors2 + errors3)*1000)/calls, calls = 1)
| fields _time  allErrorsPerMile
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I have just added "&lt;CODE&gt;| fields _time  allErrorsPerMile&lt;/CODE&gt;".&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
    <pubDate>Fri, 10 Nov 2017 12:29:12 GMT</pubDate>
    <dc:creator>kamlesh_vaghela</dc:creator>
    <dc:date>2017-11-10T12:29:12Z</dc:date>
    <item>
      <title>Dashboard timechart query problem</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Dashboard-timechart-query-problem/m-p/359073#M23370</link>
      <description>&lt;P&gt;How do I present ONLY "allErrorsPerMile" on a timechart? Now it looks like on the attachment&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; "exception1" OR "exception2" OR "exception3" OR "call"
        | eval calls = if(like(message, "%call%"), 1, 0)
        | eval errors1 = if(like(message, "%exception1%"), 1, 0)
        | eval errors2 = if(like(message, "%exception2%"), 1, 0)
        | eval errors3 = if(like(message, "%exception3%"), 1, 0)
        | timechart sum(errors1) AS errors1 sum(errors2) AS errors2 sum(errors3) AS errors3 sum(calls) AS calls 
        | eval allErrorsPerMile=if(calls&amp;gt;0, ((errors1 + errors2 + errors3)*1000)/calls, calls = 1)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/3831i67913277CAC3B7E5/image-size/large?v=v2&amp;amp;px=999" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Nov 2017 11:09:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Dashboard-timechart-query-problem/m-p/359073#M23370</guid>
      <dc:creator>rbochen</dc:creator>
      <dc:date>2017-11-10T11:09:14Z</dc:date>
    </item>
    <item>
      <title>Re: Dashboard timechart query problem</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Dashboard-timechart-query-problem/m-p/359074#M23371</link>
      <description>&lt;P&gt;did it with  charting.data.fieldHideList &lt;/P&gt;</description>
      <pubDate>Fri, 10 Nov 2017 11:33:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Dashboard-timechart-query-problem/m-p/359074#M23371</guid>
      <dc:creator>rbochen</dc:creator>
      <dc:date>2017-11-10T11:33:26Z</dc:date>
    </item>
    <item>
      <title>Re: Dashboard timechart query problem</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Dashboard-timechart-query-problem/m-p/359075#M23372</link>
      <description>&lt;P&gt;Hi &lt;/P&gt;

&lt;P&gt;Can you please try this one?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; "exception1" OR "exception2" OR "exception3" OR "call"
         | eval calls = if(like(message, "%call%"), 1, 0)
         | eval errors1 = if(like(message, "%exception1%"), 1, 0)
         | eval errors2 = if(like(message, "%exception2%"), 1, 0)
         | eval errors3 = if(like(message, "%exception3%"), 1, 0)
         | timechart sum(errors1) AS errors1 sum(errors2) AS errors2 sum(errors3) AS errors3 sum(calls) AS calls 
         | eval allErrorsPerMile=if(calls&amp;gt;0, ((errors1 + errors2 + errors3)*1000)/calls, calls = 1)
| fields _time  allErrorsPerMile
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I have just added "&lt;CODE&gt;| fields _time  allErrorsPerMile&lt;/CODE&gt;".&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Fri, 10 Nov 2017 12:29:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Dashboard-timechart-query-problem/m-p/359075#M23372</guid>
      <dc:creator>kamlesh_vaghela</dc:creator>
      <dc:date>2017-11-10T12:29:12Z</dc:date>
    </item>
  </channel>
</rss>

