<?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: Attempting to show output result overtime (TimeChart) in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-show-output-result-overtime-TimeChart/m-p/587008#M48140</link>
    <description>&lt;LI-CODE lang="markup"&gt;index=nsm source="/nsm/zeek/logs/current/*http*"
| bin _time span=1h
| stats count(eval(method="GET")) as GET, count(eval(method="POST")) as POST by _time
| eval Ratio=round(GET/POST, 2)&lt;/LI-CODE&gt;</description>
    <pubDate>Tue, 01 Mar 2022 13:51:33 GMT</pubDate>
    <dc:creator>ITWhisperer</dc:creator>
    <dc:date>2022-03-01T13:51:33Z</dc:date>
    <item>
      <title>How to show output result overtime (TimeChart)?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-show-output-result-overtime-TimeChart/m-p/587001#M48139</link>
      <description>&lt;P&gt;Good Morning,&lt;BR /&gt;&lt;BR /&gt;I am attempting to use a TimeChart that will show me the ratio of my GET/POST HTTP requests within the span of 1 hour. However, the output in my TimeChart only displays the latest result, regardless of what time (I.E if the current ratio output is .75 as of 9:00pm, it will display as .75 for 8:00pm, even though it was .50 at 8:00pm). Here is current search query:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;index=nsm source="/nsm/zeek/logs/current/*http*"
| eventstats count(eval(method="GET")) as GET, count(eval(method="POST")) as POST
| eval Ratio=round(GET/POST, 2)
| timechart span=1h values(Ratio)&lt;/LI-CODE&gt;
&lt;P&gt;&lt;BR /&gt;I've attempted many different things, including Time Modifiers, but so far no luck. This is the closest to get it to where I want, but it will not accurately display the Ratio of the previous time. Is here anyway around this?&lt;/P&gt;</description>
      <pubDate>Tue, 01 Mar 2022 16:57:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-show-output-result-overtime-TimeChart/m-p/587001#M48139</guid>
      <dc:creator>SecDesh</dc:creator>
      <dc:date>2022-03-01T16:57:18Z</dc:date>
    </item>
    <item>
      <title>Re: Attempting to show output result overtime (TimeChart)</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-show-output-result-overtime-TimeChart/m-p/587008#M48140</link>
      <description>&lt;LI-CODE lang="markup"&gt;index=nsm source="/nsm/zeek/logs/current/*http*"
| bin _time span=1h
| stats count(eval(method="GET")) as GET, count(eval(method="POST")) as POST by _time
| eval Ratio=round(GET/POST, 2)&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 01 Mar 2022 13:51:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-show-output-result-overtime-TimeChart/m-p/587008#M48140</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2022-03-01T13:51:33Z</dc:date>
    </item>
    <item>
      <title>Re: Attempting to show output result overtime (TimeChart)</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-show-output-result-overtime-TimeChart/m-p/587009#M48141</link>
      <description>&lt;P&gt;You're calculating ratio before the hourly aggregation can take place hence the wrong result. Try something like this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=nsm source="/nsm/zeek/logs/current/*http*"
| timechart span=1h count(eval(method="GET")) as GET, count(eval(method="POST")) as POST
| eval Ratio=round(GET/POST, 2)
| table _time Ratio&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 01 Mar 2022 13:53:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-show-output-result-overtime-TimeChart/m-p/587009#M48141</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2022-03-01T13:53:57Z</dc:date>
    </item>
    <item>
      <title>Re: Attempting to show output result overtime (TimeChart)</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-show-output-result-overtime-TimeChart/m-p/587122#M48158</link>
      <description>&lt;P&gt;Exactly what I was looking for. As I was troubleshooting it initially, I tried doing a query like this:&lt;BR /&gt;&lt;BR /&gt;index=nsm source="/nsm/zeek/logs/current/*http*"&lt;BR /&gt;| timechart span=1h count(eval(method="GET")) as GET, count(eval(method="POST")) as POST&lt;BR /&gt;| eval Ratio=round(GET/POST, 2)&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;But it didn't dawn on me to use the table format. Leaving it as it was, only displayed the counts for the GET. Thank you for the explanation and the solution.&lt;BR /&gt;&lt;BR /&gt;Edit: In the event you have an additional solution to this, I inserted the code that worked in the Search Query into a panel of a Dashboard. I am trying to display my Ratio and its trend with the 'Single Value' visualization however the results always return the value '1' with no overall time/trend showing. Even though using other visualizations&amp;nbsp; such as line, bar, and stat graphs present the accurate information.&lt;BR /&gt;&lt;BR /&gt;If I remove the ... | table _time, Ratio, it'll display only the GET count but it would be accurate in the Single Value visualization and display the overall time. Do you know a fix for this by chance?&lt;BR /&gt;&lt;BR /&gt;Edit 2.0: Found the fix for this. I had to go into 'Format Visualization'&amp;nbsp; -&amp;gt; 'Number Format' and set the 'Precision' to '0.00'. Again, thanks for your help.&lt;/P&gt;</description>
      <pubDate>Wed, 02 Mar 2022 07:07:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-show-output-result-overtime-TimeChart/m-p/587122#M48158</guid>
      <dc:creator>SecDesh</dc:creator>
      <dc:date>2022-03-02T07:07:22Z</dc:date>
    </item>
    <item>
      <title>Re: Attempting to show output result overtime (TimeChart)</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-show-output-result-overtime-TimeChart/m-p/587123#M48159</link>
      <description>&lt;P&gt;Your solution was close however the results presented seem to be the output of the division of GET/POST but not the ratio of GET/POST.&lt;BR /&gt;&lt;BR /&gt;In other words, instead of displaying the ratio of GET/POST as .50, it displayed it as 1,381.&lt;/P&gt;</description>
      <pubDate>Wed, 02 Mar 2022 06:18:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-show-output-result-overtime-TimeChart/m-p/587123#M48159</guid>
      <dc:creator>SecDesh</dc:creator>
      <dc:date>2022-03-02T06:18:24Z</dc:date>
    </item>
  </channel>
</rss>

