<?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 I combine data from two different sources without the append or the union command? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-combine-data-from-two-different-sources-without-the/m-p/423584#M174259</link>
    <description>&lt;P&gt;Hi,&lt;BR /&gt;
If you have matching fields in both the data sets you can use "join" command. like,&lt;/P&gt;

&lt;P&gt;[data_set1] &lt;BR /&gt;
| join type = inner/left &lt;BR /&gt;
[data set 2]&lt;/P&gt;

&lt;P&gt;Sid&lt;/P&gt;</description>
    <pubDate>Thu, 06 Dec 2018 05:55:22 GMT</pubDate>
    <dc:creator>sdchakraborty</dc:creator>
    <dc:date>2018-12-06T05:55:22Z</dc:date>
    <item>
      <title>How do I combine data from two different sources without the append or the union command?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-combine-data-from-two-different-sources-without-the/m-p/423580#M174255</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;is there any way to combine data from two different sources without the append or the union command?&lt;/P&gt;

&lt;P&gt;I have a code like this.. &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Index=csvl source="file1. Csv" or source="file2. Csv" |
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;First searching from some data from first source file1.csv&lt;BR /&gt;
Next searching from some data from 2nd source file2.csv&lt;/P&gt;

&lt;P&gt;At least I'm using append to combine both results. Is there any way to remove append or union from the query..?&lt;/P&gt;

&lt;P&gt;Thank you.. &lt;/P&gt;</description>
      <pubDate>Wed, 05 Dec 2018 09:36:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-combine-data-from-two-different-sources-without-the/m-p/423580#M174255</guid>
      <dc:creator>atozeswar</dc:creator>
      <dc:date>2018-12-05T09:36:05Z</dc:date>
    </item>
    <item>
      <title>Re: How do I combine data from two different sources without the append or the union command?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-combine-data-from-two-different-sources-without-the/m-p/423581#M174256</link>
      <description>&lt;P&gt;Can you provide a little more detail on what you would like as the end result?&lt;/P&gt;</description>
      <pubDate>Wed, 05 Dec 2018 15:04:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-combine-data-from-two-different-sources-without-the/m-p/423581#M174256</guid>
      <dc:creator>kmorris_splunk</dc:creator>
      <dc:date>2018-12-05T15:04:20Z</dc:date>
    </item>
    <item>
      <title>Re: How do I combine data from two different sources without the append or the union command?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-combine-data-from-two-different-sources-without-the/m-p/423582#M174257</link>
      <description>&lt;P&gt;Hey,&lt;/P&gt;

&lt;P&gt;that depends on your data. Does file1 and file2 have totally distinct columns? &lt;/P&gt;

&lt;P&gt;If you want them to be combined you need some kind of "key" to match them. Or to be more specific: You need a "rule" which tells you a mapping of rows of file1 to rows of file2. And this mapping has to be a 1-to-1 relation, usually induced by a key value. This could be &lt;CODE&gt;_time&lt;/CODE&gt;, could be a combination of values within each file.&lt;/P&gt;

&lt;P&gt;If &lt;CODE&gt;_time&lt;/CODE&gt; can be used as your key, you might work with &lt;CODE&gt;bin _time span=1m&lt;/CODE&gt; and continue with &lt;CODE&gt;stats latest(value)&lt;/CODE&gt; (keep in mind you are aggregating here and might "loose" a value using &lt;CODE&gt;latest&lt;/CODE&gt;. Test this by using &lt;CODE&gt;list()&lt;/CODE&gt;).&lt;/P&gt;

&lt;P&gt;Hope that helps,&lt;BR /&gt;
Björn&lt;/P&gt;</description>
      <pubDate>Wed, 05 Dec 2018 16:48:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-combine-data-from-two-different-sources-without-the/m-p/423582#M174257</guid>
      <dc:creator>bjoernjensen</dc:creator>
      <dc:date>2018-12-05T16:48:37Z</dc:date>
    </item>
    <item>
      <title>Re: How do I combine data from two different sources without the append or the union command?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-combine-data-from-two-different-sources-without-the/m-p/423583#M174258</link>
      <description>&lt;P&gt;Some rows of data from file1 and some rows of data from files2. I need to append both and make a table but without using append.. &lt;/P&gt;</description>
      <pubDate>Thu, 06 Dec 2018 01:38:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-combine-data-from-two-different-sources-without-the/m-p/423583#M174258</guid>
      <dc:creator>atozeswar</dc:creator>
      <dc:date>2018-12-06T01:38:26Z</dc:date>
    </item>
    <item>
      <title>Re: How do I combine data from two different sources without the append or the union command?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-combine-data-from-two-different-sources-without-the/m-p/423584#M174259</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;
If you have matching fields in both the data sets you can use "join" command. like,&lt;/P&gt;

&lt;P&gt;[data_set1] &lt;BR /&gt;
| join type = inner/left &lt;BR /&gt;
[data set 2]&lt;/P&gt;

&lt;P&gt;Sid&lt;/P&gt;</description>
      <pubDate>Thu, 06 Dec 2018 05:55:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-combine-data-from-two-different-sources-without-the/m-p/423584#M174259</guid>
      <dc:creator>sdchakraborty</dc:creator>
      <dc:date>2018-12-06T05:55:22Z</dc:date>
    </item>
    <item>
      <title>Re: How do I combine data from two different sources without the append or the union command?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-combine-data-from-two-different-sources-without-the/m-p/423585#M174260</link>
      <description>&lt;P&gt;&lt;A href="https://answers.splunk.com/answers/129424/how-to-compare-fields-over-multiple-sourcetypes-without-join-append-or-use-of-subsearches.html"&gt;https://answers.splunk.com/answers/129424/how-to-compare-fields-over-multiple-sourcetypes-without-join-append-or-use-of-subsearches.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Dec 2018 15:31:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-combine-data-from-two-different-sources-without-the/m-p/423585#M174260</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2018-12-06T15:31:26Z</dc:date>
    </item>
  </channel>
</rss>

