<?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 can I get the flieds of two logs by joining them? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-get-the-flieds-of-two-logs-by-joining-them/m-p/140319#M38750</link>
    <description>&lt;P&gt;Hey Marina, give a try using the &lt;CODE&gt;join&lt;/CODE&gt; command, something like that:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=bla source=debug.log "your search" |
join type=left IPbalan [ search index=bla source=ldap-pre.log ]
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Now the results should have the joined fields. Not that the join operation is case-sensitive - doesn't really matter for IPs but is good to be aware of that anyway... have a look on the Splunk Doc to see all &lt;CODE&gt;join&lt;/CODE&gt; options.&lt;/P&gt;

&lt;P&gt;Another option, if you ldap-pre.log is quite static, would be exporting your ldap-pre.log and converting it to a lookup table. Lookups are normally faster than joins.&lt;/P&gt;</description>
    <pubDate>Sun, 30 Nov 2014 21:30:14 GMT</pubDate>
    <dc:creator>musskopf</dc:creator>
    <dc:date>2014-11-30T21:30:14Z</dc:date>
    <item>
      <title>How can I get the flieds of two logs by joining them?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-get-the-flieds-of-two-logs-by-joining-them/m-p/140318#M38749</link>
      <description>&lt;P&gt;Hi people,&lt;BR /&gt;
I have a doubt. I've two logs with their own fields.&lt;BR /&gt;
One of them is ldap-pre.log, that has this fields: IPclient, IPbalan, SNAT, whatM&lt;BR /&gt;
And the other is debug.log and it has this flields: IPbalan, conn&lt;/P&gt;

&lt;P&gt;I want some search that join this two logs, and show me, for each Ipclient, the conn (connection) that this IP has done. Like you see, IPbalan, its the same flied and values for both logs. &lt;BR /&gt;
It tried somethings eval, transaction, stats, and I get all that the conn (connection) done, like serach something, bind, all the sentences, but I need to see the IPclient who did that connection.&lt;BR /&gt;
Some help please?&lt;/P&gt;

&lt;P&gt;Thank you all,&lt;BR /&gt;
Marina&lt;/P&gt;</description>
      <pubDate>Sun, 30 Nov 2014 18:08:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-get-the-flieds-of-two-logs-by-joining-them/m-p/140318#M38749</guid>
      <dc:creator>marina_rovira</dc:creator>
      <dc:date>2014-11-30T18:08:54Z</dc:date>
    </item>
    <item>
      <title>Re: How can I get the flieds of two logs by joining them?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-get-the-flieds-of-two-logs-by-joining-them/m-p/140319#M38750</link>
      <description>&lt;P&gt;Hey Marina, give a try using the &lt;CODE&gt;join&lt;/CODE&gt; command, something like that:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=bla source=debug.log "your search" |
join type=left IPbalan [ search index=bla source=ldap-pre.log ]
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Now the results should have the joined fields. Not that the join operation is case-sensitive - doesn't really matter for IPs but is good to be aware of that anyway... have a look on the Splunk Doc to see all &lt;CODE&gt;join&lt;/CODE&gt; options.&lt;/P&gt;

&lt;P&gt;Another option, if you ldap-pre.log is quite static, would be exporting your ldap-pre.log and converting it to a lookup table. Lookups are normally faster than joins.&lt;/P&gt;</description>
      <pubDate>Sun, 30 Nov 2014 21:30:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-get-the-flieds-of-two-logs-by-joining-them/m-p/140319#M38750</guid>
      <dc:creator>musskopf</dc:creator>
      <dc:date>2014-11-30T21:30:14Z</dc:date>
    </item>
  </channel>
</rss>

