<?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 how do i find where each hosts are indexing data in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/how-do-i-find-where-each-hosts-are-indexing-data/m-p/299642#M56680</link>
    <description>&lt;P&gt;the reason for this is because someone made a mix-up on the UF and then some hosts are indexing to the wrong index. Is there an easy way to find the Index to which each hosts are indexing different data?&lt;/P&gt;</description>
    <pubDate>Sat, 31 Mar 2018 12:05:46 GMT</pubDate>
    <dc:creator>ranjitbrhm1</dc:creator>
    <dc:date>2018-03-31T12:05:46Z</dc:date>
    <item>
      <title>how do i find where each hosts are indexing data</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/how-do-i-find-where-each-hosts-are-indexing-data/m-p/299642#M56680</link>
      <description>&lt;P&gt;the reason for this is because someone made a mix-up on the UF and then some hosts are indexing to the wrong index. Is there an easy way to find the Index to which each hosts are indexing different data?&lt;/P&gt;</description>
      <pubDate>Sat, 31 Mar 2018 12:05:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/how-do-i-find-where-each-hosts-are-indexing-data/m-p/299642#M56680</guid>
      <dc:creator>ranjitbrhm1</dc:creator>
      <dc:date>2018-03-31T12:05:46Z</dc:date>
    </item>
    <item>
      <title>Re: how do i find where each hosts are indexing data</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/how-do-i-find-where-each-hosts-are-indexing-data/m-p/299643#M56681</link>
      <description>&lt;P&gt;You can use either &lt;CODE&gt;tstats&lt;/CODE&gt; or &lt;CODE&gt;metadata&lt;/CODE&gt; command on your index to get stats by host&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| tstats count where index="&amp;lt;yourIndexName&amp;gt;" by host
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Or &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| metadata type=hosts where index="&amp;lt;yourIndexName&amp;gt;"
| fieldformat firstTime=strftime(firstTime,"%Y/%m/%d %H:%M:%S")
| fieldformat lastTime=strftime(lastTime,"%Y/%m/%d %H:%M:%S")
| table host firstTime lastTime totalCount
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 31 Mar 2018 16:51:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/how-do-i-find-where-each-hosts-are-indexing-data/m-p/299643#M56681</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2018-03-31T16:51:58Z</dc:date>
    </item>
    <item>
      <title>Re: how do i find where each hosts are indexing data</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/how-do-i-find-where-each-hosts-are-indexing-data/m-p/299644#M56682</link>
      <description>&lt;P&gt;Hi ranjitbrhm1,&lt;BR /&gt;
try something like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| metasearch index=*
| stats values(indexes) AS indexes count by host
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;In this way you have all the indexes for each host.&lt;/P&gt;

&lt;P&gt;To correct errors, it could be useful to have also sources, so you can intervene:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| metasearch index=*
| stats values(sources) AS sources count BY host index
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;To have all the sources when some host logs are archived.&lt;/P&gt;

&lt;P&gt;Have an Happy Easter.&lt;BR /&gt;
Bye.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
      <pubDate>Sun, 01 Apr 2018 08:46:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/how-do-i-find-where-each-hosts-are-indexing-data/m-p/299644#M56682</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2018-04-01T08:46:16Z</dc:date>
    </item>
  </channel>
</rss>

