<?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 do you count Unique IDs, in both indexes, based on a specific event? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-count-Unique-IDs-in-both-indexes-based-on-a-specific/m-p/429601#M122870</link>
    <description>&lt;P&gt;(index=capi_event event_name="AccountFinalized" OR event_name="AccountActivated" account_id )  AND ( index=piq_event event_name="DEPOSIT" account_id state!="WAITING_INPUT") &lt;BR /&gt;
| stats values(account_id)&lt;/P&gt;</description>
    <pubDate>Tue, 29 Sep 2020 22:27:46 GMT</pubDate>
    <dc:creator>valiquet</dc:creator>
    <dc:date>2020-09-29T22:27:46Z</dc:date>
    <item>
      <title>How do you count Unique IDs, in both indexes, based on a specific event?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-count-Unique-IDs-in-both-indexes-based-on-a-specific/m-p/429599#M122868</link>
      <description>&lt;P&gt;I am trying to get Unique IDs (appears in both indexes) but I only want to count if there is event_name="AccountFinalized OR event_name="AccountActivated" in index 1 AND event_name="Deposit" in index 2.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;(index=capi_event event_name="AccountFinalized" OR event_name="AccountActivated" account_id ) OR (index=piq_event ) | join type=inner  "account_id" [search index=piq_event event_name="DEPOSIT" account_id state!="WAITING_INPUT"] | stats dc(account_id) AS uniqueID dc(status) AS uniqueStatus count(state) AS State by event_name | 
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 29 Sep 2020 22:20:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-you-count-Unique-IDs-in-both-indexes-based-on-a-specific/m-p/429599#M122868</guid>
      <dc:creator>diegofavoretto</dc:creator>
      <dc:date>2020-09-29T22:20:51Z</dc:date>
    </item>
    <item>
      <title>Re: How do you count Unique IDs, in both indexes, based on a specific event?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-count-Unique-IDs-in-both-indexes-based-on-a-specific/m-p/429600#M122869</link>
      <description>&lt;P&gt;Hello @diegofavoretto,&lt;/P&gt;

&lt;P&gt;You can use a subsearch to filter for IDs in the second index:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=capi_event event_name="AccountFinalized" OR event_name="AccountActivated" [search index=piq_event event_name="DEPOSIT" | table account_id]
| stats ...
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 12 Dec 2018 18:14:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-you-count-Unique-IDs-in-both-indexes-based-on-a-specific/m-p/429600#M122869</guid>
      <dc:creator>whrg</dc:creator>
      <dc:date>2018-12-12T18:14:20Z</dc:date>
    </item>
    <item>
      <title>Re: How do you count Unique IDs, in both indexes, based on a specific event?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-count-Unique-IDs-in-both-indexes-based-on-a-specific/m-p/429601#M122870</link>
      <description>&lt;P&gt;(index=capi_event event_name="AccountFinalized" OR event_name="AccountActivated" account_id )  AND ( index=piq_event event_name="DEPOSIT" account_id state!="WAITING_INPUT") &lt;BR /&gt;
| stats values(account_id)&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 22:27:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-you-count-Unique-IDs-in-both-indexes-based-on-a-specific/m-p/429601#M122870</guid>
      <dc:creator>valiquet</dc:creator>
      <dc:date>2020-09-29T22:27:46Z</dc:date>
    </item>
  </channel>
</rss>

