<?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: Correlating values in different index in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Correlating-values-in-different-index/m-p/708535#M239602</link>
    <description>&lt;LI-CODE lang="markup"&gt;index IN (cart purchased) cart_id=* OR pur_id=*
| eval common_id=coalesce(cart_id, pur_id)
| eventstats dc(index) as common_count by common_id
| where index="cart"
| stats count as carts count(eval(common_count &amp;gt; 1)) as purchases
| eval pct=(purchases*100)/carts
| table carts purchases pct&lt;/LI-CODE&gt;</description>
    <pubDate>Sat, 11 Jan 2025 21:49:03 GMT</pubDate>
    <dc:creator>ITWhisperer</dc:creator>
    <dc:date>2025-01-11T21:49:03Z</dc:date>
    <item>
      <title>Correlating values in different index</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Correlating-values-in-different-index/m-p/708531#M239599</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have two indexes - "cart" and "purchased" . In "cart" index there is a field "cart_id" and in "purchased" there is a field "pur_id".&amp;nbsp; If&amp;nbsp; payment will be successfully for a cart then the card_id values will be stored as a pur_id in the "purchased" index.&lt;/P&gt;&lt;P&gt;cart&amp;nbsp;purchased&amp;nbsp;&lt;/P&gt;&lt;P&gt;cart_id 123 payment received&amp;nbsp; pur_id&amp;nbsp; &amp;nbsp;123&lt;/P&gt;&lt;P&gt;cart_id 456&amp;nbsp;&amp;nbsp; no payment&amp;nbsp; no record for 456&lt;/P&gt;&lt;P&gt;Now I want to display the percentage of cart for which payment is done.&lt;/P&gt;&lt;P&gt;I wonder if anyone can help here.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you so much&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 11 Jan 2025 19:04:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Correlating-values-in-different-index/m-p/708531#M239599</guid>
      <dc:creator>Souradip11</dc:creator>
      <dc:date>2025-01-11T19:04:41Z</dc:date>
    </item>
    <item>
      <title>Re: Correlating values in different index</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Correlating-values-in-different-index/m-p/708533#M239601</link>
      <description>&lt;P&gt;Perhaps this will help.&amp;nbsp; It counts the number of unique cart and purchase IDs then does the math to find the percentage of paid carts.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index IN (cart purchased) cart_id=* OR pur_id=*
| stats dc(cart_id) as carts, dc(pur_id) as purchases
| eval pct=(purchases*100)/carts
| table carts purchases pct&lt;/LI-CODE&gt;</description>
      <pubDate>Sat, 11 Jan 2025 19:35:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Correlating-values-in-different-index/m-p/708533#M239601</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2025-01-11T19:35:11Z</dc:date>
    </item>
    <item>
      <title>Re: Correlating values in different index</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Correlating-values-in-different-index/m-p/708535#M239602</link>
      <description>&lt;LI-CODE lang="markup"&gt;index IN (cart purchased) cart_id=* OR pur_id=*
| eval common_id=coalesce(cart_id, pur_id)
| eventstats dc(index) as common_count by common_id
| where index="cart"
| stats count as carts count(eval(common_count &amp;gt; 1)) as purchases
| eval pct=(purchases*100)/carts
| table carts purchases pct&lt;/LI-CODE&gt;</description>
      <pubDate>Sat, 11 Jan 2025 21:49:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Correlating-values-in-different-index/m-p/708535#M239602</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2025-01-11T21:49:03Z</dc:date>
    </item>
  </channel>
</rss>

