<?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 to show open incidents by month in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-show-open-incidents-by-month/m-p/311199#M93313</link>
    <description>&lt;P&gt;OK, here is another adjustment to limit events to the &lt;CODE&gt;Timepicker's&lt;/CODE&gt; range:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| eval _time = strptime(opened_at,"%Y-%m-%d %H:%M:%S")
| sort 0 - _time
| addinfo
| where _time &amp;gt;= info_min_time AND _time &amp;lt;= info_max_time
| eventstats min(_time) AS earliest_time BY dv_number
| where _time = earliest_time
| timechart span=1mon dc(dv_number) AS inc BY assignment_group_name
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;That should do it.&lt;/P&gt;</description>
    <pubDate>Mon, 05 Jun 2017 04:44:25 GMT</pubDate>
    <dc:creator>woodcock</dc:creator>
    <dc:date>2017-06-05T04:44:25Z</dc:date>
    <item>
      <title>How to show open incidents by month</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-show-open-incidents-by-month/m-p/311168#M93282</link>
      <description>&lt;P&gt;I am trying to write a query to show number of open and closed incidents in a month. When I try the following  in the timechart it does not bucket the time.&lt;/P&gt;

&lt;P&gt;| timechart span=1mon dc(dv_incident) as Incident&lt;/P&gt;

&lt;P&gt;This might be because the event time and the created time are different and timechart goes by _time.&lt;BR /&gt;
So I assigned the created time to _time. | eval _time=sys_created_on but it does not work.&lt;/P&gt;

&lt;P&gt;My search looks like:  | eval _tme=sys_created_on | timechart span=1mon dc(dv_incident) as Incident&lt;BR /&gt;
These are ServiceNow logs.  How can I  bucket the number of incidents opened in a particular month. Since the incident is updated it appears in other months and the count is duplicated.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 14:11:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-show-open-incidents-by-month/m-p/311168#M93282</guid>
      <dc:creator>t_splunk_d</dc:creator>
      <dc:date>2020-09-29T14:11:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to show open incidents by month</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-show-open-incidents-by-month/m-p/311169#M93283</link>
      <description>&lt;P&gt;Try sorting your data like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | eval _time=sys_created_on | sort 0 - _time | timechart span=1mon dc(dv_incident)
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 25 May 2017 11:40:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-show-open-incidents-by-month/m-p/311169#M93283</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2017-05-25T11:40:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to show open incidents by month</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-show-open-incidents-by-month/m-p/311170#M93284</link>
      <description>&lt;P&gt;It does not work. Even though it sorts. &lt;BR /&gt;
In below query I can see the results correctly&lt;BR /&gt;
| eval _time=sys_created_on | sort 0 - _time | table _time dv_incident assignment_group_name&lt;/P&gt;

&lt;P&gt;But when I execute the following it comes up with ZERO&lt;BR /&gt;
| eval _time=sys_created_on | sort 0 - _time  | timechart span=1mon dc(dv_incident) by assignment_group_name  =&amp;gt; returns zero for all the assignment_group_name&lt;/P&gt;

&lt;P&gt;| eval _time=sys_created_on | sort 0 - _time  | timechart span=1mon dc(dv_incident)  =&amp;gt; returns zero &lt;/P&gt;

&lt;P&gt;One more observation I see even though I narrow down the search ( for one month) it brings all time.&lt;BR /&gt;
The verbose mode show that the actual time in events is like this - NaN/NaN/aN NAN:NaN:NaN.000 AM&lt;/P&gt;

&lt;P&gt;Is there a way to create summary indexing with the following query so that it stores the sys_created_on as _time and the timechart to count? I guess you are suggesting the same in the search but it does not work.&lt;/P&gt;

&lt;P&gt;Bascially I want replace the _time with sys_created_on and do summary indexing. Will that write the events date will be written as sys_created_on?&lt;/P&gt;

&lt;P&gt;Experts Need your suggestions/inputs and solution.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 14:12:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-show-open-incidents-by-month/m-p/311170#M93284</guid>
      <dc:creator>t_splunk_d</dc:creator>
      <dc:date>2020-09-29T14:12:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to show open incidents by month</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-show-open-incidents-by-month/m-p/311171#M93285</link>
      <description>&lt;P&gt;Show me one raw event and I am sure that I can fix it; the problem is that &lt;CODE&gt;sys_created_on&lt;/CODE&gt; is a string, not an integer but I need to see the format of the string before I can help you covert it to an integer at which point all should work fine.&lt;/P&gt;</description>
      <pubDate>Thu, 25 May 2017 19:22:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-show-open-incidents-by-month/m-p/311171#M93285</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2017-05-25T19:22:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to show open incidents by month</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-show-open-incidents-by-month/m-p/311172#M93286</link>
      <description>&lt;P&gt;Raw Event:&lt;BR /&gt;
 _time                                          opened_at  assignment_group_name  dv_number  dv_status   closed_at&lt;BR /&gt;
2016/03/28 7:06:55.000 PM        2016-03-28 19:06:55     IT Service Desk    INC4752169   Open&lt;BR /&gt;&lt;BR /&gt;
2016/04/28 7:55:55.000 AM        2016-04-28  07:55:41    Server Group       INC4752169   Open&lt;BR /&gt;
2016/04/28 7:06:55.000 PM        2016-04-28 19:06:55     IT CC                      INC4752179   Open&lt;BR /&gt;
2016/04/29  7:55:41.000 AM        2016-04-29  07:55:41    Server Group       INC4752179   Open&lt;BR /&gt;
2016/05/08  10:55:24.000 AM      2016-04-29  07:55:41    Server Group       INC4752169   Closed  2016-05-08 10:55:23&lt;/P&gt;

&lt;P&gt;I am looking for open incidents for Service Group&lt;BR /&gt;
Month Assignment_Group       count&lt;BR /&gt;
March    Service Group                0&lt;BR /&gt;
April       Service Group                 2&lt;BR /&gt;
May        Service Group                 0&lt;/P&gt;

&lt;P&gt;Closed Incidents - ServiceGroup&lt;BR /&gt;
March - 0&lt;BR /&gt;
April - 0&lt;BR /&gt;
May - 1&lt;/P&gt;

&lt;P&gt;Following is my query which is not coming with correct counts:&lt;BR /&gt;
 | eval time =strptime(opened_at,"%Y-%m-%d %H:%M:%S")&lt;BR /&gt;
| eval Time = strftime(time,"%Y/%m/%d %H:%M:%S")&lt;BR /&gt;
|convert timeformat="%Y/%m/%d %H:%M:%S" mktime(Time) as epoch2&lt;BR /&gt;
|eval _time = epoch2&lt;BR /&gt;
|sort 0 - _time&lt;BR /&gt;
| table _time dv_number opened_at assignment_group_name&lt;BR /&gt;
|timechart span=1mon dc(dv_number) as inc by assignment_group_name&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 14:12:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-show-open-incidents-by-month/m-p/311172#M93286</guid>
      <dc:creator>t_splunk_d</dc:creator>
      <dc:date>2020-09-29T14:12:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to show open incidents by month</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-show-open-incidents-by-month/m-p/311173#M93287</link>
      <description>&lt;P&gt;Like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| eval _time = strptime(opened_at,"%Y-%m-%d %H:%M:%S")
| sort 0 - _time
| timechart span=1mon dc(dv_number) AS inc BY assignment_group_name
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 25 May 2017 22:28:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-show-open-incidents-by-month/m-p/311173#M93287</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2017-05-25T22:28:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to show open incidents by month</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-show-open-incidents-by-month/m-p/311174#M93288</link>
      <description>&lt;P&gt;Remember, at least based on my SN Splunk App experience:&lt;BR /&gt;
1. opened_at may be GMT, and the rest of the dashboard (if that is the work product) is using _time which is probably LOCAL&lt;BR /&gt;
2. indexing provides _time event timestamping via sys_updated_on probably giving _time as LOCAL&lt;BR /&gt;
3. thus, we are collecting data for a time picker range of _time (update date snapshots)&lt;BR /&gt;
4. considering all of this, I like to include a GMT offset for this "_time" solution provided above as follows; which should work for any time zone, and allows for daylight savings time (BTW, I have a habit of renaming SN fields immediately with an "_GMT" so I know which ones Splunk is indexing as GMT Vs LOCAL...which would be a function of your Admin's setup):&lt;/P&gt;

&lt;P&gt;| rename COMMENT AS "the first part is the date conversion to epoch, but using sys_created_on"&lt;BR /&gt;
 | rename COMMENT AS "the second part calculates GMT offset using the fact that we index based on sys_updated_on so that field and _time gives us GMT offset (daylight or standard time)...being in California, I subtract the offset from the first part"&lt;BR /&gt;
 | eval _time=(strptime(sys_created_on_GMT,"%Y-%m-%d %H:%M:%S"))-((strptime(sys_updated_on_GMT,"%Y-%m-%d %H:%M:%S"))-(_time))&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 14:12:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-show-open-incidents-by-month/m-p/311174#M93288</guid>
      <dc:creator>rmarcum</dc:creator>
      <dc:date>2020-09-29T14:12:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to show open incidents by month</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-show-open-incidents-by-month/m-p/311175#M93289</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/1406"&gt;@woodcock&lt;/a&gt; I modified the query and now seeing some numbers. The numbers are not tallying and I know the reason why, but could not translate it to SPL.&lt;/P&gt;

&lt;P&gt;During a month if the ticket is opened and assigned to IT ServiceDesk and subsequently reassigned to some other assignment_group say IT DBA, then the query should not count it against IT ServiceDesk. But since the below query looks for only dv_state="Open" it is off. Is there a way to count only if the assignment_group_name=IT ServiceDesk and dv_state="Open" and it is the last occurring in the assignment. In otherwords it should be counted if it is assigned to other group.  The stats last(assignment_group_name) does not work.&lt;/P&gt;

&lt;P&gt;The following should not counted for IT ServiceDesk&lt;BR /&gt;
_time opened_at assignment_group_name dv_number dv_status closed_at&lt;BR /&gt;
2016/04/28 7:05:55.000 AM 2016-04-28 07:55:41 IT ServiceDesk INC4752169 Open&lt;BR /&gt;
2016/04/28 7:06:55.000 PM 2016-04-28 07:55:41 IT CC INC4752169 Open&lt;/P&gt;

&lt;P&gt;Following should be counted&lt;BR /&gt;
_time opened_at assignment_group_name dv_number dv_status closed_at&lt;BR /&gt;
2016/04/28 7:05:55.000 AM 2016-04-28 07:55:41 IT CC INC4752169 Open&lt;BR /&gt;
2016/04/28 7:06:55.000 PM 2016-04-28 07:55:41 IT ServiceDesk INC4752169 Open&lt;/P&gt;

&lt;P&gt;.... assignment_group_name="IT ServiceDesk" dv_state="Open"&lt;BR /&gt;
| eval _time = strptime(opened_at,"%Y-%m-%d %H:%M:%S")&lt;BR /&gt;
| sort 0 - _time | &lt;BR /&gt;
| timechart span=1mon dc(dv_number) AS inc BY assignment_group_name&lt;BR /&gt;
|stats last(assignment_group_name) &amp;lt;= does not work.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 14:15:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-show-open-incidents-by-month/m-p/311175#M93289</guid>
      <dc:creator>t_splunk_d</dc:creator>
      <dc:date>2020-09-29T14:15:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to show open incidents by month</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-show-open-incidents-by-month/m-p/311176#M93290</link>
      <description>&lt;P&gt;@Marcum Thank you for your inputs, I haven't got to that stage yet!&lt;/P&gt;</description>
      <pubDate>Fri, 26 May 2017 00:49:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-show-open-incidents-by-month/m-p/311176#M93290</guid>
      <dc:creator>t_splunk_d</dc:creator>
      <dc:date>2017-05-26T00:49:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to show open incidents by month</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-show-open-incidents-by-month/m-p/311177#M93291</link>
      <description>&lt;P&gt;So the search did not work?&lt;/P&gt;</description>
      <pubDate>Fri, 26 May 2017 01:33:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-show-open-incidents-by-month/m-p/311177#M93291</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2017-05-26T01:33:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to show open incidents by month</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-show-open-incidents-by-month/m-p/311178#M93292</link>
      <description>&lt;P&gt;I replied to your message. But it did not appear yet. Again I am typing it. I am getting some numbers but it is not tallying and I know the reason why it is but could not translate it to SPL.&lt;/P&gt;

&lt;P&gt;The following should NOT be counted against ServiceDesk. But the query is including it.&lt;/P&gt;

&lt;P&gt;2016/04/28 7:06:55.000 AM 2016-04-28 07:55:41 ServiceDesk INC4752169 Open&lt;BR /&gt;
2016/04/28 7:07:55.000 PM 2016-04-28 07:55:41 IT CC INC4752169 Open&lt;/P&gt;

&lt;P&gt;The following should be counted against Service Desk but the query is not including it.&lt;BR /&gt;
2016/04/28 7:06:55.000 AM 2016-04-28 07:55:41 ITCC INC4752179 Open&lt;BR /&gt;
2016/04/28 7:06:55.000 AM 2016-04-28 07:55:41 ServiceDesk INC4752179 Open&lt;/P&gt;

&lt;P&gt;I tried with the query:&lt;BR /&gt;
index=....  assignment_group_name="ServiceDesk" &lt;BR /&gt;
| eval _time=strptime(opened_at,"%Y-%m-%d %H:%M:%S")&lt;BR /&gt;
|sort 0 - _time&lt;BR /&gt;
|timechart span=1mon dc(dv_number) as inc by assignment_group_name&lt;BR /&gt;
| stats latest(assignment_grup_name) dc(dv_number)  &amp;lt;= does not work&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 14:15:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-show-open-incidents-by-month/m-p/311178#M93292</guid>
      <dc:creator>t_splunk_d</dc:creator>
      <dc:date>2020-09-29T14:15:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to show open incidents by month</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-show-open-incidents-by-month/m-p/311179#M93293</link>
      <description>&lt;P&gt;It did work but the numbers are not tallying. I posted an earlier comment but it did not appear. I have posted again.&lt;/P&gt;</description>
      <pubDate>Fri, 26 May 2017 01:37:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-show-open-incidents-by-month/m-p/311179#M93293</guid>
      <dc:creator>t_splunk_d</dc:creator>
      <dc:date>2017-05-26T01:37:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to show open incidents by month</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-show-open-incidents-by-month/m-p/311180#M93294</link>
      <description>&lt;P&gt;Any thoughts.&lt;/P&gt;</description>
      <pubDate>Fri, 26 May 2017 21:01:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-show-open-incidents-by-month/m-p/311180#M93294</guid>
      <dc:creator>t_splunk_d</dc:creator>
      <dc:date>2017-05-26T21:01:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to show open incidents by month</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-show-open-incidents-by-month/m-p/311181#M93295</link>
      <description>&lt;P&gt;Finally you have given the detail that is required; try this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| eval _time = strptime(opened_at,"%Y-%m-%d %H:%M:%S")
| sort 0 _time
| dedup dv_number
| timechart span=1mon dc(dv_number) AS inc BY assignment_group_name
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 26 May 2017 21:16:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-show-open-incidents-by-month/m-p/311181#M93295</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2017-05-26T21:16:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to show open incidents by month</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-show-open-incidents-by-month/m-p/311182#M93296</link>
      <description>&lt;P&gt;See my new answer; we have it now.&lt;/P&gt;</description>
      <pubDate>Fri, 26 May 2017 21:16:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-show-open-incidents-by-month/m-p/311182#M93296</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2017-05-26T21:16:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to show open incidents by month</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-show-open-incidents-by-month/m-p/311183#M93297</link>
      <description>&lt;P&gt;It is not coming up with the correct counts if Iexecute your query:&lt;/P&gt;

&lt;P&gt;The following should NOT be counted against ServiceDesk. But the query is including it.&lt;/P&gt;

&lt;P&gt;2016/04/28 7:06:55.000 AM 2016-04-28 07:55:41 ServiceDesk INC4752169 Open&lt;BR /&gt;
2016/04/28 7:07:55.000 PM 2016-04-28 07:55:41 IT CC INC4752169 Open&lt;/P&gt;

&lt;P&gt;The following should be counted against Service Desk but the query is not including it.&lt;BR /&gt;
2016/04/28 7:06:55.000 AM 2016-04-28 07:55:41 ITCC INC4752179 Open&lt;BR /&gt;
2016/04/28 7:06:55.000 AM 2016-04-28 07:55:41 ServiceDesk INC4752179 Open&lt;/P&gt;</description>
      <pubDate>Sat, 27 May 2017 00:12:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-show-open-incidents-by-month/m-p/311183#M93297</guid>
      <dc:creator>t_splunk_d</dc:creator>
      <dc:date>2017-05-27T00:12:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to show open incidents by month</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-show-open-incidents-by-month/m-p/311184#M93298</link>
      <description>&lt;P&gt;OK, try this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| eval _time = strptime(opened_at,"%Y-%m-%d %H:%M:%S")
| sort 0 - _time
| eventstats min(_time) AS earliest_time BY dv_number
| where _time = earliest_time
| timechart span=1mon dc(dv_number) AS inc BY assignment_group_name
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Note that this will count the 2nd set of events (which have identical times) once for each assignment_group_name, but the 1st set  of events only for &lt;CODE&gt;ServiceDesk&lt;/CODE&gt; because it is the only one that has the earliest &lt;CODE&gt;opened_at&lt;/CODE&gt; time, which I think is the goal.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 14:15:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-show-open-incidents-by-month/m-p/311184#M93298</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2020-09-29T14:15:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to show open incidents by month</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-show-open-incidents-by-month/m-p/311185#M93299</link>
      <description>&lt;P&gt;See my new answer.&lt;/P&gt;</description>
      <pubDate>Sat, 27 May 2017 07:42:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-show-open-incidents-by-month/m-p/311185#M93299</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2017-05-27T07:42:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to show open incidents by month</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-show-open-incidents-by-month/m-p/311186#M93300</link>
      <description>&lt;P&gt;Might I suggest:&lt;/P&gt;

&lt;OL&gt;
&lt;LI&gt;do not use dedup, but rather one of woodcock's favorites:  stats values(*)  AS * (prepending field values of key interest with _time), will keep any multivalue  field in the correct order with time, i.e., the epoch number.&lt;/LI&gt;
&lt;LI&gt; we can then use mvindex to obtain any value(s) of interest from the "mv array" that we desire...the last item in the array will be the closed ticket (or, if the ticket is still open at the end of the selected period that event will be the last record in the array...keep an eye on the "active" true/false field); the first item in the array will be the opened ticket (beware that some of these arrays will start with NULL until the assignment_group_name gets assigned (thus we must "walk" down the array until we reach the first non NULL value)&lt;/LI&gt;
&lt;LI&gt;remember that _time can probably be used as a timechart scale for tickets opened, but a closed_at timechart scale must be used for closed tickets&lt;/LI&gt;
&lt;LI&gt;with this foundation table in place, some cleaver additional coding will give you total control for reporting the changes in assignement groups (more often than most realize), contact_types (crazy, right?), asignees, etc. Plus, we can now calculate the time periods a ticket "dwells" within an assignement group or assignee.&lt;/LI&gt;
&lt;LI&gt;finally, FCR calculations become "cake"&lt;/LI&gt;
&lt;/OL&gt;

&lt;P&gt;Might I now thank woodcock for his MANY posts that over time have given me the key pieces for this concept that makes the SN Splunk App untouchable by any tools reporting ServiceNow metrics...even some of the new stuff SN has added for Offprem cloud installations cannot touch this Splunk solution. The key in my mind is the 300 second snapshots in the Splunk solution. (NOT something to "dedup" away, but rather to leverage in an array generated via woodcock's stats trick). .giving us a GB a month footprint Vs 45GB a day with warehouse solutions trying to report on ServiceNow.&lt;/P&gt;

&lt;P&gt;Regards.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 14:15:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-show-open-incidents-by-month/m-p/311186#M93300</guid>
      <dc:creator>rmarcum</dc:creator>
      <dc:date>2020-09-29T14:15:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to show open incidents by month</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-show-open-incidents-by-month/m-p/311187#M93301</link>
      <description>&lt;P&gt;To be fair, I stand on the shoulders of mighty Splunk contributors from my own past and while I have had my fair share of genuine innovations, &lt;CODE&gt;stats values(*) AS *&lt;/CODE&gt; is not one of them.  Sadly, the true origin may be lost but if anybody knows, do share!&lt;/P&gt;</description>
      <pubDate>Sun, 28 May 2017 00:42:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-show-open-incidents-by-month/m-p/311187#M93301</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2017-05-28T00:42:06Z</dc:date>
    </item>
  </channel>
</rss>

