<?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 plot historical data and current log data together in a timechart? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-plot-historical-data-and-current-log-data-together-in/m-p/427559#M122421</link>
    <description>&lt;P&gt;I just edited my answer to include a much simpler search using "OR".&lt;/P&gt;</description>
    <pubDate>Mon, 10 Dec 2018 21:02:13 GMT</pubDate>
    <dc:creator>whrg</dc:creator>
    <dc:date>2018-12-10T21:02:13Z</dc:date>
    <item>
      <title>How do you plot historical data and current log data together in a timechart?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-plot-historical-data-and-current-log-data-together-in/m-p/427557#M122419</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;

&lt;P&gt;I have loaded the last 3 years of historical data from a CSV file to Splunk — so source is "XYZ.csv". On the other hand, the recent log data is tracking every 30 mins through a REST API — thus its source is ""rest://XYZ". &lt;/P&gt;

&lt;P&gt;Can you please advise how I can plot a timechart with both data sets together?&lt;/P&gt;</description>
      <pubDate>Mon, 10 Dec 2018 19:57:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-you-plot-historical-data-and-current-log-data-together-in/m-p/427557#M122419</guid>
      <dc:creator>arpitadu</dc:creator>
      <dc:date>2018-12-10T19:57:40Z</dc:date>
    </item>
    <item>
      <title>Re: How do you plot historical data and current log data together in a timechart?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-plot-historical-data-and-current-log-data-together-in/m-p/427558#M122420</link>
      <description>&lt;P&gt;Do both log sources (CSV and REST API) have the same log format, i.e. do they have the same fields available?&lt;/P&gt;

&lt;P&gt;If so, I suggest you run two searches to combine all events and then run the timechart command:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=... sourcetype="XYZ.csv"
| append [search index=... sourcetype="rest://XYZ"]
| timechart ...
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;EDIT: I just thought of something much simpler:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=... sourcetype="XYZ.csv" OR sourcetype="rest://XYZ"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 10 Dec 2018 20:35:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-you-plot-historical-data-and-current-log-data-together-in/m-p/427558#M122420</guid>
      <dc:creator>whrg</dc:creator>
      <dc:date>2018-12-10T20:35:26Z</dc:date>
    </item>
    <item>
      <title>Re: How do you plot historical data and current log data together in a timechart?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-plot-historical-data-and-current-log-data-together-in/m-p/427559#M122421</link>
      <description>&lt;P&gt;I just edited my answer to include a much simpler search using "OR".&lt;/P&gt;</description>
      <pubDate>Mon, 10 Dec 2018 21:02:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-you-plot-historical-data-and-current-log-data-together-in/m-p/427559#M122421</guid>
      <dc:creator>whrg</dc:creator>
      <dc:date>2018-12-10T21:02:13Z</dc:date>
    </item>
  </channel>
</rss>

