<?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 do you create a table that matches information from 2 different source types? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-do-you-create-a-table-that-matches-information-from-2/m-p/403893#M71727</link>
    <description>&lt;P&gt;Thank you mayurr98 ! This is exactly what I need.&lt;/P&gt;

&lt;P&gt;This multi sourcetypes was something confused for me, but know I can understand it much better.&lt;/P&gt;

&lt;P&gt;Thanks again.&lt;/P&gt;</description>
    <pubDate>Mon, 14 Jan 2019 15:08:36 GMT</pubDate>
    <dc:creator>akelbr</dc:creator>
    <dc:date>2019-01-14T15:08:36Z</dc:date>
    <item>
      <title>How do you create a table that matches information from 2 different source types?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-you-create-a-table-that-matches-information-from-2/m-p/403890#M71724</link>
      <description>&lt;P&gt;Community, need some help to work with 2 different source types .&lt;/P&gt;

&lt;P&gt;I'm trying to run a search where I need to match information from 2 sources in 1 table.&lt;/P&gt;

&lt;P&gt;What I'm trying to do is:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=uberagent sourcetype=uberAgent:OnOffTransition:StandbyDetail2 
| search host=* 
| where TargetStateDisplayName = "Hibernate" 
| join host 
    [ search index=uberagent sourcetype=uberAgent:System:SystemPerformanceSummary2 
    | stats avg(CPUUsagePercent) as "%CPU Usage" 
    | stats avg(IOPercentDiskTime) as "%IO Time" 
    | stats avg(RAMUsagePercent) as "%RAM Usage" 
    |return "%CPU Usage", "%IO Time", ] 
| stats count(TargetStateDisplayName) as "Total Events" by host 
| rename TargetStateDisplayName as "Machine Event" 
| eval "Machine Event" = "Hibernate" 
| rename host as "Machine Name" 
| table
    "Machine Name"
    "Total Events"
    "%CPU Usage"
    "%RAM Usage"
    "%IO Time" 
| sort - "Total Events" 
| head 15
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Note that I already tried to use sourcetype=A OR sourcetype=B, already tried to use the &lt;CODE&gt;|Append&lt;/CODE&gt; and no success on this.&lt;/P&gt;</description>
      <pubDate>Mon, 14 Jan 2019 12:17:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-you-create-a-table-that-matches-information-from-2/m-p/403890#M71724</guid>
      <dc:creator>akelbr</dc:creator>
      <dc:date>2019-01-14T12:17:06Z</dc:date>
    </item>
    <item>
      <title>Re: How do you create a table that matches information from 2 different source types?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-you-create-a-table-that-matches-information-from-2/m-p/403891#M71725</link>
      <description>&lt;P&gt;Your query seems to be very wrong. Can you try this :&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=uberagent (sourcetype=uberAgent:OnOffTransition:StandbyDetail2 host=* TargetStateDisplayName = "Hibernate") OR sourcetype=uberAgent:System:SystemPerformanceSummary2 
| stats count(TargetStateDisplayName) as "Total Events" avg(CPUUsagePercent) as "%CPU Usage" avg(IOPercentDiskTime) as "%IO Time" avg(RAMUsagePercent) as "%RAM Usage" by host 
| rename host as "Machine Name" 
| table "Machine Name" "Total Events" "%CPU Usage" "%RAM Usage" "%IO Time" 
| sort 15 - "Total Events"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;If this does not work then share sample event from both sourcetypes and let me know the output you want to achieve.&lt;/P&gt;</description>
      <pubDate>Mon, 14 Jan 2019 14:16:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-you-create-a-table-that-matches-information-from-2/m-p/403891#M71725</guid>
      <dc:creator>mayurr98</dc:creator>
      <dc:date>2019-01-14T14:16:39Z</dc:date>
    </item>
    <item>
      <title>Re: How do you create a table that matches information from 2 different source types?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-you-create-a-table-that-matches-information-from-2/m-p/403892#M71726</link>
      <description>&lt;P&gt;Thank you mayurr98! That is exactly what I need.&lt;/P&gt;

&lt;P&gt;This multi sourcetypes was a little confused to me but now things are much clear.&lt;/P&gt;</description>
      <pubDate>Mon, 14 Jan 2019 15:06:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-you-create-a-table-that-matches-information-from-2/m-p/403892#M71726</guid>
      <dc:creator>akelbr</dc:creator>
      <dc:date>2019-01-14T15:06:54Z</dc:date>
    </item>
    <item>
      <title>Re: How do you create a table that matches information from 2 different source types?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-you-create-a-table-that-matches-information-from-2/m-p/403893#M71727</link>
      <description>&lt;P&gt;Thank you mayurr98 ! This is exactly what I need.&lt;/P&gt;

&lt;P&gt;This multi sourcetypes was something confused for me, but know I can understand it much better.&lt;/P&gt;

&lt;P&gt;Thanks again.&lt;/P&gt;</description>
      <pubDate>Mon, 14 Jan 2019 15:08:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-you-create-a-table-that-matches-information-from-2/m-p/403893#M71727</guid>
      <dc:creator>akelbr</dc:creator>
      <dc:date>2019-01-14T15:08:36Z</dc:date>
    </item>
  </channel>
</rss>

