<?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: Extract data from an entry that is dependant on data from a different entry in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Extract-data-from-an-entry-that-is-dependant-on-data-from-a/m-p/207695#M187772</link>
    <description>&lt;P&gt;Sure, &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;date_year="2015" ClothingID="*" [search "Red"]  | rename ShoppingSessionID as Store_Visit | table Person, Store_Visit
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I have 1 set of logs with multiple categories of entries.  Some entries only have a person's ID, some only have a person's Shopping Session ID, and some have both a person's ID and Shopping session ID for a Successful Purchase (denoted by an entry of "Purchased Red Clothes").  Through these entries, I can link the person's ID to their particular Shopping Session where they made a purchase.   I want to see who made a successful purchase of Red clothes.&lt;/P&gt;</description>
    <pubDate>Wed, 28 Oct 2015 19:57:08 GMT</pubDate>
    <dc:creator>_dave_b</dc:creator>
    <dc:date>2015-10-28T19:57:08Z</dc:date>
    <item>
      <title>Extract data from an entry that is dependant on data from a different entry</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Extract-data-from-an-entry-that-is-dependant-on-data-from-a/m-p/207691#M187768</link>
      <description>&lt;P&gt;Hello.  I'm trying to extract a value from one log entry so I can use it to extract data from another entry, like&lt;BR /&gt;
Entry 1 Has A and B&lt;BR /&gt;
Entry 2 Has B and C&lt;BR /&gt;
I want to get C from Entry 2 using A from Entry 1.  I know I can use B to link them together somehow, but I don't know the command to do so.  I've been trying subsearches and transactions, but nothing has worked for me.&lt;/P&gt;

&lt;P&gt;Thanks for your help.&lt;/P&gt;</description>
      <pubDate>Wed, 28 Oct 2015 15:24:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Extract-data-from-an-entry-that-is-dependant-on-data-from-a/m-p/207691#M187768</guid>
      <dc:creator>_dave_b</dc:creator>
      <dc:date>2015-10-28T15:24:34Z</dc:date>
    </item>
    <item>
      <title>Re: Extract data from an entry that is dependant on data from a different entry</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Extract-data-from-an-entry-that-is-dependant-on-data-from-a/m-p/207692#M187769</link>
      <description>&lt;P&gt;You can use the "where" command to compare field values (where field1=field2). Documentation for the where command: &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.2.0/SearchReference/Where"&gt;http://docs.splunk.com/Documentation/Splunk/6.2.0/SearchReference/Where&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Oct 2015 17:01:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Extract-data-from-an-entry-that-is-dependant-on-data-from-a/m-p/207692#M187769</guid>
      <dc:creator>jluo_splunk</dc:creator>
      <dc:date>2015-10-28T17:01:20Z</dc:date>
    </item>
    <item>
      <title>Re: Extract data from an entry that is dependant on data from a different entry</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Extract-data-from-an-entry-that-is-dependant-on-data-from-a/m-p/207693#M187770</link>
      <description>&lt;P&gt;Thanks, but how do I shoehorn that into one search statement?&lt;/P&gt;</description>
      <pubDate>Wed, 28 Oct 2015 19:08:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Extract-data-from-an-entry-that-is-dependant-on-data-from-a/m-p/207693#M187770</guid>
      <dc:creator>_dave_b</dc:creator>
      <dc:date>2015-10-28T19:08:58Z</dc:date>
    </item>
    <item>
      <title>Re: Extract data from an entry that is dependant on data from a different entry</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Extract-data-from-an-entry-that-is-dependant-on-data-from-a/m-p/207694#M187771</link>
      <description>&lt;P&gt;Can you post the search statement you are currently working with? &lt;/P&gt;</description>
      <pubDate>Wed, 28 Oct 2015 19:14:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Extract-data-from-an-entry-that-is-dependant-on-data-from-a/m-p/207694#M187771</guid>
      <dc:creator>jluo_splunk</dc:creator>
      <dc:date>2015-10-28T19:14:28Z</dc:date>
    </item>
    <item>
      <title>Re: Extract data from an entry that is dependant on data from a different entry</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Extract-data-from-an-entry-that-is-dependant-on-data-from-a/m-p/207695#M187772</link>
      <description>&lt;P&gt;Sure, &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;date_year="2015" ClothingID="*" [search "Red"]  | rename ShoppingSessionID as Store_Visit | table Person, Store_Visit
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I have 1 set of logs with multiple categories of entries.  Some entries only have a person's ID, some only have a person's Shopping Session ID, and some have both a person's ID and Shopping session ID for a Successful Purchase (denoted by an entry of "Purchased Red Clothes").  Through these entries, I can link the person's ID to their particular Shopping Session where they made a purchase.   I want to see who made a successful purchase of Red clothes.&lt;/P&gt;</description>
      <pubDate>Wed, 28 Oct 2015 19:57:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Extract-data-from-an-entry-that-is-dependant-on-data-from-a/m-p/207695#M187772</guid>
      <dc:creator>_dave_b</dc:creator>
      <dc:date>2015-10-28T19:57:08Z</dc:date>
    </item>
    <item>
      <title>Re: Extract data from an entry that is dependant on data from a different entry</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Extract-data-from-an-entry-that-is-dependant-on-data-from-a/m-p/207696#M187773</link>
      <description>&lt;P&gt;Assuming A, B, and C are field names.&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;&lt;P&gt;transaction:&lt;/P&gt;

&lt;P&gt;Entry1 OR Entry2 | transaction B&lt;/P&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;P&gt;subsearch:&lt;/P&gt;

&lt;P&gt;Entry2 | join B [ search  Entry1 | fields A,B ] | table A,B,C&lt;/P&gt;&lt;/LI&gt;
&lt;/UL&gt;</description>
      <pubDate>Wed, 28 Oct 2015 20:13:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Extract-data-from-an-entry-that-is-dependant-on-data-from-a/m-p/207696#M187773</guid>
      <dc:creator>the_wolverine</dc:creator>
      <dc:date>2015-10-28T20:13:52Z</dc:date>
    </item>
    <item>
      <title>Re: Extract data from an entry that is dependant on data from a different entry</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Extract-data-from-an-entry-that-is-dependant-on-data-from-a/m-p/207697#M187774</link>
      <description>&lt;P&gt;Ah - I misunderstood the question. Transaction &lt;EM&gt;should&lt;/EM&gt; do the trick.&lt;/P&gt;

&lt;P&gt;source=log1 OR source=log2 | transaction CustomerID&lt;/P&gt;</description>
      <pubDate>Wed, 28 Oct 2015 20:34:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Extract-data-from-an-entry-that-is-dependant-on-data-from-a/m-p/207697#M187774</guid>
      <dc:creator>jluo_splunk</dc:creator>
      <dc:date>2015-10-28T20:34:28Z</dc:date>
    </item>
  </channel>
</rss>

