<?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 to use fields from different source types in the same search? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-use-fields-from-different-source-types-in-the-same-search/m-p/135898#M27987</link>
    <description>&lt;P&gt;Hi Sanjay,&lt;/P&gt;

&lt;P&gt;If I can I don't know how to.&lt;/P&gt;</description>
    <pubDate>Thu, 12 Feb 2015 09:27:13 GMT</pubDate>
    <dc:creator>julianglavey</dc:creator>
    <dc:date>2015-02-12T09:27:13Z</dc:date>
    <item>
      <title>How to use fields from different source types in the same search?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-use-fields-from-different-source-types-in-the-same-search/m-p/135896#M27985</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;

&lt;P&gt;I am looking to try and figure out how to compose a query that has information I need in two distinct sourcetypes with potentially no shared field. The query is to figure out who launched a AWS EC2 instance that is not tagged correctly.&lt;/P&gt;

&lt;P&gt;I can find the instance launched details using this query.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=* sourcetype="ec2-audit" earliest_time=-1h instance_id=* NOT tag_Service="Self" 
| where isnull(tag_Opco) OR isnull(tag_Environment) OR isnull(tag_Cartesis) OR isnull(tag_Requester) OR isnull(tag_Service) OR isnull(tag_Product) OR isnull(tag_Role) OR isnull(tag_Username) OR isnull(tag_GST)
| dedup instance_id 
| table index status type instance_id tag_Name tag_Environment tag_Service tag_Opco tag_Cartesis tag_Product tag_Role tag_Requester tag_Username tag_GST
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The problem is this source type does not contain any information around the user who is logged into the AWS console, and subsequently launched the instance. That is found using this querying &lt;CODE&gt;index=cloudtrail sourcetype=aws-cloudtrail&lt;/CODE&gt;, which has a object &lt;CODE&gt;userIdentity.arn&lt;/CODE&gt; which matches the person who launched the instance.&lt;/P&gt;

&lt;P&gt;So I know this is quite vague, but any is greatly appreciated&lt;/P&gt;

&lt;P&gt;Julian&lt;/P&gt;</description>
      <pubDate>Wed, 11 Feb 2015 17:28:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-use-fields-from-different-source-types-in-the-same-search/m-p/135896#M27985</guid>
      <dc:creator>julianglavey</dc:creator>
      <dc:date>2015-02-11T17:28:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to use fields from different source types in the same search?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-use-fields-from-different-source-types-in-the-same-search/m-p/135897#M27986</link>
      <description>&lt;P&gt;Can you correlate with time?&lt;/P&gt;</description>
      <pubDate>Wed, 11 Feb 2015 17:45:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-use-fields-from-different-source-types-in-the-same-search/m-p/135897#M27986</guid>
      <dc:creator>sanjay_shrestha</dc:creator>
      <dc:date>2015-02-11T17:45:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to use fields from different source types in the same search?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-use-fields-from-different-source-types-in-the-same-search/m-p/135898#M27987</link>
      <description>&lt;P&gt;Hi Sanjay,&lt;/P&gt;

&lt;P&gt;If I can I don't know how to.&lt;/P&gt;</description>
      <pubDate>Thu, 12 Feb 2015 09:27:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-use-fields-from-different-source-types-in-the-same-search/m-p/135898#M27987</guid>
      <dc:creator>julianglavey</dc:creator>
      <dc:date>2015-02-12T09:27:13Z</dc:date>
    </item>
  </channel>
</rss>

