<?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: Timechart and Timewrap in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Timechart-and-Timewrap/m-p/704457#M238707</link>
    <description>&lt;P&gt;The reason why it's naming the series 2023 is that the current month is now November 2024, so it's wrapping by 12 months, so the first series is Dec 2023-&amp;gt;Nov-2024 - even though you are only searching for data in the current year, the timewrap command will work out the series name based on your timewrap span of &lt;STRONG&gt;1y&lt;/STRONG&gt;.&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you made the search with&amp;nbsp;&lt;STRONG&gt;earliest=@y latest=+y@y&lt;/STRONG&gt;, which is searching from 2024-01-01 to 2024-12-31 it will label the series correctly as 2024.&lt;/P&gt;&lt;P&gt;So, it's just a function of timewrap. You can see this more clearly if you set your time_format to include the month, i.e.&amp;nbsp;time_format=%Y-%m - then you will get&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="bowesmana_0-1731624965075.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/33484i43D99CD456F5DB43/image-size/medium?v=v2&amp;amp;px=400" role="button" title="bowesmana_0-1731624965075.png" alt="bowesmana_0-1731624965075.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;and if you change your series=exact to relative, you will see it's 'latest_year', which means a 12 month period.&lt;/P&gt;&lt;P&gt;Hope this helps&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 14 Nov 2024 22:57:43 GMT</pubDate>
    <dc:creator>bowesmana</dc:creator>
    <dc:date>2024-11-14T22:57:43Z</dc:date>
    <item>
      <title>Timechart and Timewrap</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Timechart-and-Timewrap/m-p/704366#M238683</link>
      <description>&lt;P&gt;I am on Splunk 8.2.12.&lt;/P&gt;&lt;P&gt;I am trying to get a distinct count of incidents that have happened in each month, year to date. I'd like to compare that to the year prior.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I feel like this should be pretty easy, but my results aren't showing the current year in comparison to the previous year.&lt;/P&gt;&lt;P&gt;This shows the current year data (2024)&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;(earliest=-1@y@y AND latest=now())&lt;BR /&gt;| eval date_month=strftime(_time, "%mon")&lt;BR /&gt;| eval date_year = strftime(_time, "%Y")&lt;BR /&gt;| timechart span=1mon dc(RMI_MastIncNumb) as "# of Incidents"&lt;/P&gt;&lt;P&gt;When I add&amp;nbsp;| timewrap 1year series=exact time_format=%Y it ends up just showing me 2023&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="scottmkirkland_0-1731545180061.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/33469i309F39A4FAB03443/image-size/medium?v=v2&amp;amp;px=400" role="button" title="scottmkirkland_0-1731545180061.png" alt="scottmkirkland_0-1731545180061.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Nov 2024 00:46:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Timechart-and-Timewrap/m-p/704366#M238683</guid>
      <dc:creator>scottmkirkland</dc:creator>
      <dc:date>2024-11-14T00:46:53Z</dc:date>
    </item>
    <item>
      <title>Re: Timechart and Timewrap</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Timechart-and-Timewrap/m-p/704371#M238684</link>
      <description>&lt;P&gt;Your earliest= statement is wrong, it should be earliest=-1y@y&lt;/P&gt;&lt;P&gt;You have an extra&amp;nbsp;@ sign (&lt;A href="mailto:-1@y@y" target="_blank"&gt;-1@y@y&lt;/A&gt;)&lt;/P&gt;</description>
      <pubDate>Thu, 14 Nov 2024 03:47:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Timechart-and-Timewrap/m-p/704371#M238684</guid>
      <dc:creator>bowesmana</dc:creator>
      <dc:date>2024-11-14T03:47:27Z</dc:date>
    </item>
    <item>
      <title>Re: Timechart and Timewrap</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Timechart-and-Timewrap/m-p/704436#M238703</link>
      <description>&lt;P&gt;Thank you&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/6367"&gt;@bowesmana&lt;/a&gt;&amp;nbsp;.&lt;/P&gt;
&lt;P&gt;With the Time Selector set to Year to date, and not using the earliest command | timechart span=1mon count Results in 2024 as expected.&lt;/P&gt;
&lt;P class="lia-align-left"&gt;Then using the following, I end up with a timeline of 2024, but the data claiming it's 2023. But is for sure 2024 data, labeled as 2023.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;| timechart span=1mon count
| timewrap 1y series=exact time_format=%Y&lt;/LI-CODE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="scottmkirkland_0-1731605640119.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/33480iE3AAB6F877613C86/image-size/medium?v=v2&amp;amp;px=400" role="button" title="scottmkirkland_0-1731605640119.png" alt="scottmkirkland_0-1731605640119.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Nov 2024 18:53:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Timechart-and-Timewrap/m-p/704436#M238703</guid>
      <dc:creator>scottmkirkland</dc:creator>
      <dc:date>2024-11-14T18:53:48Z</dc:date>
    </item>
    <item>
      <title>Re: Timechart and Timewrap</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Timechart-and-Timewrap/m-p/704457#M238707</link>
      <description>&lt;P&gt;The reason why it's naming the series 2023 is that the current month is now November 2024, so it's wrapping by 12 months, so the first series is Dec 2023-&amp;gt;Nov-2024 - even though you are only searching for data in the current year, the timewrap command will work out the series name based on your timewrap span of &lt;STRONG&gt;1y&lt;/STRONG&gt;.&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you made the search with&amp;nbsp;&lt;STRONG&gt;earliest=@y latest=+y@y&lt;/STRONG&gt;, which is searching from 2024-01-01 to 2024-12-31 it will label the series correctly as 2024.&lt;/P&gt;&lt;P&gt;So, it's just a function of timewrap. You can see this more clearly if you set your time_format to include the month, i.e.&amp;nbsp;time_format=%Y-%m - then you will get&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="bowesmana_0-1731624965075.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/33484i43D99CD456F5DB43/image-size/medium?v=v2&amp;amp;px=400" role="button" title="bowesmana_0-1731624965075.png" alt="bowesmana_0-1731624965075.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;and if you change your series=exact to relative, you will see it's 'latest_year', which means a 12 month period.&lt;/P&gt;&lt;P&gt;Hope this helps&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Nov 2024 22:57:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Timechart-and-Timewrap/m-p/704457#M238707</guid>
      <dc:creator>bowesmana</dc:creator>
      <dc:date>2024-11-14T22:57:43Z</dc:date>
    </item>
  </channel>
</rss>

