<?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: Joining entries using IDs in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Joining-entries-using-IDs/m-p/35340#M7757</link>
    <description>&lt;P&gt;Did you look into using &lt;CODE&gt;transaction&lt;/CODE&gt;?&lt;/P&gt;</description>
    <pubDate>Wed, 15 Aug 2012 14:13:04 GMT</pubDate>
    <dc:creator>Ayn</dc:creator>
    <dc:date>2012-08-15T14:13:04Z</dc:date>
    <item>
      <title>Joining entries using IDs</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Joining-entries-using-IDs/m-p/35337#M7754</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I am trying to extract an ID from a search and append the results using the extracted ID.&lt;/P&gt;

&lt;P&gt;Example:&lt;BR /&gt;
Search: host="hostname" 32351&lt;BR /&gt;
&amp;lt;190&amp;gt;Aug 15 11:28:02 hostname sshd[32351]: User child is on pid 32353&lt;/P&gt;

&lt;P&gt;Now I would like to append the entries including the child pid, e.g.&lt;BR /&gt;
Search: host="hostname" 32351 OR 32353 without having to type "OR 32353".&lt;/P&gt;

&lt;P&gt;Here, Splunk adds all entries with all child pid's and not only those from the main search:&lt;BR /&gt;
host="hostname" pid=32351 | append [search host="hostname" | fields + childpid]&lt;/P&gt;

&lt;P&gt;So I am probably missing something before append. I hope it is enough information.&lt;/P&gt;</description>
      <pubDate>Wed, 15 Aug 2012 11:41:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Joining-entries-using-IDs/m-p/35337#M7754</guid>
      <dc:creator>m_hunger</dc:creator>
      <dc:date>2012-08-15T11:41:49Z</dc:date>
    </item>
    <item>
      <title>Re: Joining entries using IDs</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Joining-entries-using-IDs/m-p/35338#M7755</link>
      <description>&lt;P&gt;If you have the field extractions for &lt;CODE&gt;pid&lt;/CODE&gt; and &lt;CODE&gt;childpid&lt;/CODE&gt; configured already, you could simply get the children of a pid by&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;host=hostname | stats values(childpid) by pid
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;HR /&gt;

&lt;P&gt;UPDATE:&lt;/P&gt;

&lt;P&gt;Hmm, not 100% sure I follow you, but...&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;host=hostname pid=12345 OR [search host=hostname pid=12345 | rename childpid as pid | fields + pid]
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;..something like this might work.&lt;/P&gt;

&lt;P&gt;/k&lt;/P&gt;

&lt;P&gt;Hope this helps,&lt;/P&gt;

&lt;P&gt;Kristian&lt;/P&gt;</description>
      <pubDate>Wed, 15 Aug 2012 13:10:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Joining-entries-using-IDs/m-p/35338#M7755</guid>
      <dc:creator>kristian_kolb</dc:creator>
      <dc:date>2012-08-15T13:10:11Z</dc:date>
    </item>
    <item>
      <title>Re: Joining entries using IDs</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Joining-entries-using-IDs/m-p/35339#M7756</link>
      <description>&lt;P&gt;At least it makes a correct connection, but I need the complete logentries.&lt;/P&gt;

&lt;P&gt;What I basically need is:&lt;BR /&gt;
SELECT * FROM sshd a, internal-sftp b WHERE a.pid="1000" AND a.childpid = b.pid;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Aug 2012 13:27:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Joining-entries-using-IDs/m-p/35339#M7756</guid>
      <dc:creator>m_hunger</dc:creator>
      <dc:date>2012-08-15T13:27:35Z</dc:date>
    </item>
    <item>
      <title>Re: Joining entries using IDs</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Joining-entries-using-IDs/m-p/35340#M7757</link>
      <description>&lt;P&gt;Did you look into using &lt;CODE&gt;transaction&lt;/CODE&gt;?&lt;/P&gt;</description>
      <pubDate>Wed, 15 Aug 2012 14:13:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Joining-entries-using-IDs/m-p/35340#M7757</guid>
      <dc:creator>Ayn</dc:creator>
      <dc:date>2012-08-15T14:13:04Z</dc:date>
    </item>
    <item>
      <title>Re: Joining entries using IDs</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Joining-entries-using-IDs/m-p/35341#M7758</link>
      <description>&lt;P&gt;see update above /k&lt;/P&gt;</description>
      <pubDate>Wed, 15 Aug 2012 15:30:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Joining-entries-using-IDs/m-p/35341#M7758</guid>
      <dc:creator>kristian_kolb</dc:creator>
      <dc:date>2012-08-15T15:30:52Z</dc:date>
    </item>
  </channel>
</rss>

