<?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: Combine historical and realtime data from different data types in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Combine-historical-and-realtime-data-from-different-data-types/m-p/525368#M148242</link>
    <description>&lt;P&gt;This worked for me:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index="test" (source = Used_Sotrage_KPI objid = 18392) OR (source="historicdata.csv") | eval usedStorage = mvappend(lastvalue_raw, 'PhysUsedCapacity_RAW')  | timechart span=1d max(usedStorage)&lt;/LI-CODE&gt;</description>
    <pubDate>Mon, 19 Oct 2020 13:58:59 GMT</pubDate>
    <dc:creator>SplunkHead10</dc:creator>
    <dc:date>2020-10-19T13:58:59Z</dc:date>
    <item>
      <title>Combine historical and realtime data from different data types</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Combine-historical-and-realtime-data-from-different-data-types/m-p/525339#M148230</link>
      <description>&lt;P&gt;Hello community,&lt;/P&gt;&lt;P&gt;I used the search to find a possible solution for my problem but without success.&amp;nbsp;&lt;BR /&gt;My problem looks the following:&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;1. I have historical data from a storage sytem which contains the date and the amount used storage (&lt;STRONG&gt;column name historical_gb&lt;/STRONG&gt;). This data is in &lt;STRONG&gt;.csv&lt;/STRONG&gt; and therefore easy to read.&amp;nbsp;&lt;BR /&gt;2. In addition I get the realtime amount of used storage (&lt;STRONG&gt;live_gb&lt;/STRONG&gt;) via a REST API. This data is in &lt;STRONG&gt;.json&lt;/STRONG&gt;.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;My question would be:&lt;BR /&gt;&lt;STRONG&gt;How can I combine those two data sources?&amp;nbsp;&lt;/STRONG&gt;&lt;BR /&gt;The final search should look like:&lt;/P&gt;&lt;TABLE border="1" width="100%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="33.333333333333336%" height="25px"&gt;date&lt;/TD&gt;&lt;TD width="33.333333333333336%" height="25px"&gt;usedStorage&lt;/TD&gt;&lt;TD width="33.333333333333336%" height="25px"&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="33.333333333333336%" height="25px"&gt;01.01.2020&lt;/TD&gt;&lt;TD width="33.333333333333336%" height="25px"&gt;110 GB&lt;/TD&gt;&lt;TD width="33.333333333333336%" height="25px"&gt;source: historical_gb&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="33.333333333333336%" height="25px"&gt;19.10.2020&lt;/TD&gt;&lt;TD width="33.333333333333336%" height="25px"&gt;125 GB&lt;/TD&gt;&lt;TD width="33.333333333333336%" height="25px"&gt;source:&amp;nbsp;live_gb&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I added the last column just for better understanding. The column is not relevant for the actual search.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;So far I have:&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index="test" (source = Used_Sotrage_KPI objid = 18392 ) OR (source="historicdata.csv") | rename lastvalue_raw as usedStorage | rename "PhysUsedCapacity_Raw" as usedStorage | timechart span=1d max(usedStorage)&lt;/LI-CODE&gt;&lt;P&gt;lastvalue_raw = realtime data (source: Used_Storage_KPI)&lt;BR /&gt;PhysUsedCapacity_Raw = historical data (source: histrocialdata.csv)&lt;/P&gt;&lt;P&gt;But the second rename overwrites the first rename statement.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Thanks for your help!&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Oct 2020 12:24:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Combine-historical-and-realtime-data-from-different-data-types/m-p/525339#M148230</guid>
      <dc:creator>SplunkHead10</dc:creator>
      <dc:date>2020-10-19T12:24:00Z</dc:date>
    </item>
    <item>
      <title>Re: Combine historical and realtime data from different data types</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Combine-historical-and-realtime-data-from-different-data-types/m-p/525368#M148242</link>
      <description>&lt;P&gt;This worked for me:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index="test" (source = Used_Sotrage_KPI objid = 18392) OR (source="historicdata.csv") | eval usedStorage = mvappend(lastvalue_raw, 'PhysUsedCapacity_RAW')  | timechart span=1d max(usedStorage)&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 19 Oct 2020 13:58:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Combine-historical-and-realtime-data-from-different-data-types/m-p/525368#M148242</guid>
      <dc:creator>SplunkHead10</dc:creator>
      <dc:date>2020-10-19T13:58:59Z</dc:date>
    </item>
  </channel>
</rss>

