<?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: histogram creation query in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/histogram-creation-query/m-p/461408#M45484</link>
    <description>&lt;P&gt;something like this?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;    | bin span=1mon _time |  stats count(type) by _time,Value,linkSpeed
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Mon, 26 Aug 2019 09:44:21 GMT</pubDate>
    <dc:creator>Sukisen1981</dc:creator>
    <dc:date>2019-08-26T09:44:21Z</dc:date>
    <item>
      <title>histogram creation query</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/histogram-creation-query/m-p/461407#M45483</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I have a query which currently shows the port usage. Now i want to show the same for each month. i.e. for a span of 1 month.&lt;BR /&gt;
Somehow my code is not working can you please help. &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=bla bla query
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 26 Aug 2019 09:04:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/histogram-creation-query/m-p/461407#M45483</guid>
      <dc:creator>surekhasplunk</dc:creator>
      <dc:date>2019-08-26T09:04:03Z</dc:date>
    </item>
    <item>
      <title>Re: histogram creation query</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/histogram-creation-query/m-p/461408#M45484</link>
      <description>&lt;P&gt;something like this?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;    | bin span=1mon _time |  stats count(type) by _time,Value,linkSpeed
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 26 Aug 2019 09:44:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/histogram-creation-query/m-p/461408#M45484</guid>
      <dc:creator>Sukisen1981</dc:creator>
      <dc:date>2019-08-26T09:44:21Z</dc:date>
    </item>
    <item>
      <title>Re: histogram creation query</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/histogram-creation-query/m-p/461409#M45485</link>
      <description>&lt;P&gt;Hi @Sukisen1981 &lt;/P&gt;

&lt;P&gt;Thanks for the reply my time field is called lastUpdated and the value looks like this : 2019-04-16T04:28:58+02:00&lt;/P&gt;

&lt;P&gt;So when i try to put span=1mon it atually gives all records rather than spanning it for 1 month. &lt;BR /&gt;
Do  i need to edit the lastUpdated field to get only the date rather than the full date and time ?&lt;/P&gt;

&lt;P&gt;Please help&lt;/P&gt;</description>
      <pubDate>Mon, 26 Aug 2019 12:52:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/histogram-creation-query/m-p/461409#M45485</guid>
      <dc:creator>surekhasplunk</dc:creator>
      <dc:date>2019-08-26T12:52:18Z</dc:date>
    </item>
    <item>
      <title>Re: histogram creation query</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/histogram-creation-query/m-p/461410#M45486</link>
      <description>&lt;P&gt;hi @surekhasplunk &lt;BR /&gt;
Yes , remember I am applying the bin command on _time , but you have a custom time field, so&lt;BR /&gt;
        | eval lastUpdated=strptime(lastUpdated,"%Y-%m-%d") |eval _time=lastUpdated|bin span=1mon _time |rest of the stuff....&lt;/P&gt;</description>
      <pubDate>Mon, 26 Aug 2019 13:06:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/histogram-creation-query/m-p/461410#M45486</guid>
      <dc:creator>Sukisen1981</dc:creator>
      <dc:date>2019-08-26T13:06:43Z</dc:date>
    </item>
  </channel>
</rss>

