<?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: count how many records was opened by open date field in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/count-how-many-records-was-opened-by-open-date-field/m-p/357006#M105619</link>
    <description>&lt;P&gt;If this is from the Splunk ServiceNow App, the _time is most likely coming in as LOCAL, and sys_created_on as GMT. On your dashboard you most likely want your time chart to also be LOCAL time. Accordingly, I would recommend: &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; | rename COMMENT AS "equate _time TO sys_created_on_Local which can be converted FROM sys_created_on_GMT "
 | eval _time=strptime((sys_created_on_GMT." UTC"),"%Y-%m-%d %T %Z")
 | timechart count ... etc.
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Tue, 29 Sep 2020 15:18:17 GMT</pubDate>
    <dc:creator>rmarcum</dc:creator>
    <dc:date>2020-09-29T15:18:17Z</dc:date>
    <item>
      <title>count how many records was opened by open date field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/count-how-many-records-was-opened-by-open-date-field/m-p/357004#M105617</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I have a table of incidents and I want to count the number of incidents opened per month.&lt;BR /&gt;
Each record updates after the status of an incident is change. for example, incident is closed so the old record updated the status field to close.&lt;BR /&gt;
table:&lt;BR /&gt;
&lt;IMG src="https://community.splunk.com/storage/temp/208845-capture.png" alt="alt text" /&gt;&lt;/P&gt;

&lt;P&gt;After an update, the only thing I have left to know about the opening of the incident is the creation date field (sys_created_on).&lt;/P&gt;

&lt;P&gt;Is there any way I can count the number of incidents opened for every month in timechart?&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 15:16:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/count-how-many-records-was-opened-by-open-date-field/m-p/357004#M105617</guid>
      <dc:creator>matansocher</dc:creator>
      <dc:date>2020-09-29T15:16:29Z</dc:date>
    </item>
    <item>
      <title>Re: count how many records was opened by open date field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/count-how-many-records-was-opened-by-open-date-field/m-p/357005#M105618</link>
      <description>&lt;P&gt;You can convert &lt;CODE&gt;sys_created_on&lt;/CODE&gt; to a timestamp using &lt;CODE&gt;| eval timestamp = strptime(sys_created_on, "%m/%d/%Y")&lt;/CODE&gt;, so then you can make a timechart after that.&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;&amp;lt;YOUR BASE SEARCH&amp;gt; | eval timestamp = strptime(sys_created_on, "%m/%d/%Y") | rename timestamp as _time | timechart span=1mon count as Opened&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Aug 2017 08:27:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/count-how-many-records-was-opened-by-open-date-field/m-p/357005#M105618</guid>
      <dc:creator>rjthibod</dc:creator>
      <dc:date>2017-08-10T08:27:59Z</dc:date>
    </item>
    <item>
      <title>Re: count how many records was opened by open date field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/count-how-many-records-was-opened-by-open-date-field/m-p/357006#M105619</link>
      <description>&lt;P&gt;If this is from the Splunk ServiceNow App, the _time is most likely coming in as LOCAL, and sys_created_on as GMT. On your dashboard you most likely want your time chart to also be LOCAL time. Accordingly, I would recommend: &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; | rename COMMENT AS "equate _time TO sys_created_on_Local which can be converted FROM sys_created_on_GMT "
 | eval _time=strptime((sys_created_on_GMT." UTC"),"%Y-%m-%d %T %Z")
 | timechart count ... etc.
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 29 Sep 2020 15:18:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/count-how-many-records-was-opened-by-open-date-field/m-p/357006#M105619</guid>
      <dc:creator>rmarcum</dc:creator>
      <dc:date>2020-09-29T15:18:17Z</dc:date>
    </item>
  </channel>
</rss>

