<?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 working with metadata output. in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/working-with-metadata-output/m-p/13636#M227</link>
    <description>&lt;P&gt;I have an environment where there are about 2000 hosts. All the hosts are tagged according to the geographic locations and the sourcetype(AD,DNS,DHCP). User are restricted to logs from hosts which belong to their country using roles. I would like each user to see on the default dashboard the hosts which they have access to the last reported date and the tag.&lt;/P&gt;

&lt;P&gt;I use the following query "| metadata type=hosts   | fields + host, firstTime, lastTime,totalCount   | convert ctime(firstTime)   | convert ctime(lastTime)  | sort - host | TAGS "&lt;/P&gt;

&lt;P&gt;However it displays all the hosts. How can I facilitate the users to see only the hosts that belong to them on the dashboard?&lt;/P&gt;</description>
    <pubDate>Tue, 18 May 2010 00:47:27 GMT</pubDate>
    <dc:creator>sanju005ind</dc:creator>
    <dc:date>2010-05-18T00:47:27Z</dc:date>
    <item>
      <title>working with metadata output.</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/working-with-metadata-output/m-p/13636#M227</link>
      <description>&lt;P&gt;I have an environment where there are about 2000 hosts. All the hosts are tagged according to the geographic locations and the sourcetype(AD,DNS,DHCP). User are restricted to logs from hosts which belong to their country using roles. I would like each user to see on the default dashboard the hosts which they have access to the last reported date and the tag.&lt;/P&gt;

&lt;P&gt;I use the following query "| metadata type=hosts   | fields + host, firstTime, lastTime,totalCount   | convert ctime(firstTime)   | convert ctime(lastTime)  | sort - host | TAGS "&lt;/P&gt;

&lt;P&gt;However it displays all the hosts. How can I facilitate the users to see only the hosts that belong to them on the dashboard?&lt;/P&gt;</description>
      <pubDate>Tue, 18 May 2010 00:47:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/working-with-metadata-output/m-p/13636#M227</guid>
      <dc:creator>sanju005ind</dc:creator>
      <dc:date>2010-05-18T00:47:27Z</dc:date>
    </item>
    <item>
      <title>Re: working with metadata output.</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/working-with-metadata-output/m-p/13637#M228</link>
      <description>&lt;P&gt;sounds like this could be a bug.   what is the restrict filter you are using?&lt;/P&gt;</description>
      <pubDate>Tue, 18 May 2010 07:19:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/working-with-metadata-output/m-p/13637#M228</guid>
      <dc:creator>Simeon</dc:creator>
      <dc:date>2010-05-18T07:19:32Z</dc:date>
    </item>
    <item>
      <title>Re: working with metadata output.</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/working-with-metadata-output/m-p/13638#M229</link>
      <description>&lt;P&gt;The only way I have been able to filter the events while using | metadata type=host is to add a search host=srv* or use tags (tag=your_tag) to only search on that group of servers.  &lt;/P&gt;

&lt;P&gt;My next question would be if you are wanting to only create 1 dashboard for each team to use?  If so this solution will not work and I am not sure if the is way to read the roles and insert that while using | metadata.  &lt;/P&gt;

&lt;P&gt;You could always clone the dashboard for each team and put in the filters associated with that team.  Then give them the permissions to see that dashboard and not the other teams dashboard.  &lt;/P&gt;

&lt;P&gt;Travis. &lt;/P&gt;</description>
      <pubDate>Tue, 18 May 2010 19:44:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/working-with-metadata-output/m-p/13638#M229</guid>
      <dc:creator>thall79</dc:creator>
      <dc:date>2010-05-18T19:44:23Z</dc:date>
    </item>
    <item>
      <title>Re: working with metadata output.</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/working-with-metadata-output/m-p/13639#M230</link>
      <description>&lt;P&gt;i don't see you using the &lt;CODE&gt;|tags&lt;/CODE&gt; search command and then filtering based on that. The &lt;CODE&gt;|metadata&lt;/CODE&gt; command won't list tags (as you can see if you just run it standalone), so you need to first apply the &lt;CODE&gt;|tags&lt;/CODE&gt; command, then filter on, e.g., &lt;CODE&gt;|search tags=blah*&lt;/CODE&gt;.&lt;/P&gt;</description>
      <pubDate>Tue, 01 Jun 2010 21:02:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/working-with-metadata-output/m-p/13639#M230</guid>
      <dc:creator>gkanapathy</dc:creator>
      <dc:date>2010-06-01T21:02:33Z</dc:date>
    </item>
    <item>
      <title>Re: working with metadata output.</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/working-with-metadata-output/m-p/13640#M231</link>
      <description>&lt;P&gt;Yes after looking at the post I did leave out important information, good catch there. Here is what I am using when filtering by tags: | metadata type=hosts | tags host | search NOT tag::host=remove | search host=*&lt;/P&gt;</description>
      <pubDate>Wed, 02 Jun 2010 03:25:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/working-with-metadata-output/m-p/13640#M231</guid>
      <dc:creator>thall79</dc:creator>
      <dc:date>2010-06-02T03:25:56Z</dc:date>
    </item>
  </channel>
</rss>

