<?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 get hourly stats into a graph? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-get-hourly-stats-into-a-graph/m-p/447726#M126895</link>
    <description>&lt;P&gt;@gauravepi,&lt;/P&gt;

&lt;P&gt;Try&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;eventtype="abc" |fields d_in,d_to,d_up,err,p_to,hour|stats sum(*) as * by hour
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Thu, 19 Jul 2018 13:43:06 GMT</pubDate>
    <dc:creator>renjith_nair</dc:creator>
    <dc:date>2018-07-19T13:43:06Z</dc:date>
    <item>
      <title>How to get hourly stats into a graph?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-get-hourly-stats-into-a-graph/m-p/447721#M126890</link>
      <description>&lt;P&gt;I have some fields in my Splunk search now i want to use them to create a search query so that i can pull those information into a graph. On splunk i want to show hourly(hour field) how many  d_in , d_to d_up ,err and p_to are there . Below are the field which i have &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;d_in =  4027 
d_to =  336210 
d_up =  332183 
hour =  12 
err =   0 
p_to =  264749    

d_in =  427 
d_to =  3210 
d_up =  2183 
hour =  13 
err =   2 
p_to =  249
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I am new in Splunk please help me in this . I am using below query to in the search to get above fields :&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;eventtype="abc" 
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 29 Sep 2020 20:31:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-get-hourly-stats-into-a-graph/m-p/447721#M126890</guid>
      <dc:creator>gauravepi</dc:creator>
      <dc:date>2020-09-29T20:31:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to get hourly stats into a graph?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-get-hourly-stats-into-a-graph/m-p/447722#M126891</link>
      <description>&lt;P&gt;Will there be one event for each hour value, or is it possible to have more than one event at the same hour?&lt;/P&gt;</description>
      <pubDate>Wed, 18 Jul 2018 18:37:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-get-hourly-stats-into-a-graph/m-p/447722#M126891</guid>
      <dc:creator>kmorris_splunk</dc:creator>
      <dc:date>2018-07-18T18:37:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to get hourly stats into a graph?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-get-hourly-stats-into-a-graph/m-p/447723#M126892</link>
      <description>&lt;P&gt;Whats the expected output?&lt;/P&gt;</description>
      <pubDate>Wed, 18 Jul 2018 18:45:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-get-hourly-stats-into-a-graph/m-p/447723#M126892</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2018-07-18T18:45:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to get hourly stats into a graph?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-get-hourly-stats-into-a-graph/m-p/447724#M126893</link>
      <description>&lt;P&gt;Yes there will be only one event for each hour &lt;/P&gt;</description>
      <pubDate>Wed, 18 Jul 2018 18:50:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-get-hourly-stats-into-a-graph/m-p/447724#M126893</guid>
      <dc:creator>gauravepi</dc:creator>
      <dc:date>2018-07-18T18:50:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to get hourly stats into a graph?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-get-hourly-stats-into-a-graph/m-p/447725#M126894</link>
      <description>&lt;P&gt;For 13 hours : Total d_in 427 if there is data-set for hour 13 having d_in = 12&lt;BR /&gt;
 Then total d_in is 427+12 = 439&lt;BR /&gt;
So total d_in in 13th hour is 439 likewise for each field &lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 20:31:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-get-hourly-stats-into-a-graph/m-p/447725#M126894</guid>
      <dc:creator>gauravepi</dc:creator>
      <dc:date>2020-09-29T20:31:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to get hourly stats into a graph?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-get-hourly-stats-into-a-graph/m-p/447726#M126895</link>
      <description>&lt;P&gt;@gauravepi,&lt;/P&gt;

&lt;P&gt;Try&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;eventtype="abc" |fields d_in,d_to,d_up,err,p_to,hour|stats sum(*) as * by hour
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 19 Jul 2018 13:43:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-get-hourly-stats-into-a-graph/m-p/447726#M126895</guid>
      <dc:creator>renjith_nair</dc:creator>
      <dc:date>2018-07-19T13:43:06Z</dc:date>
    </item>
  </channel>
</rss>

