<?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: Discard results of one month / Time range adjusted? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Discard-results-of-one-month-Time-range-adjusted/m-p/566207#M197326</link>
    <description>&lt;P&gt;Simply&lt;/P&gt;&lt;P&gt;earliest=-1y@y latest=@m | [...] |timewrap year&lt;/P&gt;&lt;P&gt;Won't work? (Writing on my phone, don't have a splunk instance nearby to check)&lt;/P&gt;</description>
    <pubDate>Tue, 07 Sep 2021 19:57:54 GMT</pubDate>
    <dc:creator>PickleRick</dc:creator>
    <dc:date>2021-09-07T19:57:54Z</dc:date>
    <item>
      <title>Discard results of one month / Time range adjusted?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Discard-results-of-one-month-Time-range-adjusted/m-p/566148#M197293</link>
      <description>&lt;P&gt;Hi all!&lt;/P&gt;&lt;P&gt;I would like to have only the results in orange and red until August. I don't want to show the September results, however since I am doing this query in September, it automatically appears September. I think the problem is the time range, but I don't know how to fix this. Help please!&lt;/P&gt;&lt;P&gt;This is my query:&lt;/P&gt;&lt;P&gt;index=events *....*&lt;BR /&gt;earliest=-1y@y latest=+1y@y&lt;BR /&gt;| timechart span=1mon count by *...*&lt;BR /&gt;| timewrap y&lt;/P&gt;&lt;P&gt;This is the column chart that i'm getting:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Captura de ecrã 2021-09-07, às 15.00.09.png" style="width: 999px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/15889iAF28F7628A944950/image-size/large?v=v2&amp;amp;px=999" role="button" title="Captura de ecrã 2021-09-07, às 15.00.09.png" alt="Captura de ecrã 2021-09-07, às 15.00.09.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Legend is:&lt;/P&gt;&lt;P&gt;Blue and green - results from 2020&lt;/P&gt;&lt;P&gt;Orange and red - results from 2021&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks a lot!&lt;/P&gt;</description>
      <pubDate>Tue, 07 Sep 2021 14:08:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Discard-results-of-one-month-Time-range-adjusted/m-p/566148#M197293</guid>
      <dc:creator>anac</dc:creator>
      <dc:date>2021-09-07T14:08:09Z</dc:date>
    </item>
    <item>
      <title>Re: Discard results of one month / Time range adjusted?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Discard-results-of-one-month-Time-range-adjusted/m-p/566151#M197295</link>
      <description>&lt;P&gt;Have you tried setting &lt;FONT face="courier new,courier"&gt;latest&lt;/FONT&gt; to the beginning of the current month?&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=events *....* earliest=-1y@y latest=@mon
| timechart span=1mon count by *...*
| timewrap y&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Sep 2021 14:30:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Discard-results-of-one-month-Time-range-adjusted/m-p/566151#M197295</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2021-09-07T14:30:39Z</dc:date>
    </item>
    <item>
      <title>Re: Discard results of one month / Time range adjusted?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Discard-results-of-one-month-Time-range-adjusted/m-p/566163#M197301</link>
      <description>&lt;P&gt;Hi!!&lt;/P&gt;&lt;P&gt;Thank you, but it doesn't.&amp;nbsp;&lt;BR /&gt;Please see screenshots of column chart and table below. It is missing information (&amp;amp; months) from 2020.&lt;BR /&gt;Also, Legend remains the same. It is weird that the results from 2020 (blue and green) stop.&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Captura de ecrã 2021-09-07, às 15.38.20.png" style="width: 999px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/15893i269F98A588045900/image-size/large?v=v2&amp;amp;px=999" role="button" title="Captura de ecrã 2021-09-07, às 15.38.20.png" alt="Captura de ecrã 2021-09-07, às 15.38.20.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Captura de ecrã 2021-09-07, às 15.38.30.png" style="width: 999px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/15892i73F642781D332AFD/image-size/large?v=v2&amp;amp;px=999" role="button" title="Captura de ecrã 2021-09-07, às 15.38.30.png" alt="Captura de ecrã 2021-09-07, às 15.38.30.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Sep 2021 14:43:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Discard-results-of-one-month-Time-range-adjusted/m-p/566163#M197301</guid>
      <dc:creator>anac</dc:creator>
      <dc:date>2021-09-07T14:43:03Z</dc:date>
    </item>
    <item>
      <title>Re: Discard results of one month / Time range adjusted?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Discard-results-of-one-month-Time-range-adjusted/m-p/566164#M197302</link>
      <description>&lt;P&gt;And I would like to keep the column chart with the months in order - starting in January and ending in December. Only the columns and colors would indicate the year.&lt;/P&gt;</description>
      <pubDate>Tue, 07 Sep 2021 14:44:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Discard-results-of-one-month-Time-range-adjusted/m-p/566164#M197302</guid>
      <dc:creator>anac</dc:creator>
      <dc:date>2021-09-07T14:44:39Z</dc:date>
    </item>
    <item>
      <title>Re: Discard results of one month / Time range adjusted?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Discard-results-of-one-month-Time-range-adjusted/m-p/566172#M197308</link>
      <description>&lt;LI-CODE lang="markup"&gt;index=events *....*
earliest=-1y@y latest=+1y@y
| timechart span=1mon count by *...*
| where relative_time(now(),"@mon")&amp;gt;_time
| timewrap y&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 07 Sep 2021 15:11:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Discard-results-of-one-month-Time-range-adjusted/m-p/566172#M197308</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2021-09-07T15:11:12Z</dc:date>
    </item>
    <item>
      <title>Re: Discard results of one month / Time range adjusted?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Discard-results-of-one-month-Time-range-adjusted/m-p/566173#M197309</link>
      <description>&lt;P&gt;Thank you so much! That solved my problem!&lt;/P&gt;</description>
      <pubDate>Tue, 07 Sep 2021 15:17:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Discard-results-of-one-month-Time-range-adjusted/m-p/566173#M197309</guid>
      <dc:creator>anac</dc:creator>
      <dc:date>2021-09-07T15:17:55Z</dc:date>
    </item>
    <item>
      <title>Re: Discard results of one month / Time range adjusted?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Discard-results-of-one-month-Time-range-adjusted/m-p/566207#M197326</link>
      <description>&lt;P&gt;Simply&lt;/P&gt;&lt;P&gt;earliest=-1y@y latest=@m | [...] |timewrap year&lt;/P&gt;&lt;P&gt;Won't work? (Writing on my phone, don't have a splunk instance nearby to check)&lt;/P&gt;</description>
      <pubDate>Tue, 07 Sep 2021 19:57:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Discard-results-of-one-month-Time-range-adjusted/m-p/566207#M197326</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2021-09-07T19:57:54Z</dc:date>
    </item>
    <item>
      <title>Re: Discard results of one month / Time range adjusted?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Discard-results-of-one-month-Time-range-adjusted/m-p/566209#M197327</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/231884"&gt;@PickleRick&lt;/a&gt;&amp;nbsp;This doesn't fit with the OP requirement which is to start the chart in January and end in December&lt;/P&gt;</description>
      <pubDate>Tue, 07 Sep 2021 20:06:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Discard-results-of-one-month-Time-range-adjusted/m-p/566209#M197327</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2021-09-07T20:06:57Z</dc:date>
    </item>
    <item>
      <title>Re: Discard results of one month / Time range adjusted?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Discard-results-of-one-month-Time-range-adjusted/m-p/566215#M197330</link>
      <description>&lt;P&gt;Won't timewrap with a year period take care of it? Just asking, as I wrote I don't have a splunk installation at hand to check it. (I'm sitting in a dentist waiting room with my wife &lt;span class="lia-unicode-emoji" title=":grinning_squinting_face:"&gt;😆&lt;/span&gt;)&lt;/P&gt;</description>
      <pubDate>Tue, 07 Sep 2021 21:04:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Discard-results-of-one-month-Time-range-adjusted/m-p/566215#M197330</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2021-09-07T21:04:15Z</dc:date>
    </item>
    <item>
      <title>Re: Discard results of one month / Time range adjusted?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Discard-results-of-one-month-Time-range-adjusted/m-p/566222#M197333</link>
      <description>&lt;P&gt;The issue isn't with timewrap, it is with timechart - timechart will generate values for _time from earliest until latest, so you need to set latest to be the end of the year because the rhs of the chart is based on latest i.e. December, and everything works backwards from there.&lt;/P&gt;</description>
      <pubDate>Tue, 07 Sep 2021 22:20:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Discard-results-of-one-month-Time-range-adjusted/m-p/566222#M197333</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2021-09-07T22:20:35Z</dc:date>
    </item>
    <item>
      <title>Re: Discard results of one month / Time range adjusted?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Discard-results-of-one-month-Time-range-adjusted/m-p/566243#M197344</link>
      <description>&lt;P class="lia-align-left"&gt;I checked and you're right - it won't work. But the isssue _is_ with timewrap. You can make timechart skip non-full buckets at the end of the period (so few days of september would get ignored) but unfortunately timewrap works backwards from either "latest" or "now". There's no option to make timewrap start from "earliest" as far as I can see.&lt;/P&gt;</description>
      <pubDate>Wed, 08 Sep 2021 05:43:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Discard-results-of-one-month-Time-range-adjusted/m-p/566243#M197344</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2021-09-08T05:43:46Z</dc:date>
    </item>
  </channel>
</rss>

