<?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 lookup from different source types based on a common value in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/lookup-from-different-source-types-based-on-a-common-value/m-p/119544#M32083</link>
    <description>&lt;P&gt;I want to search from multiple sources having one field in common and the query should return all the fields from both the sources..&lt;BR /&gt;
Just like the vlookup function in excel..&lt;BR /&gt;
e.g. i have two csv's having following data&lt;BR /&gt;
csv-1 - IP Address, User Name&lt;BR /&gt;
csv-2 - IP Address, Host Name&lt;BR /&gt;
now the query should lookup for the common IP Address in both the csv's and return the result having following columns:&lt;BR /&gt;
IP Address, Host Name, User Name&lt;/P&gt;</description>
    <pubDate>Tue, 29 Oct 2013 09:56:11 GMT</pubDate>
    <dc:creator>lphirke</dc:creator>
    <dc:date>2013-10-29T09:56:11Z</dc:date>
    <item>
      <title>lookup from different source types based on a common value</title>
      <link>https://community.splunk.com/t5/Splunk-Search/lookup-from-different-source-types-based-on-a-common-value/m-p/119544#M32083</link>
      <description>&lt;P&gt;I want to search from multiple sources having one field in common and the query should return all the fields from both the sources..&lt;BR /&gt;
Just like the vlookup function in excel..&lt;BR /&gt;
e.g. i have two csv's having following data&lt;BR /&gt;
csv-1 - IP Address, User Name&lt;BR /&gt;
csv-2 - IP Address, Host Name&lt;BR /&gt;
now the query should lookup for the common IP Address in both the csv's and return the result having following columns:&lt;BR /&gt;
IP Address, Host Name, User Name&lt;/P&gt;</description>
      <pubDate>Tue, 29 Oct 2013 09:56:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/lookup-from-different-source-types-based-on-a-common-value/m-p/119544#M32083</guid>
      <dc:creator>lphirke</dc:creator>
      <dc:date>2013-10-29T09:56:11Z</dc:date>
    </item>
    <item>
      <title>Re: lookup from different source types based on a common value</title>
      <link>https://community.splunk.com/t5/Splunk-Search/lookup-from-different-source-types-based-on-a-common-value/m-p/119545#M32084</link>
      <description>&lt;P&gt;Assuming you have the files in the correct lookup location and named accordingly:&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;your_search | lookup csv-1.csv IP_FIELD_IN_CSV AS IP_FIELD_IN_SEARCH OUTPUT USERNAME_FIELD_IN_CSV | lookup csv-2.csv IP_FIELD_IN_CSV AS IP_FIELD_IN_SEARCH OUTPUT HOSTNAME_FIELD_IN_CSV | stats count by IP_FIELD_IN_SEARCH HOST_NAME_FIELD_IN_CSV USERNAME_FIELD_IN_CSV&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Oct 2013 11:15:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/lookup-from-different-source-types-based-on-a-common-value/m-p/119545#M32084</guid>
      <dc:creator>alacercogitatus</dc:creator>
      <dc:date>2013-10-29T11:15:17Z</dc:date>
    </item>
    <item>
      <title>Re: lookup from different source types based on a common value</title>
      <link>https://community.splunk.com/t5/Splunk-Search/lookup-from-different-source-types-based-on-a-common-value/m-p/119546#M32085</link>
      <description>&lt;P&gt;Thanks "alacercogitatus" for the reply..&lt;BR /&gt;
however I got my query resolved with the following condition:&lt;BR /&gt;
"transaction parameter-A parameter-B connected=f | where parameter-A=parameter-B"&lt;/P&gt;</description>
      <pubDate>Tue, 29 Oct 2013 12:02:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/lookup-from-different-source-types-based-on-a-common-value/m-p/119546#M32085</guid>
      <dc:creator>lphirke</dc:creator>
      <dc:date>2013-10-29T12:02:19Z</dc:date>
    </item>
    <item>
      <title>Re: lookup from different source types based on a common value</title>
      <link>https://community.splunk.com/t5/Splunk-Search/lookup-from-different-source-types-based-on-a-common-value/m-p/119547#M32086</link>
      <description>&lt;P&gt;ah ok, so you aren't using lookups, I misunderstood. Transaction and where is an expensive command, try this:&lt;BR /&gt;
&lt;CODE&gt;sourcetype=A OR sourcetype=B | stats values(hostname) values(username) by clientip&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Oct 2013 12:44:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/lookup-from-different-source-types-based-on-a-common-value/m-p/119547#M32086</guid>
      <dc:creator>alacercogitatus</dc:creator>
      <dc:date>2013-10-29T12:44:49Z</dc:date>
    </item>
  </channel>
</rss>

