<?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 how to find the Unique field value which is present in two different source logs in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/how-to-find-the-Unique-field-value-which-is-present-in-two/m-p/177224#M50930</link>
    <description>&lt;P&gt;My question is how to find the uniqueId which is present in two different source logs..?&lt;/P&gt;

&lt;P&gt;I have 2 source logs say, abc.log and xyz.log. abc.log has fields called "RequestID" and "RequestStartTime". xyz.log has fields called "TransactionID" and "TransEndTime". Now i have to find and display a UniqueID which is present in both "RequestID" and "TransactionID" with RequestStartTime and TransEndTime..??&lt;/P&gt;

&lt;P&gt;Can anyone please suggest how m able to do this in splunk..??&lt;/P&gt;

&lt;P&gt;Thanks in advance &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 07 Mar 2014 04:51:31 GMT</pubDate>
    <dc:creator>RashmiGowda</dc:creator>
    <dc:date>2014-03-07T04:51:31Z</dc:date>
    <item>
      <title>how to find the Unique field value which is present in two different source logs</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-find-the-Unique-field-value-which-is-present-in-two/m-p/177224#M50930</link>
      <description>&lt;P&gt;My question is how to find the uniqueId which is present in two different source logs..?&lt;/P&gt;

&lt;P&gt;I have 2 source logs say, abc.log and xyz.log. abc.log has fields called "RequestID" and "RequestStartTime". xyz.log has fields called "TransactionID" and "TransEndTime". Now i have to find and display a UniqueID which is present in both "RequestID" and "TransactionID" with RequestStartTime and TransEndTime..??&lt;/P&gt;

&lt;P&gt;Can anyone please suggest how m able to do this in splunk..??&lt;/P&gt;

&lt;P&gt;Thanks in advance &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Mar 2014 04:51:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-find-the-Unique-field-value-which-is-present-in-two/m-p/177224#M50930</guid>
      <dc:creator>RashmiGowda</dc:creator>
      <dc:date>2014-03-07T04:51:31Z</dc:date>
    </item>
    <item>
      <title>Re: how to find the Unique field value which is present in two different source logs</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-find-the-Unique-field-value-which-is-present-in-two/m-p/177225#M50931</link>
      <description>&lt;P&gt;You could try:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;source="abc.log" OR source="xyz.log" | eval UniqueID=coalesce(RequestID,TransactionID) 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;and then depending on how you want the output formatted, you could do something like:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| stats c by UniqueID,RequestStartTime,TransEndTime | fields - c
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;or&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| chart values(RequestStartTime) AS Start values(TransEndTime) AS End by UniqueID
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 07 Mar 2014 05:06:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-find-the-Unique-field-value-which-is-present-in-two/m-p/177225#M50931</guid>
      <dc:creator>gauldridge</dc:creator>
      <dc:date>2014-03-07T05:06:25Z</dc:date>
    </item>
    <item>
      <title>Re: how to find the Unique field value which is present in two different source logs</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-find-the-Unique-field-value-which-is-present-in-two/m-p/177226#M50932</link>
      <description>&lt;P&gt;Thank you. But how to eliminate the duplicate TransactionID. because in xyz.log there are Transactions which are appering more than once. Could you please suggest..??&lt;/P&gt;</description>
      <pubDate>Fri, 07 Mar 2014 05:31:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-find-the-Unique-field-value-which-is-present-in-two/m-p/177226#M50932</guid>
      <dc:creator>RashmiGowda</dc:creator>
      <dc:date>2014-03-07T05:31:48Z</dc:date>
    </item>
    <item>
      <title>Re: how to find the Unique field value which is present in two different source logs</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-find-the-Unique-field-value-which-is-present-in-two/m-p/177227#M50933</link>
      <description>&lt;P&gt;above query is giving duplicate results also. its also displaying id's whcih are not present in RequestID and TransactionID.. &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Mar 2014 05:57:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-find-the-Unique-field-value-which-is-present-in-two/m-p/177227#M50933</guid>
      <dc:creator>RashmiGowda</dc:creator>
      <dc:date>2014-03-07T05:57:24Z</dc:date>
    </item>
    <item>
      <title>Re: how to find the Unique field value which is present in two different source logs</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-find-the-Unique-field-value-which-is-present-in-two/m-p/177228#M50934</link>
      <description>&lt;P&gt;Are there multiple "copies" of the same transaction in the xyz.log source or is the TransactionID being recycled/reused by multiple transactions?  Also, is the beginning of a transaction always in &lt;CODE&gt;abc.log&lt;/CODE&gt; and the end always in &lt;CODE&gt;xyz.log&lt;/CODE&gt;?&lt;/P&gt;</description>
      <pubDate>Fri, 07 Mar 2014 05:58:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-find-the-Unique-field-value-which-is-present-in-two/m-p/177228#M50934</guid>
      <dc:creator>gauldridge</dc:creator>
      <dc:date>2014-03-07T05:58:02Z</dc:date>
    </item>
    <item>
      <title>Re: how to find the Unique field value which is present in two different source logs</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-find-the-Unique-field-value-which-is-present-in-two/m-p/177229#M50935</link>
      <description>&lt;P&gt;Actually TransactionID is being reused by multiple transactions. Its not that beginning of transaction in abc.log and end in xyz.log.&lt;/P&gt;

&lt;P&gt;What i need to do is, i need to corelate the events from abc.log and xyz.log based on the UniqueiD which is present in both the logs. so i created "RequestID" for abc.log and TransactionID for xyz.log. &lt;/P&gt;

&lt;P&gt;now i need to pick up the uniqueid which is present in both RequestID and TransactionID. RequestID contains uniqueID of abc.log and TransactionID contains uniqueiD of xyz.log&lt;/P&gt;

&lt;P&gt;@gauldridge&lt;/P&gt;</description>
      <pubDate>Fri, 07 Mar 2014 06:33:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-find-the-Unique-field-value-which-is-present-in-two/m-p/177229#M50935</guid>
      <dc:creator>RashmiGowda</dc:creator>
      <dc:date>2014-03-07T06:33:53Z</dc:date>
    </item>
    <item>
      <title>Re: how to find the Unique field value which is present in two different source logs</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-find-the-Unique-field-value-which-is-present-in-two/m-p/177230#M50936</link>
      <description>&lt;P&gt;Does that mean that RequestID is also used by multiple transactions?&lt;/P&gt;</description>
      <pubDate>Fri, 07 Mar 2014 06:45:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-find-the-Unique-field-value-which-is-present-in-two/m-p/177230#M50936</guid>
      <dc:creator>gauldridge</dc:creator>
      <dc:date>2014-03-07T06:45:57Z</dc:date>
    </item>
    <item>
      <title>Re: how to find the Unique field value which is present in two different source logs</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-find-the-Unique-field-value-which-is-present-in-two/m-p/177231#M50937</link>
      <description>&lt;P&gt;No.. RequestID is Unique. Its not used by Multiple Transactions&lt;BR /&gt;
@gauldridge&lt;/P&gt;</description>
      <pubDate>Fri, 07 Mar 2014 06:54:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-find-the-Unique-field-value-which-is-present-in-two/m-p/177231#M50937</guid>
      <dc:creator>RashmiGowda</dc:creator>
      <dc:date>2014-03-07T06:54:21Z</dc:date>
    </item>
    <item>
      <title>Re: how to find the Unique field value which is present in two different source logs</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-find-the-Unique-field-value-which-is-present-in-two/m-p/177232#M50938</link>
      <description>&lt;P&gt;So, is it correct to say that the RequestID is unique per transaction but the TransactionID is not?&lt;/P&gt;

&lt;P&gt;Is the UniqueID you mention something that actually exists in the events or something you need to create on-the-fly?&lt;/P&gt;

&lt;P&gt;Is there something in either one or both of the log types that always indicates the beginning and end of the transaction?&lt;/P&gt;

&lt;P&gt;Is it possible for you to share a snippet of each of the log sources?  Even if it is scrubbed, it might be easier to troubleshoot with an example of the data at this point.&lt;/P&gt;</description>
      <pubDate>Sun, 09 Mar 2014 13:55:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-find-the-Unique-field-value-which-is-present-in-two/m-p/177232#M50938</guid>
      <dc:creator>gauldridge</dc:creator>
      <dc:date>2014-03-09T13:55:32Z</dc:date>
    </item>
  </channel>
</rss>

