<?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 Combining different searches into one search with different sources to produce one table view? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Combining-different-searches-into-one-search-with-different/m-p/538871#M152387</link>
    <description>&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;I wanted to request some assistance with the topic of combining different searches from the same index and same sourcetype but different sources into a table or report even.&lt;/P&gt;&lt;P&gt;I struggle with the concept of combining them.&lt;/P&gt;&lt;P&gt;I have researched joins, stats, charts etc. but I am trying to implement them and am getting errors for which I am missing a point making me unsure of how to combine effectively to get the results I need.&amp;nbsp;&lt;/P&gt;&lt;P&gt;So any guidance or information that may assist me to learn properly would be very helpful.&lt;/P&gt;&lt;P&gt;I have the following separate searches that give me the results I need:&lt;/P&gt;&lt;P&gt;====================================&lt;/P&gt;&lt;P&gt;Storage&lt;BR /&gt;index="SRV" sourcetype=WinHostMon source=disk DriveType=fixed TotalSpaceKB="*"&lt;BR /&gt;| eval TotalSpaceKB = round (TotalSpaceKB/100000000)&lt;BR /&gt;| stats sum(TotalSpaceKB) as "TotalSpace (GB)" by host&lt;/P&gt;&lt;P&gt;OS&lt;BR /&gt;index="SRV" sourcetype=WinHostMon source=operatingsystem os="*"&lt;BR /&gt;| dedup host&lt;BR /&gt;| table host os&lt;/P&gt;&lt;P&gt;CPU&lt;BR /&gt;index="SRV" sourcetype=WinHostMon source=processor NumberOfProcessors="*"&lt;BR /&gt;| dedup host&lt;BR /&gt;| table host NumberOfProcessors&lt;/P&gt;&lt;P&gt;Memory&lt;BR /&gt;index="SRV" sourcetype=WinHostMon source=operatingsystem TotalPhysicalMemoryKB="*"&lt;BR /&gt;| dedup host&lt;BR /&gt;| eval "TotalPhysicalMemory (GB)" = round (((TotalPhysicalMemoryKB)/1000000),1)&lt;BR /&gt;| table host "TotalPhysicalMemory (GB)"&lt;/P&gt;&lt;P&gt;=============================&lt;/P&gt;&lt;P&gt;My end goal is to provide a single table or report with the following columns&lt;/P&gt;&lt;P&gt;Host, OS, Number of Processors, total physical memory, total storage&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;Dan&lt;/P&gt;</description>
    <pubDate>Sat, 06 Feb 2021 18:59:03 GMT</pubDate>
    <dc:creator>Hudond</dc:creator>
    <dc:date>2021-02-06T18:59:03Z</dc:date>
    <item>
      <title>Combining different searches into one search with different sources to produce one table view?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Combining-different-searches-into-one-search-with-different/m-p/538871#M152387</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;I wanted to request some assistance with the topic of combining different searches from the same index and same sourcetype but different sources into a table or report even.&lt;/P&gt;&lt;P&gt;I struggle with the concept of combining them.&lt;/P&gt;&lt;P&gt;I have researched joins, stats, charts etc. but I am trying to implement them and am getting errors for which I am missing a point making me unsure of how to combine effectively to get the results I need.&amp;nbsp;&lt;/P&gt;&lt;P&gt;So any guidance or information that may assist me to learn properly would be very helpful.&lt;/P&gt;&lt;P&gt;I have the following separate searches that give me the results I need:&lt;/P&gt;&lt;P&gt;====================================&lt;/P&gt;&lt;P&gt;Storage&lt;BR /&gt;index="SRV" sourcetype=WinHostMon source=disk DriveType=fixed TotalSpaceKB="*"&lt;BR /&gt;| eval TotalSpaceKB = round (TotalSpaceKB/100000000)&lt;BR /&gt;| stats sum(TotalSpaceKB) as "TotalSpace (GB)" by host&lt;/P&gt;&lt;P&gt;OS&lt;BR /&gt;index="SRV" sourcetype=WinHostMon source=operatingsystem os="*"&lt;BR /&gt;| dedup host&lt;BR /&gt;| table host os&lt;/P&gt;&lt;P&gt;CPU&lt;BR /&gt;index="SRV" sourcetype=WinHostMon source=processor NumberOfProcessors="*"&lt;BR /&gt;| dedup host&lt;BR /&gt;| table host NumberOfProcessors&lt;/P&gt;&lt;P&gt;Memory&lt;BR /&gt;index="SRV" sourcetype=WinHostMon source=operatingsystem TotalPhysicalMemoryKB="*"&lt;BR /&gt;| dedup host&lt;BR /&gt;| eval "TotalPhysicalMemory (GB)" = round (((TotalPhysicalMemoryKB)/1000000),1)&lt;BR /&gt;| table host "TotalPhysicalMemory (GB)"&lt;/P&gt;&lt;P&gt;=============================&lt;/P&gt;&lt;P&gt;My end goal is to provide a single table or report with the following columns&lt;/P&gt;&lt;P&gt;Host, OS, Number of Processors, total physical memory, total storage&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;Dan&lt;/P&gt;</description>
      <pubDate>Sat, 06 Feb 2021 18:59:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Combining-different-searches-into-one-search-with-different/m-p/538871#M152387</guid>
      <dc:creator>Hudond</dc:creator>
      <dc:date>2021-02-06T18:59:03Z</dc:date>
    </item>
    <item>
      <title>Re: Combining different searches into one search with different sources to produce one table view?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Combining-different-searches-into-one-search-with-different/m-p/538877#M152389</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/164382"&gt;@Hudond&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;You don't need to run different searches because you can take data in one search something like this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index="SRV" sourcetype=WinHostMon 
| stats sum(TotalSpaceKB) as "TotalSpace (GB)" values(os) AS os values(NumberOfProcessors) AS NumberOfProcessors values("TotalPhysicalMemory (GB)") AS "TotalPhysicalMemory (GB)" by host
| eval TotalSpaceKB = round (TotalSpaceKB/100000000), "TotalPhysicalMemory (GB)" = round (((TotalPhysicalMemoryKB)/1000000),1)&lt;/LI-CODE&gt;&lt;P&gt;Storage CPU, memory and OS are static data , so I hint to schedule this search and put results in a lookup, in this way you'll have all the data quickly usable without rerun the search.&lt;/P&gt;&lt;P&gt;In addition: Splunk isn't a DB where data are separated, using Splunk you have to think in a different way!&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Sun, 07 Feb 2021 06:57:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Combining-different-searches-into-one-search-with-different/m-p/538877#M152389</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2021-02-07T06:57:18Z</dc:date>
    </item>
    <item>
      <title>Re: Combining different searches into one search with different sources to produce one table view?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Combining-different-searches-into-one-search-with-different/m-p/539295#M152532</link>
      <description>&lt;P&gt;Thank you&amp;nbsp;&lt;SPAN&gt;Giuseppe, that helped lead me in the right direction.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Feb 2021 13:21:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Combining-different-searches-into-one-search-with-different/m-p/539295#M152532</guid>
      <dc:creator>Hudond</dc:creator>
      <dc:date>2021-02-10T13:21:21Z</dc:date>
    </item>
    <item>
      <title>Re: Combining different searches into one search with different sources to produce one table view?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Combining-different-searches-into-one-search-with-different/m-p/539305#M152535</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/164382"&gt;@Hudond&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;good for you.&lt;/P&gt;&lt;P&gt;Ciao and happy splunking.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;&lt;P&gt;P.S.: Karma Points are appreciated &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Feb 2021 14:13:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Combining-different-searches-into-one-search-with-different/m-p/539305#M152535</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2021-02-10T14:13:13Z</dc:date>
    </item>
  </channel>
</rss>

