<?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: Active computers reporting to splunk last 30 days in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Active-computers-reporting-to-splunk-last-30-days/m-p/315075#M94333</link>
    <description>&lt;P&gt;index=my_index* | metadata type=hosts&lt;/P&gt;

&lt;P&gt;Error in 'metadata' command: This command must be the first command of a search.&lt;BR /&gt;
The search job has failed due to an error. You may be able view the job in the Job Inspector.&lt;/P&gt;</description>
    <pubDate>Fri, 06 Apr 2018 14:14:08 GMT</pubDate>
    <dc:creator>cyler</dc:creator>
    <dc:date>2018-04-06T14:14:08Z</dc:date>
    <item>
      <title>Active computers reporting to splunk last 30 days</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Active-computers-reporting-to-splunk-last-30-days/m-p/315070#M94328</link>
      <description>&lt;P&gt;I would like to know how to search for all computers that are reporting to Splunk in the last 30 day.&lt;/P&gt;

&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Thu, 05 Apr 2018 18:34:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Active-computers-reporting-to-splunk-last-30-days/m-p/315070#M94328</guid>
      <dc:creator>cyler</dc:creator>
      <dc:date>2018-04-05T18:34:44Z</dc:date>
    </item>
    <item>
      <title>Re: Active computers reporting to splunk last 30 days</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Active-computers-reporting-to-splunk-last-30-days/m-p/315071#M94329</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;You should ru search like this one (set time-range picker for last 30 days):&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=* | stats count by host
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This search will show you all hosts and number of events from each other.&lt;/P&gt;</description>
      <pubDate>Thu, 05 Apr 2018 18:40:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Active-computers-reporting-to-splunk-last-30-days/m-p/315071#M94329</guid>
      <dc:creator>skulk</dc:creator>
      <dc:date>2018-04-05T18:40:38Z</dc:date>
    </item>
    <item>
      <title>Re: Active computers reporting to splunk last 30 days</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Active-computers-reporting-to-splunk-last-30-days/m-p/315072#M94330</link>
      <description>&lt;P&gt;many ways to go about it ...&lt;BR /&gt;
try this &lt;CODE&gt;|metadata type=hosts&lt;/CODE&gt; &lt;BR /&gt;
see the output of the command and start exploring ...&lt;BR /&gt;
heres a link to the doc that has more elaborated examples:&lt;BR /&gt;
&lt;A href="http://docs.splunk.com/Documentation/Splunk/7.0.3/SearchReference/Metadata"&gt;http://docs.splunk.com/Documentation/Splunk/7.0.3/SearchReference/Metadata&lt;/A&gt;&lt;BR /&gt;
hope it helps&lt;/P&gt;</description>
      <pubDate>Thu, 05 Apr 2018 18:40:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Active-computers-reporting-to-splunk-last-30-days/m-p/315072#M94330</guid>
      <dc:creator>adonio</dc:creator>
      <dc:date>2018-04-05T18:40:47Z</dc:date>
    </item>
    <item>
      <title>Re: Active computers reporting to splunk last 30 days</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Active-computers-reporting-to-splunk-last-30-days/m-p/315073#M94331</link>
      <description>&lt;P&gt;You could try these:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| tstats latest(_time) AS latest where index=* by host
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;or&lt;BR /&gt;
    | metadata type=hosts&lt;BR /&gt;
Either should work.&lt;/P&gt;</description>
      <pubDate>Thu, 05 Apr 2018 18:41:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Active-computers-reporting-to-splunk-last-30-days/m-p/315073#M94331</guid>
      <dc:creator>elliotproebstel</dc:creator>
      <dc:date>2018-04-05T18:41:45Z</dc:date>
    </item>
    <item>
      <title>Re: Active computers reporting to splunk last 30 days</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Active-computers-reporting-to-splunk-last-30-days/m-p/315074#M94332</link>
      <description>&lt;P&gt;Forgive my being naive  - Here is what result I get back&lt;/P&gt;

&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/4704i54B29CA005C5FA42/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 06 Apr 2018 14:12:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Active-computers-reporting-to-splunk-last-30-days/m-p/315074#M94332</guid>
      <dc:creator>cyler</dc:creator>
      <dc:date>2018-04-06T14:12:33Z</dc:date>
    </item>
    <item>
      <title>Re: Active computers reporting to splunk last 30 days</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Active-computers-reporting-to-splunk-last-30-days/m-p/315075#M94333</link>
      <description>&lt;P&gt;index=my_index* | metadata type=hosts&lt;/P&gt;

&lt;P&gt;Error in 'metadata' command: This command must be the first command of a search.&lt;BR /&gt;
The search job has failed due to an error. You may be able view the job in the Job Inspector.&lt;/P&gt;</description>
      <pubDate>Fri, 06 Apr 2018 14:14:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Active-computers-reporting-to-splunk-last-30-days/m-p/315075#M94333</guid>
      <dc:creator>cyler</dc:creator>
      <dc:date>2018-04-06T14:14:08Z</dc:date>
    </item>
    <item>
      <title>Re: Active computers reporting to splunk last 30 days</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Active-computers-reporting-to-splunk-last-30-days/m-p/315076#M94334</link>
      <description>&lt;P&gt;please read the doc&lt;BR /&gt;
&lt;CODE&gt;metadata&lt;/CODE&gt; is a generating command has to be first &lt;BR /&gt;
no need for index = something before&lt;BR /&gt;
place this in your searchbae literally &lt;CODE&gt;|metadata type=hosts&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 06 Apr 2018 14:22:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Active-computers-reporting-to-splunk-last-30-days/m-p/315076#M94334</guid>
      <dc:creator>adonio</dc:creator>
      <dc:date>2018-04-06T14:22:58Z</dc:date>
    </item>
    <item>
      <title>Re: Active computers reporting to splunk last 30 days</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Active-computers-reporting-to-splunk-last-30-days/m-p/315077#M94335</link>
      <description>&lt;P&gt;get rid of everything before the first pipe&lt;/P&gt;</description>
      <pubDate>Fri, 06 Apr 2018 15:02:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Active-computers-reporting-to-splunk-last-30-days/m-p/315077#M94335</guid>
      <dc:creator>DalJeanis</dc:creator>
      <dc:date>2018-04-06T15:02:27Z</dc:date>
    </item>
  </channel>
</rss>

