<?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 a progressive chart of hosts added over time using the metadata command firstTime field in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-get-a-progressive-chart-of-hosts-added-over-time-using/m-p/167353#M47646</link>
    <description>&lt;P&gt;This is a very cool chart.  thanks so much @diogofgm this was more than I was hoping for.  Every Splunk Admin should have this chart to show growth and assimilation.  Resistance is futile &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 12 Aug 2015 15:43:55 GMT</pubDate>
    <dc:creator>hartfoml</dc:creator>
    <dc:date>2015-08-12T15:43:55Z</dc:date>
    <item>
      <title>How to get a progressive chart of hosts added over time using the metadata command firstTime field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-get-a-progressive-chart-of-hosts-added-over-time-using/m-p/167350#M47643</link>
      <description>&lt;P&gt;I want to draw a chart of hosts added over time so that I can see at the beginning zero hosts and at the end 3,685 hosts.  I would like to do this using the &lt;CODE&gt;firstTime&lt;/CODE&gt; field from &lt;CODE&gt;| metadata type=hosts&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;I have this search &lt;CODE&gt;| metadata type=hosts | eval Date=strftime(firstTime,"%Y-%m-%d") | fields host Date&lt;/CODE&gt; but it is just a search of number of hosts added each day and not progressive over time.&lt;/P&gt;

&lt;P&gt;I have this search &lt;CODE&gt;index=_internal hostname="*" component="Metrics" | timechart span=d dc(hostname)&lt;/CODE&gt; from Answers, but it is using the metrics logs and takes too long over a large number of days.&lt;/P&gt;

&lt;P&gt;I would like a &lt;CODE&gt;count to date&lt;/CODE&gt; from the beginning for each day of my search.&lt;BR /&gt;&lt;BR /&gt;
Like &lt;BR /&gt;
(day 1 count = 5) &lt;BR /&gt;
(day 2 count = 5 + day1) &lt;BR /&gt;
(day 3 count = 5 + day2) &lt;BR /&gt;
and on an on.&lt;/P&gt;

&lt;P&gt;Thanks for any help.&lt;/P&gt;</description>
      <pubDate>Wed, 12 Aug 2015 15:12:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-get-a-progressive-chart-of-hosts-added-over-time-using/m-p/167350#M47643</guid>
      <dc:creator>hartfoml</dc:creator>
      <dc:date>2015-08-12T15:12:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to get a progressive chart of hosts added over time using the metadata command firstTime field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-get-a-progressive-chart-of-hosts-added-over-time-using/m-p/167351#M47644</link>
      <description>&lt;P&gt;Use streamstats:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| metadata type=hosts | eval date=strftime(firstTime,"%Y-%m-%d") | fields host date | chart count(host) AS new_hosts over date | streamstats sum(new_hosts) AS total_hosts
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 12 Aug 2015 15:27:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-get-a-progressive-chart-of-hosts-added-over-time-using/m-p/167351#M47644</guid>
      <dc:creator>diogofgm</dc:creator>
      <dc:date>2015-08-12T15:27:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to get a progressive chart of hosts added over time using the metadata command firstTime field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-get-a-progressive-chart-of-hosts-added-over-time-using/m-p/167352#M47645</link>
      <description>&lt;P&gt;This should do the trick.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| metadata type=hosts index=*| eval _time=firstTime | fields _time host | timechart span=1d dc(host) as Hosts | makecontinuous | eval Hosts=coalesce(Hosts,0) | accum Hosts
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 12 Aug 2015 15:31:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-get-a-progressive-chart-of-hosts-added-over-time-using/m-p/167352#M47645</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2015-08-12T15:31:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to get a progressive chart of hosts added over time using the metadata command firstTime field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-get-a-progressive-chart-of-hosts-added-over-time-using/m-p/167353#M47646</link>
      <description>&lt;P&gt;This is a very cool chart.  thanks so much @diogofgm this was more than I was hoping for.  Every Splunk Admin should have this chart to show growth and assimilation.  Resistance is futile &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Aug 2015 15:43:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-get-a-progressive-chart-of-hosts-added-over-time-using/m-p/167353#M47646</guid>
      <dc:creator>hartfoml</dc:creator>
      <dc:date>2015-08-12T15:43:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to get a progressive chart of hosts added over time using the metadata command firstTime field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-get-a-progressive-chart-of-hosts-added-over-time-using/m-p/167354#M47647</link>
      <description>&lt;P&gt;This did a great job and I am still struggling to understand the code but it had a very different result than the search above.  Thanks so much for your contribution it is a great learning code for me to try on something else.  Thanks Again for the help.&lt;/P&gt;</description>
      <pubDate>Wed, 12 Aug 2015 15:45:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-get-a-progressive-chart-of-hosts-added-over-time-using/m-p/167354#M47647</guid>
      <dc:creator>hartfoml</dc:creator>
      <dc:date>2015-08-12T15:45:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to get a progressive chart of hosts added over time using the metadata command firstTime field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-get-a-progressive-chart-of-hosts-added-over-time-using/m-p/167355#M47648</link>
      <description>&lt;P&gt;Hi somesoni2,&lt;/P&gt;

&lt;P&gt;Using your query is it possible to get the hosts name as well?&lt;/P&gt;

&lt;P&gt;We want to know which hosts were added in the last 7 days , a report to be generated weekly once which gives us the list of hosts which were added in the last 7 days.&lt;/P&gt;

&lt;P&gt;Thanks in Advance&lt;/P&gt;</description>
      <pubDate>Tue, 20 Dec 2016 06:45:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-get-a-progressive-chart-of-hosts-added-over-time-using/m-p/167355#M47648</guid>
      <dc:creator>kiran_mh</dc:creator>
      <dc:date>2016-12-20T06:45:40Z</dc:date>
    </item>
  </channel>
</rss>

