<?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 to create a table based on a common field name from two sources? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-table-based-on-a-common-field-name-from-two/m-p/224659#M66197</link>
    <description>&lt;P&gt;Sorry to say its not displaying the source1 values in this case, its displaying only source2 values &lt;/P&gt;</description>
    <pubDate>Mon, 09 Jan 2017 20:33:47 GMT</pubDate>
    <dc:creator>svemurilv</dc:creator>
    <dc:date>2017-01-09T20:33:47Z</dc:date>
    <item>
      <title>How to create a table based on a common field name from two sources?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-table-based-on-a-common-field-name-from-two/m-p/224654#M66192</link>
      <description>&lt;P&gt;HI Splunks,&lt;BR /&gt;
 I have two Splunk sources: source=source1 and source=source2. i just want to compare two source's  data  with one of the common  Field  names "ReportRequestInstanceID" and create table  with the time stamp.&lt;/P&gt;

&lt;P&gt;source1 &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;"2017-01-09 12:01:00" ReportRequestInstanceID="3211552", CreatedOn="2017-01-09 12:01:00.387", ReportRequestID="172837", NumberOfReportTypes="1", Title="Accordant_Amtrak", QueueNumber="2", TimeInterval="Last Effective Hour", NumberOfFilteredNetworks="0", NumberOfFilteredAdvertisers="1", NumberOfFilteredAngencies="1", NumberOfFilteredCampaigns="1", NumberOfFilteredReportingProjects="0", HasEmail="1", HasFtps="1", NumberOfDaysInWeekScheduled="7",
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;source -2 &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;2017-01-09 12:02:46" ID="6157727", ReportRequestInstanceID="3114793", DownloadTime="2017-01-09 12:02:46.567", ClientIP="64.156.167.132", DownloadMode="40", StartTime="2017-01-09 12:02:46.567"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;i just want to create table for the  &lt;CODE&gt;source1.ReportRequestInstanceID | source2.ReportRequestInstanceID | source1.CreatedOn source1.ReportRequestID |source2.DownloadTime | source2.DownloadMode&lt;/CODE&gt; &lt;/P&gt;

&lt;P&gt;Please Help me.&lt;/P&gt;

&lt;P&gt;Thanks &lt;/P&gt;</description>
      <pubDate>Mon, 09 Jan 2017 17:16:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-table-based-on-a-common-field-name-from-two/m-p/224654#M66192</guid>
      <dc:creator>svemurilv</dc:creator>
      <dc:date>2017-01-09T17:16:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a table based on a common field name from two sources?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-table-based-on-a-common-field-name-from-two/m-p/224655#M66193</link>
      <description>&lt;P&gt;I think since the field should be autoextracted and is same/common in both sources can you try this below which should work straight away without any issues:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;(source=source1 OR source=source2)
| table ReportRequestInstanceID, CreatedOn, ReportRequestID, DownloadTime, DownloadMode
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;If the index and sourcetype is same, you might wanna add those filters too something like &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=yourIndex sourcetype=yourSourceType (source=source1 OR source=source2)
| table ReportRequestInstanceID, CreatedOn, ReportRequestID, DownloadTime, DownloadMode
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 09 Jan 2017 18:34:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-table-based-on-a-common-field-name-from-two/m-p/224655#M66193</guid>
      <dc:creator>gokadroid</dc:creator>
      <dc:date>2017-01-09T18:34:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a table based on a common field name from two sources?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-table-based-on-a-common-field-name-from-two/m-p/224656#M66194</link>
      <description>&lt;P&gt;I need to compare the "ReportRequestInstanceID" from both sources,  if ID matches in both sources then tabular few filed  in both the sources and generate the report, both ReportRequestInstanceID di should display in the table.&lt;/P&gt;</description>
      <pubDate>Mon, 09 Jan 2017 20:06:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-table-based-on-a-common-field-name-from-two/m-p/224656#M66194</guid>
      <dc:creator>svemurilv</dc:creator>
      <dc:date>2017-01-09T20:06:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a table based on a common field name from two sources?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-table-based-on-a-common-field-name-from-two/m-p/224657#M66195</link>
      <description>&lt;P&gt;what about something like this? It should give you every unique value for each field by the ReportRequestInstanceID&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;source=source1 OR source=source2
|stats values(DownloadTime) as DownloadTime values(DownloadMode) as DownloadMode values(CreatedOn) as CreatedOn values(ReportRequestID) as ReportRequestID by ReportRequestInstanceID 
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 09 Jan 2017 20:10:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-table-based-on-a-common-field-name-from-two/m-p/224657#M66195</guid>
      <dc:creator>cmerriman</dc:creator>
      <dc:date>2017-01-09T20:10:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a table based on a common field name from two sources?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-table-based-on-a-common-field-name-from-two/m-p/224658#M66196</link>
      <description>&lt;P&gt;Since the ReportRequestInstanceID is same, displaying it twice might be redundant and this query above will automatically return the data for the ids which match in both source1 and source2. You don't need a specific matching condition to match between source1.ReportRequestInstanceID and source2.ReportRequestInstanceID&lt;/P&gt;</description>
      <pubDate>Mon, 09 Jan 2017 20:14:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-table-based-on-a-common-field-name-from-two/m-p/224658#M66196</guid>
      <dc:creator>gokadroid</dc:creator>
      <dc:date>2017-01-09T20:14:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a table based on a common field name from two sources?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-table-based-on-a-common-field-name-from-two/m-p/224659#M66197</link>
      <description>&lt;P&gt;Sorry to say its not displaying the source1 values in this case, its displaying only source2 values &lt;/P&gt;</description>
      <pubDate>Mon, 09 Jan 2017 20:33:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-table-based-on-a-common-field-name-from-two/m-p/224659#M66197</guid>
      <dc:creator>svemurilv</dc:creator>
      <dc:date>2017-01-09T20:33:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a table based on a common field name from two sources?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-table-based-on-a-common-field-name-from-two/m-p/224660#M66198</link>
      <description>&lt;P&gt;Try something like this - &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;source=source1 | fields ReportRequestInstanceID CreatedOn | join ReportRequestInstanceID type=left maxrows=0 [search source=source2 | eval Source2ReportRequestInstanceID = ReportRequestInstanceID | fields ReportRequestInstanceID Source2ReportRequestInstanceID DownloadTime DownloadMode] | table ReportRequestInstanceID Source2ReportRequestInstanceID CreatedOn DownloadTime DownloadMode
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This left join should produce one line for each time a report has been downloaded in source 2, or a single line for each report in source 1 that has never yet been downloaded.  It will not produce any results for items that show as downloaded in source2, but which do not exist in source1.&lt;/P&gt;</description>
      <pubDate>Mon, 09 Jan 2017 20:34:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-table-based-on-a-common-field-name-from-two/m-p/224660#M66198</guid>
      <dc:creator>DalJeanis</dc:creator>
      <dc:date>2017-01-09T20:34:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a table based on a common field name from two sources?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-table-based-on-a-common-field-name-from-two/m-p/224661#M66199</link>
      <description>&lt;P&gt;Thanks @ DalJeanis Its working. &lt;/P&gt;</description>
      <pubDate>Mon, 09 Jan 2017 21:34:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-table-based-on-a-common-field-name-from-two/m-p/224661#M66199</guid>
      <dc:creator>svemurilv</dc:creator>
      <dc:date>2017-01-09T21:34:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a table based on a common field name from two sources?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-table-based-on-a-common-field-name-from-two/m-p/224662#M66200</link>
      <description>&lt;P&gt;Thanks all&lt;/P&gt;</description>
      <pubDate>Mon, 09 Jan 2017 21:40:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-table-based-on-a-common-field-name-from-two/m-p/224662#M66200</guid>
      <dc:creator>svemurilv</dc:creator>
      <dc:date>2017-01-09T21:40:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a table based on a common field name from two sources?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-table-based-on-a-common-field-name-from-two/m-p/224663#M66201</link>
      <description>&lt;P&gt;Awesome!  happy to be of service.&lt;/P&gt;</description>
      <pubDate>Tue, 10 Jan 2017 15:56:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-table-based-on-a-common-field-name-from-two/m-p/224663#M66201</guid>
      <dc:creator>DalJeanis</dc:creator>
      <dc:date>2017-01-10T15:56:39Z</dc:date>
    </item>
  </channel>
</rss>

