<?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 visualization does not match statistics in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Timechart-visualization-does-not-match-statistics/m-p/468667#M131956</link>
    <description>&lt;P&gt;hi &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/184221"&gt;@to4kawa&lt;/a&gt; . I suspected that, but didn't work. below is my settings in props.conf under local for the relevant sourcetype&lt;/P&gt;

&lt;P&gt;[mem]&lt;BR /&gt;
DATETIME_CONFIG = current&lt;BR /&gt;
INDEXED_EXTRACTIONS = csv&lt;BR /&gt;
KV_MODE = none&lt;BR /&gt;
LINE_BREAKER = ([\r\n]+)&lt;BR /&gt;
NO_BINARY_CHECK = true&lt;BR /&gt;
SHOULD_LINEMERGE = false&lt;BR /&gt;
category = Structured&lt;BR /&gt;
description = Comma-separated value format. Set header and other settings in "Delimited Settings"&lt;BR /&gt;
disabled = false&lt;BR /&gt;
pulldown_type = true&lt;/P&gt;</description>
    <pubDate>Wed, 30 Sep 2020 04:52:27 GMT</pubDate>
    <dc:creator>Sukisen1981</dc:creator>
    <dc:date>2020-09-30T04:52:27Z</dc:date>
    <item>
      <title>Timechart visualization does not match statistics</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Timechart-visualization-does-not-match-statistics/m-p/468662#M131951</link>
      <description>&lt;P&gt;I have a csv with just 2 columns Time &amp;amp; memory. the events look like this, so this is basically a csv extract of a server memory utilization for April 3rd from 12:00 AM - 11:30 PM at  an interval of 10 mins.&lt;BR /&gt;
Time                         Event&lt;BR /&gt;
4/3/20                         4/3/2020 23:34,98% &lt;BR /&gt;
11:34:00.000 PM &lt;/P&gt;

&lt;P&gt;When i run a very simple query - index="memory"|timechart count&lt;BR /&gt;
The statistics tab looks ok&lt;BR /&gt;
&lt;IMG src="https://community.splunk.com/storage/temp/286748-stats.jpg" alt="alt text" /&gt;&lt;/P&gt;

&lt;P&gt;however for some reason the visulaization tab is pushed back and starts from April 2nd&lt;BR /&gt;
&lt;IMG src="https://community.splunk.com/storage/temp/286750-viz.jpg" alt="alt text" /&gt;&lt;/P&gt;

&lt;P&gt;Of course i thought it to be an issue with the time modifiers and tried tinkering like this&lt;BR /&gt;
index="memory" |rex field=_raw "(?.*?)\,"|eval time=strptime(time,"%m/%d/%Y %H:%M")|eval _time=time |timechart count&lt;BR /&gt;
In the rex for 'time' I am extracting it from the event(_raw) and NOT the first CSV columb 'Time'.&lt;BR /&gt;
BUT the output remains the same, namely the issue is the statistics tab looks absolutely correct but the viz tab gets pushed back . &lt;BR /&gt;
Any clues?&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 04:54:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Timechart-visualization-does-not-match-statistics/m-p/468662#M131951</guid>
      <dc:creator>Sukisen1981</dc:creator>
      <dc:date>2020-09-30T04:54:14Z</dc:date>
    </item>
    <item>
      <title>Re: Timechart visualization does not match statistics</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Timechart-visualization-does-not-match-statistics/m-p/468663#M131952</link>
      <description>&lt;P&gt;Have you tried changing the time picker from "All time" to the window you expect for the viz?&lt;/P&gt;</description>
      <pubDate>Sat, 04 Apr 2020 17:04:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Timechart-visualization-does-not-match-statistics/m-p/468663#M131952</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2020-04-04T17:04:35Z</dc:date>
    </item>
    <item>
      <title>Re: Timechart visualization does not match statistics</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Timechart-visualization-does-not-match-statistics/m-p/468664#M131953</link>
      <description>&lt;P&gt;hi @richgalloway - Strange, when i changed the time picker to last 24 hrs...i got a 'no results found'. I uploaded the CSV today. At any rate why would the time picker be affecting just the visualization and NOT the stats tab?&lt;BR /&gt;
Is this a bug?&lt;/P&gt;</description>
      <pubDate>Sat, 04 Apr 2020 19:45:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Timechart-visualization-does-not-match-statistics/m-p/468664#M131953</guid>
      <dc:creator>Sukisen1981</dc:creator>
      <dc:date>2020-04-04T19:45:16Z</dc:date>
    </item>
    <item>
      <title>Re: Timechart visualization does not match statistics</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Timechart-visualization-does-not-match-statistics/m-p/468665#M131954</link>
      <description>&lt;P&gt;your props.conf is not &lt;CODE&gt;DATETIME_CONFIG = current&lt;/CODE&gt;&lt;BR /&gt;
check props.conf &lt;/P&gt;</description>
      <pubDate>Sat, 04 Apr 2020 21:26:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Timechart-visualization-does-not-match-statistics/m-p/468665#M131954</guid>
      <dc:creator>to4kawa</dc:creator>
      <dc:date>2020-04-04T21:26:54Z</dc:date>
    </item>
    <item>
      <title>Re: Timechart visualization does not match statistics</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Timechart-visualization-does-not-match-statistics/m-p/468666#M131955</link>
      <description>&lt;P&gt;It certainly is strange.&lt;BR /&gt;
When you uploaded the data is not as relevant as the _time value for the events.  That is what Splunk looks at to satisfy the time picker.&lt;/P&gt;</description>
      <pubDate>Sat, 04 Apr 2020 21:27:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Timechart-visualization-does-not-match-statistics/m-p/468666#M131955</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2020-04-04T21:27:01Z</dc:date>
    </item>
    <item>
      <title>Re: Timechart visualization does not match statistics</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Timechart-visualization-does-not-match-statistics/m-p/468667#M131956</link>
      <description>&lt;P&gt;hi &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/184221"&gt;@to4kawa&lt;/a&gt; . I suspected that, but didn't work. below is my settings in props.conf under local for the relevant sourcetype&lt;/P&gt;

&lt;P&gt;[mem]&lt;BR /&gt;
DATETIME_CONFIG = current&lt;BR /&gt;
INDEXED_EXTRACTIONS = csv&lt;BR /&gt;
KV_MODE = none&lt;BR /&gt;
LINE_BREAKER = ([\r\n]+)&lt;BR /&gt;
NO_BINARY_CHECK = true&lt;BR /&gt;
SHOULD_LINEMERGE = false&lt;BR /&gt;
category = Structured&lt;BR /&gt;
description = Comma-separated value format. Set header and other settings in "Delimited Settings"&lt;BR /&gt;
disabled = false&lt;BR /&gt;
pulldown_type = true&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 04:52:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Timechart-visualization-does-not-match-statistics/m-p/468667#M131956</guid>
      <dc:creator>Sukisen1981</dc:creator>
      <dc:date>2020-09-30T04:52:27Z</dc:date>
    </item>
    <item>
      <title>Re: Timechart visualization does not match statistics</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Timechart-visualization-does-not-match-statistics/m-p/468668#M131957</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/213957"&gt;@richgalloway&lt;/a&gt;  and &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/184221"&gt;@to4kawa&lt;/a&gt; &lt;BR /&gt;
I am happy to say that the issue is fixed and I want to apologize for wasting your time as well. Now, this is my local version and I am in India (Kolkata,Chennai etc time zone). I noticed that the events were getting pushed back by 5.5 hours in the timechart viz, which means I was getting defaulted to GMT.&lt;BR /&gt;
So, I did 2 steps&lt;BR /&gt;
1- I uploaded the CSV fresh, and went for advanced extraction, under the timezone, I set the time zone for India&lt;BR /&gt;
&lt;IMG src="https://community.splunk.com/storage/temp/287766-upload.jpg" alt="alt text" /&gt;&lt;/P&gt;

&lt;P&gt;2- I am logging in as admin and I changed the admin user's timezone to IST.&lt;BR /&gt;
&lt;IMG src="https://community.splunk.com/storage/temp/287767-user.jpg" alt="alt text" /&gt;&lt;/P&gt;

&lt;P&gt;I am sure probably step 2 is all that is needed, but hey am not tinkering anything now. I am sorry once again, I should have specified the time zone gap(that events were getting defaulted to GMT and not IST) in my original post.&lt;BR /&gt;
I have lingering doubts though, because once I change the _time settings forcefully with an extracted filed and set _time=extracte_time...irrespective of the timezone settings the timehchart viz should work , but maybe I am wrong.&lt;BR /&gt;
Once again sorry for the bother, it was my mistake. I forgot this was my local and not my customer's splunk instance where timezones are already set up by the admin team &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 04:52:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Timechart-visualization-does-not-match-statistics/m-p/468668#M131957</guid>
      <dc:creator>Sukisen1981</dc:creator>
      <dc:date>2020-09-30T04:52:30Z</dc:date>
    </item>
  </channel>
</rss>

