<?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 list common uid on two hosts in Deployment Architecture</title>
    <link>https://community.splunk.com/t5/Deployment-Architecture/list-common-uid-on-two-hosts/m-p/255462#M21491</link>
    <description>&lt;P&gt;I am trying to list out common uid on two different hosts.&lt;BR /&gt;
I am using this but this give a visual of all uids including the common ones.&lt;BR /&gt;
sourcetype=access $host1$ OR $host2$  error=2*| chart max(O) over host by uid &lt;/P&gt;</description>
    <pubDate>Fri, 27 Jan 2017 03:33:10 GMT</pubDate>
    <dc:creator>nikkuu</dc:creator>
    <dc:date>2017-01-27T03:33:10Z</dc:date>
    <item>
      <title>list common uid on two hosts</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/list-common-uid-on-two-hosts/m-p/255462#M21491</link>
      <description>&lt;P&gt;I am trying to list out common uid on two different hosts.&lt;BR /&gt;
I am using this but this give a visual of all uids including the common ones.&lt;BR /&gt;
sourcetype=access $host1$ OR $host2$  error=2*| chart max(O) over host by uid &lt;/P&gt;</description>
      <pubDate>Fri, 27 Jan 2017 03:33:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/list-common-uid-on-two-hosts/m-p/255462#M21491</guid>
      <dc:creator>nikkuu</dc:creator>
      <dc:date>2017-01-27T03:33:10Z</dc:date>
    </item>
    <item>
      <title>Re: list common uid on two hosts</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/list-common-uid-on-two-hosts/m-p/255463#M21492</link>
      <description>&lt;P&gt;Eventstats should work, though not terribly efficient...&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;sourcetype=access $host1$ OR $host2$ error=2*
| eventstats dc(host) AS hosts by uid
| search hosts&amp;gt;1
| chart max(O) over host by uid 
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 27 Jan 2017 18:27:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/list-common-uid-on-two-hosts/m-p/255463#M21492</guid>
      <dc:creator>snoobzilla</dc:creator>
      <dc:date>2017-01-27T18:27:37Z</dc:date>
    </item>
    <item>
      <title>Re: list common uid on two hosts</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/list-common-uid-on-two-hosts/m-p/255464#M21493</link>
      <description>&lt;P&gt;It will depend a lot on what's your final output should be. If you just want to know list of uid which are on both hosts, you could do like this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;sourcetype=access $host1$ OR $host2$ error=2* | stats dc(host) as host_count by uid | where host_count=2
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;If you want list hosts as well,&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;sourcetype=access $host1$ OR $host2$ error=2*| chart dc(uid) over host by uid | addtotals | where Total=2
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 27 Jan 2017 20:06:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/list-common-uid-on-two-hosts/m-p/255464#M21493</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2017-01-27T20:06:08Z</dc:date>
    </item>
  </channel>
</rss>

