<?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 agregate data from different sourcetypes? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-agregate-data-from-different-sourcetypes/m-p/319000#M59609</link>
    <description>&lt;P&gt;HI&lt;/P&gt;

&lt;P&gt;sorry the exact request is :&lt;BR /&gt;
     index="wineventlog" sourcetype="wineventlog:&lt;EM&gt;" SourceName="&lt;/EM&gt;" Type="Critique" OR Type="Avertissement" | dedup host  | stats count  | rename count AS "Number of machines" | eventstats sum(count) as Total | eval percent=round((count/Total)*100,1) | eval host=host."(count: ".count.", percent: ".percent.")" | fields - count&lt;/P&gt;</description>
    <pubDate>Thu, 12 Apr 2018 03:20:42 GMT</pubDate>
    <dc:creator>jip31</dc:creator>
    <dc:date>2018-04-12T03:20:42Z</dc:date>
    <item>
      <title>How to agregate data from different sourcetypes?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-agregate-data-from-different-sourcetypes/m-p/318993#M59602</link>
      <description>&lt;P&gt;hello&lt;/P&gt;

&lt;P&gt;I use the request below for retrieving some information from the Windows event viewer but in my dashboard, I need to aggregate other information from another sourcetype.&lt;BR /&gt;
This sourcetype comes from another sourcetype ([WinHostMon://computer]] or from WMI.conf ([WMI:Computer])&lt;BR /&gt;
My question is. how to aggregate data in my SPL command for these 2 cases?&lt;BR /&gt;
Thanks&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index="wineventlog" sourcetype="wineventlog:*" SourceName="*" Type="Critique" OR Type="Avertissement" 
| dedup host  
| stats count  
| rename count AS "Number of machines" 
| eventstats sum(count) as Total 
| eval percent=round((count/Total)*100,1) 
| eval host=host."(count: ".count.", percent: ".percent.")" 
| fields - count Total

index="wineventlog" sourcetype="wineventlog:*" SourceName="*" Type="Critique" OR Type="Avertissement" 
| dedup host  
| stats count  
| rename count AS "Number of machines" 
| eventstats sum(count) as Total 
| eval percent=round((count/Total)*100,1) 
| eval host=host."(count: ".count.", percent: ".percent.")" 
| fields - count Total

index="wineventlog" sourcetype="wineventlog:*" SourceName="*" Type="Critique" OR Type="Avertissement" 
| dedup host  
| stats count  
| rename count AS "Number of machines" 
| eventstats sum(count) as Total 
| eval percent=round((count/Total)*100,1) 
| eval host=host."(count: ".count.", percent: ".percent.")" 
| fields - count Total
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;HR /&gt;

&lt;P&gt;We formatted your code so it was easier to see the three queries.&lt;/P&gt;</description>
      <pubDate>Tue, 10 Apr 2018 13:04:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-agregate-data-from-different-sourcetypes/m-p/318993#M59602</guid>
      <dc:creator>jip31jip31</dc:creator>
      <dc:date>2018-04-10T13:04:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to agregate data from different sourcetypes?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-agregate-data-from-different-sourcetypes/m-p/318994#M59603</link>
      <description>&lt;P&gt;Is there any common field present in all sourcetype?&lt;/P&gt;</description>
      <pubDate>Tue, 10 Apr 2018 13:33:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-agregate-data-from-different-sourcetypes/m-p/318994#M59603</guid>
      <dc:creator>p_gurav</dc:creator>
      <dc:date>2018-04-10T13:33:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to agregate data from different sourcetypes?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-agregate-data-from-different-sourcetypes/m-p/318995#M59604</link>
      <description>&lt;P&gt;Did your query get mangled by the forum?  It looks like it might be two queries stuck together.&lt;/P&gt;

&lt;P&gt;BTW, for better performance, use &lt;CODE&gt;stats dc(host)&lt;/CODE&gt; instead of &lt;CODE&gt;dedup host | stats count&lt;/CODE&gt;.&lt;/P&gt;</description>
      <pubDate>Tue, 10 Apr 2018 13:47:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-agregate-data-from-different-sourcetypes/m-p/318995#M59604</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2018-04-10T13:47:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to agregate data from different sourcetypes?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-agregate-data-from-different-sourcetypes/m-p/318996#M59605</link>
      <description>&lt;P&gt;ok thanks&lt;/P&gt;</description>
      <pubDate>Tue, 10 Apr 2018 16:19:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-agregate-data-from-different-sourcetypes/m-p/318996#M59605</guid>
      <dc:creator>jip31</dc:creator>
      <dc:date>2018-04-10T16:19:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to agregate data from different sourcetypes?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-agregate-data-from-different-sourcetypes/m-p/318997#M59606</link>
      <description>&lt;P&gt;no sorry...&lt;/P&gt;</description>
      <pubDate>Tue, 10 Apr 2018 16:21:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-agregate-data-from-different-sourcetypes/m-p/318997#M59606</guid>
      <dc:creator>jip31</dc:creator>
      <dc:date>2018-04-10T16:21:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to agregate data from different sourcetypes?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-agregate-data-from-different-sourcetypes/m-p/318998#M59607</link>
      <description>&lt;P&gt;NOBODY FOR HELPING ME??&lt;/P&gt;</description>
      <pubDate>Wed, 11 Apr 2018 05:20:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-agregate-data-from-different-sourcetypes/m-p/318998#M59607</guid>
      <dc:creator>jip31jip31</dc:creator>
      <dc:date>2018-04-11T05:20:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to agregate data from different sourcetypes?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-agregate-data-from-different-sourcetypes/m-p/318999#M59608</link>
      <description>&lt;P&gt;Your query is difficult to understand.  It looks like it might be two or three searches run together.  Can you please edit the question?&lt;/P&gt;</description>
      <pubDate>Wed, 11 Apr 2018 13:41:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-agregate-data-from-different-sourcetypes/m-p/318999#M59608</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2018-04-11T13:41:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to agregate data from different sourcetypes?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-agregate-data-from-different-sourcetypes/m-p/319000#M59609</link>
      <description>&lt;P&gt;HI&lt;/P&gt;

&lt;P&gt;sorry the exact request is :&lt;BR /&gt;
     index="wineventlog" sourcetype="wineventlog:&lt;EM&gt;" SourceName="&lt;/EM&gt;" Type="Critique" OR Type="Avertissement" | dedup host  | stats count  | rename count AS "Number of machines" | eventstats sum(count) as Total | eval percent=round((count/Total)*100,1) | eval host=host."(count: ".count.", percent: ".percent.")" | fields - count&lt;/P&gt;</description>
      <pubDate>Thu, 12 Apr 2018 03:20:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-agregate-data-from-different-sourcetypes/m-p/319000#M59609</guid>
      <dc:creator>jip31</dc:creator>
      <dc:date>2018-04-12T03:20:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to agregate data from different sourcetypes?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-agregate-data-from-different-sourcetypes/m-p/319001#M59610</link>
      <description>&lt;P&gt;We formatted your code so it was easier to see the three queries.  However, they were identical.  Please update to add the second query.&lt;/P&gt;</description>
      <pubDate>Thu, 12 Apr 2018 04:12:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-agregate-data-from-different-sourcetypes/m-p/319001#M59610</guid>
      <dc:creator>DalJeanis</dc:creator>
      <dc:date>2018-04-12T04:12:41Z</dc:date>
    </item>
  </channel>
</rss>

