<?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: Combine Multiple Data Sources in Pie Chart Visualization in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-Combine-Multiple-Data-Sources-in-Pie-Chart-Visualization/m-p/604600#M210287</link>
    <description>&lt;P&gt;I used tran_id but unfortunately it brought up no results for the pie chart, it did bring up results in the search but only resolution results.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;(data=headers OR data=resolutions) resolution_name="ACM Chargeback Received - Fraud"
| eventstats values(data) AS datasources by tran_id
| where isnotnull(mvfind(datasources, "resolutions"))
| top payment_method&lt;/LI-CODE&gt;</description>
    <pubDate>Wed, 06 Jul 2022 14:57:07 GMT</pubDate>
    <dc:creator>devanoverstock</dc:creator>
    <dc:date>2022-07-06T14:57:07Z</dc:date>
    <item>
      <title>How to Combine Multiple Data Sources in Pie Chart Visualization?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-Combine-Multiple-Data-Sources-in-Pie-Chart-Visualization/m-p/604507#M210269</link>
      <description>&lt;P&gt;I have a data sources that shows if an order was resolved as fraudulent (data="resolutions")&amp;nbsp;&lt;/P&gt;
&lt;P&gt;and in a different data source (data="headers") i have payment_method (Visa, Mastercard, etc)&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I want to see a pie chart of only orders that have chargebacks on them by payment method.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;data=headers
| top payment_method&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This works for the pie chart of payment method. I tried:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;data=headers OR data=resolutions resolution_name="ACM Chargeback Received - Fraud" 
| top payment_method&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;and a few other variations, but I can't seem to get it to work.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Even if I can't do a pie chart and could figure out a table with&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Payment Method | Count of Resolution Name (chargeback) that would work&lt;/P&gt;</description>
      <pubDate>Thu, 07 Jul 2022 17:49:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-Combine-Multiple-Data-Sources-in-Pie-Chart-Visualization/m-p/604507#M210269</guid>
      <dc:creator>devanoverstock</dc:creator>
      <dc:date>2022-07-07T17:49:28Z</dc:date>
    </item>
    <item>
      <title>Re: Combine Multiple Data Sources in Pie Chart Visualization</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-Combine-Multiple-Data-Sources-in-Pie-Chart-Visualization/m-p/604509#M210271</link>
      <description>&lt;P&gt;Your examples are missing the link (common key) between the two data sets. &amp;nbsp;Assume that it is a field called orderId, something like this may get what you need:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;(data=headers OR data=resolutions) resolution_name="ACM Chargeback Received - Fraud"
| eventstats values(data) AS datasources by orderId
| where isnotnull(mvfind(datasources, "resolutions"))
| top payment_method&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Jul 2022 23:40:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-Combine-Multiple-Data-Sources-in-Pie-Chart-Visualization/m-p/604509#M210271</guid>
      <dc:creator>yuanliu</dc:creator>
      <dc:date>2022-07-05T23:40:43Z</dc:date>
    </item>
    <item>
      <title>Re: Combine Multiple Data Sources in Pie Chart Visualization</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-Combine-Multiple-Data-Sources-in-Pie-Chart-Visualization/m-p/604600#M210287</link>
      <description>&lt;P&gt;I used tran_id but unfortunately it brought up no results for the pie chart, it did bring up results in the search but only resolution results.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;(data=headers OR data=resolutions) resolution_name="ACM Chargeback Received - Fraud"
| eventstats values(data) AS datasources by tran_id
| where isnotnull(mvfind(datasources, "resolutions"))
| top payment_method&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 06 Jul 2022 14:57:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-Combine-Multiple-Data-Sources-in-Pie-Chart-Visualization/m-p/604600#M210287</guid>
      <dc:creator>devanoverstock</dc:creator>
      <dc:date>2022-07-06T14:57:07Z</dc:date>
    </item>
    <item>
      <title>Re: Combine Multiple Data Sources in Pie Chart Visualization</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-Combine-Multiple-Data-Sources-in-Pie-Chart-Visualization/m-p/604689#M210312</link>
      <description>&lt;P&gt;My mistake in grouping. &amp;nbsp;Try this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;data=headers OR data=resolutions resolution_name="ACM Chargeback Received - Fraud"
| eventstats values(data) AS datasources by tran_id
| where isnotnull(mvfind(datasources, "resolutions"))
| top payment_method&lt;/LI-CODE&gt;&lt;P&gt;This is equivalent to &lt;FONT face="courier new,courier"&gt;data=headers OR (data=resolutions AND resolution_name="ACM Chargeback Received - Fraud")&lt;/FONT&gt; .&lt;/P&gt;</description>
      <pubDate>Thu, 07 Jul 2022 02:28:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-Combine-Multiple-Data-Sources-in-Pie-Chart-Visualization/m-p/604689#M210312</guid>
      <dc:creator>yuanliu</dc:creator>
      <dc:date>2022-07-07T02:28:51Z</dc:date>
    </item>
    <item>
      <title>Re: Combine Multiple Data Sources in Pie Chart Visualization</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-Combine-Multiple-Data-Sources-in-Pie-Chart-Visualization/m-p/604791#M210343</link>
      <description>&lt;P&gt;Thank you! This is getting closer, that still returned 0 results, however I altered it a bit and was able to get PayPal and Credit Card (which is to be expected) the only issue now is it's returning about 10% of the numbers it should be returning. Unsure why. This is how I altered it.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;data=headers OR (data=resolutions resolution_name="ACM Chargeback Received - Fraud")
| eventstats values(data) AS datasources by tran_id
| where isnotnull(mvfind(datasources, "resolutions"))
| top payment_method&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 07 Jul 2022 15:24:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-Combine-Multiple-Data-Sources-in-Pie-Chart-Visualization/m-p/604791#M210343</guid>
      <dc:creator>devanoverstock</dc:creator>
      <dc:date>2022-07-07T15:24:17Z</dc:date>
    </item>
    <item>
      <title>Re: Combine Multiple Data Sources in Pie Chart Visualization</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-Combine-Multiple-Data-Sources-in-Pie-Chart-Visualization/m-p/604799#M210347</link>
      <description>&lt;P&gt;You want to test data separately, then, to compare to expected values. &amp;nbsp;Before doing that, let me confirm that the total number of payment_method is less than 10. &amp;nbsp;Correct?&lt;/P&gt;&lt;P&gt;How to test data depends on how you derive at the 10% estimation. &amp;nbsp;For example, if search&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;data=resolutions resolution_name="ACM Chargeback Received - Fraud"
| stats dc(tran_id)&lt;/LI-CODE&gt;&lt;P&gt;returns 100 (unique transactions) but the combined search only total 10, maybe data=header is missing some events. &amp;nbsp;You can try&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;data=headers OR (data=resolutions resolution_name="ACM Chargeback Received - Fraud")
| eventstats values(data) AS datasources by tran_id
| where isnull(mvfind(datasources, "headers"))&lt;/LI-CODE&gt;&lt;P&gt;to determine those missed tran_id's. &amp;nbsp;You can select one such tran_id and do a search like&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;data=header tran_id=&amp;lt;missed tran_id&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;to see if it is truly missing, and investigate from there.&lt;/P&gt;</description>
      <pubDate>Thu, 07 Jul 2022 16:13:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-Combine-Multiple-Data-Sources-in-Pie-Chart-Visualization/m-p/604799#M210347</guid>
      <dc:creator>yuanliu</dc:creator>
      <dc:date>2022-07-07T16:13:40Z</dc:date>
    </item>
    <item>
      <title>Re: Combine Multiple Data Sources in Pie Chart Visualization</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-Combine-Multiple-Data-Sources-in-Pie-Chart-Visualization/m-p/604826#M210353</link>
      <description>&lt;P&gt;Thanks for all the help. I figured it out. I needed to have different time frames for each query as resolutions column is an update column and comes up to 30 days after the headers column.&lt;/P&gt;</description>
      <pubDate>Thu, 07 Jul 2022 17:38:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-Combine-Multiple-Data-Sources-in-Pie-Chart-Visualization/m-p/604826#M210353</guid>
      <dc:creator>devanoverstock</dc:creator>
      <dc:date>2022-07-07T17:38:08Z</dc:date>
    </item>
  </channel>
</rss>

