<?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: superimposed timeline chart comparing the latest and last week data in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/superimposed-timeline-chart-comparing-the-latest-and-last-week/m-p/550988#M156339</link>
    <description>&lt;P&gt;Timechart seems to try to be clever and determine the earliest searched time, despite any manipulation done to the _time field, so use bin and chart instead. However, bear in mind that the chart will start from the earliest event time (adjusted) and not necessarily from the earliest time searched.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=_internal earliest=-2h@m latest=@m
| eval ReportKey="Today"
| append
    [search index=_internal earliest=-2h-7d@m latest=-7d@m
    | eval ReportKey="Last week"
    | eval _time=relative_time(_time,"+7d")]
| bin span=5m _time
| chart count by _time ReportKey&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sun, 09 May 2021 09:50:18 GMT</pubDate>
    <dc:creator>ITWhisperer</dc:creator>
    <dc:date>2021-05-09T09:50:18Z</dc:date>
    <item>
      <title>superimposed timeline chart comparing the latest and last week data</title>
      <link>https://community.splunk.com/t5/Splunk-Search/superimposed-timeline-chart-comparing-the-latest-and-last-week/m-p/550984#M156337</link>
      <description>&lt;P&gt;For the below query, searching for the values of 2nd occurence of earliest and latest events so that the timechart would return superimposed data from current time minus 2hrs and last week data for same time frame(2hrs).&lt;/P&gt;&lt;P&gt;index=sample sourcetype=hello "*abc*" earliest=-120m@m latest=now | multikv | eval ReportKey="today" | append [ search index=sample sourcetype=hello "*abc*" earliest=... latest=... | multikv | eval ReportKey="lastweek" | eval _time=_time+86400] | timechart span=5m count by ReportKey usenull=false useother=false&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;</description>
      <pubDate>Sun, 09 May 2021 08:13:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/superimposed-timeline-chart-comparing-the-latest-and-last-week/m-p/550984#M156337</guid>
      <dc:creator>prajwal_94</dc:creator>
      <dc:date>2021-05-09T08:13:37Z</dc:date>
    </item>
    <item>
      <title>Re: superimposed timeline chart comparing the latest and last week data</title>
      <link>https://community.splunk.com/t5/Splunk-Search/superimposed-timeline-chart-comparing-the-latest-and-last-week/m-p/550988#M156339</link>
      <description>&lt;P&gt;Timechart seems to try to be clever and determine the earliest searched time, despite any manipulation done to the _time field, so use bin and chart instead. However, bear in mind that the chart will start from the earliest event time (adjusted) and not necessarily from the earliest time searched.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=_internal earliest=-2h@m latest=@m
| eval ReportKey="Today"
| append
    [search index=_internal earliest=-2h-7d@m latest=-7d@m
    | eval ReportKey="Last week"
    | eval _time=relative_time(_time,"+7d")]
| bin span=5m _time
| chart count by _time ReportKey&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 09 May 2021 09:50:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/superimposed-timeline-chart-comparing-the-latest-and-last-week/m-p/550988#M156339</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2021-05-09T09:50:18Z</dc:date>
    </item>
    <item>
      <title>Re: superimposed timeline chart comparing the latest and last week data</title>
      <link>https://community.splunk.com/t5/Splunk-Search/superimposed-timeline-chart-comparing-the-latest-and-last-week/m-p/550990#M156340</link>
      <description>&lt;P&gt;Thank you so much&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/225168"&gt;@ITWhisperer&lt;/a&gt;&amp;nbsp;, it worked!&lt;/P&gt;</description>
      <pubDate>Sun, 09 May 2021 11:00:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/superimposed-timeline-chart-comparing-the-latest-and-last-week/m-p/550990#M156340</guid>
      <dc:creator>prajwal_94</dc:creator>
      <dc:date>2021-05-09T11:00:09Z</dc:date>
    </item>
  </channel>
</rss>

