<?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 bug. in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Timechart-bug/m-p/451480#M127846</link>
    <description>&lt;P&gt;hi @reverse your timechart is correct , and it could be a bug but it is more likely to be an issue with the logType.&lt;BR /&gt;
You say - 'If I add |eval logType ="thatlogtype*"' it works.&lt;BR /&gt;
Which means that logType is not being extracted / identified default. Could you please post a sample of your logs and query before the timechart part?&lt;/P&gt;</description>
    <pubDate>Thu, 15 Aug 2019 15:56:16 GMT</pubDate>
    <dc:creator>Sukisen1981</dc:creator>
    <dc:date>2019-08-15T15:56:16Z</dc:date>
    <item>
      <title>Timechart bug.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Timechart-bug/m-p/451479#M127845</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;index="iedss_was_prd" OR index=iedss_mule_prd 
| rex field=source "(?P&amp;lt;logType&amp;gt;[^\\\]+)$" 
| eval raw_len=len(_raw) 
| eval raw_len_mb = raw_len/1024/1024 
| eval raw_len_mb = round(raw_len_mb,2) 
| timechart span=1d useother=false sum(raw_len_mb) as MB by logType limit=0 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;there is clearly a bug in timechart.&lt;BR /&gt;
I have around 70 logTypes.&lt;BR /&gt;
After running the above query across 7 days - in result some logtype column values are ZERO.&lt;BR /&gt;
If I add  &lt;CODE&gt;|eval logType ="thatlogtype*"&lt;/CODE&gt;&lt;BR /&gt;
then the result is right.&lt;/P&gt;

&lt;P&gt;Thoughts &lt;/P&gt;</description>
      <pubDate>Thu, 15 Aug 2019 15:16:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Timechart-bug/m-p/451479#M127845</guid>
      <dc:creator>reverse</dc:creator>
      <dc:date>2019-08-15T15:16:40Z</dc:date>
    </item>
    <item>
      <title>Re: Timechart bug.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Timechart-bug/m-p/451480#M127846</link>
      <description>&lt;P&gt;hi @reverse your timechart is correct , and it could be a bug but it is more likely to be an issue with the logType.&lt;BR /&gt;
You say - 'If I add |eval logType ="thatlogtype*"' it works.&lt;BR /&gt;
Which means that logType is not being extracted / identified default. Could you please post a sample of your logs and query before the timechart part?&lt;/P&gt;</description>
      <pubDate>Thu, 15 Aug 2019 15:56:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Timechart-bug/m-p/451480#M127846</guid>
      <dc:creator>Sukisen1981</dc:creator>
      <dc:date>2019-08-15T15:56:16Z</dc:date>
    </item>
    <item>
      <title>Re: Timechart bug.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Timechart-bug/m-p/451481#M127847</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;index="myindex"
| rex field=source "(?P&amp;lt;logType&amp;gt;[^\\\]+)$" 
| eval raw_len=len(_raw) 
| eval raw_len_mb = raw_len/1024/1024 
| eval raw_len_mb = round(raw_len_mb,2) 
| timechart span=1d useother=false sum(raw_len_mb) as MB by logType limit=0 
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 15 Aug 2019 16:03:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Timechart-bug/m-p/451481#M127847</guid>
      <dc:creator>reverse</dc:creator>
      <dc:date>2019-08-15T16:03:39Z</dc:date>
    </item>
    <item>
      <title>Re: Timechart bug.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Timechart-bug/m-p/451482#M127848</link>
      <description>&lt;P&gt;logType is getting extracted just fine .. so no issues there .. it is just all values are ZERO.&lt;/P&gt;</description>
      <pubDate>Thu, 15 Aug 2019 16:05:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Timechart-bug/m-p/451482#M127848</guid>
      <dc:creator>reverse</dc:creator>
      <dc:date>2019-08-15T16:05:05Z</dc:date>
    </item>
    <item>
      <title>Re: Timechart bug.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Timechart-bug/m-p/451483#M127849</link>
      <description>&lt;P&gt;hi &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/185961"&gt;@reverse&lt;/a&gt;&lt;BR /&gt;
you are calculating the raw length in gb  for 1 event and then rounding it off to 2 decimal places. Most likely your raw_len is something like 0.00xxx or  0.0yyy or even 0.000zzz&lt;BR /&gt;
remove the eval before timechart and well check the raw_len_mb field values under interesting fields&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 01:46:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Timechart-bug/m-p/451483#M127849</guid>
      <dc:creator>Sukisen1981</dc:creator>
      <dc:date>2020-09-30T01:46:46Z</dc:date>
    </item>
    <item>
      <title>Re: Timechart bug.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Timechart-bug/m-p/451484#M127850</link>
      <description>&lt;P&gt;good catch ..let me try ..&lt;/P&gt;</description>
      <pubDate>Thu, 15 Aug 2019 16:38:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Timechart-bug/m-p/451484#M127850</guid>
      <dc:creator>reverse</dc:creator>
      <dc:date>2019-08-15T16:38:54Z</dc:date>
    </item>
    <item>
      <title>Re: Timechart bug.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Timechart-bug/m-p/451485#M127851</link>
      <description>&lt;P&gt;@Sukisen1981 it worked !.. thank you&lt;/P&gt;</description>
      <pubDate>Thu, 15 Aug 2019 16:41:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Timechart-bug/m-p/451485#M127851</guid>
      <dc:creator>reverse</dc:creator>
      <dc:date>2019-08-15T16:41:22Z</dc:date>
    </item>
    <item>
      <title>Re: Timechart bug.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Timechart-bug/m-p/451486#M127852</link>
      <description>&lt;P&gt;but now how do i change it to MB for all columns.. ?&lt;/P&gt;

&lt;P&gt;| timechart span=1d useother=false sum(raw_len) as KBby logType limit=0 &lt;BR /&gt;
| eval MB = round(KB/1024/1024,2)&lt;/P&gt;</description>
      <pubDate>Thu, 15 Aug 2019 16:44:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Timechart-bug/m-p/451486#M127852</guid>
      <dc:creator>reverse</dc:creator>
      <dc:date>2019-08-15T16:44:23Z</dc:date>
    </item>
    <item>
      <title>Re: Timechart bug.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Timechart-bug/m-p/451487#M127853</link>
      <description>&lt;P&gt;glad it worked I am converting my comment to an answer, please accept it as it significantly helped resolve your issue.&lt;/P&gt;</description>
      <pubDate>Thu, 15 Aug 2019 16:45:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Timechart-bug/m-p/451487#M127853</guid>
      <dc:creator>Sukisen1981</dc:creator>
      <dc:date>2019-08-15T16:45:37Z</dc:date>
    </item>
    <item>
      <title>Re: Timechart bug.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Timechart-bug/m-p/451488#M127854</link>
      <description>&lt;P&gt;well its not a bug, all values are zero thats because you are rounding it up to 2, look for &lt;CODE&gt;raw_len&lt;/CODE&gt; field values and you should see number which is very small (few hundred bytes) and then you are converting it to MB which will be very very small. &lt;BR /&gt;
If this problem persist, could you please let us know the output of &lt;CODE&gt;raw_len&lt;/CODE&gt; or you could try increasing the rounding it up to 5,6 maybe?&lt;/P&gt;

&lt;P&gt;also try normalizing it :&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index="myindex"
 | rex field=source "(?P&amp;lt;logType&amp;gt;[^\\\]+)$" 
 | eval raw_len=len(_raw) 
 | eval raw_len_mb = round(raw_len/1024/1024,5 )
 | timechart span=1d useother=false sum(raw_len_mb) as MB by logType limit=0 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;let me know if this helps!&lt;/P&gt;</description>
      <pubDate>Thu, 15 Aug 2019 16:46:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Timechart-bug/m-p/451488#M127854</guid>
      <dc:creator>mayurr98</dc:creator>
      <dc:date>2019-08-15T16:46:52Z</dc:date>
    </item>
    <item>
      <title>Re: Timechart bug.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Timechart-bug/m-p/451489#M127855</link>
      <description>&lt;P&gt;when you use len of anything it does not show you the length in bytes kb/mb at all....its merely showing you the string / char length of your _raw event..what exactly are you trying to do here?&lt;/P&gt;</description>
      <pubDate>Thu, 15 Aug 2019 16:49:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Timechart-bug/m-p/451489#M127855</guid>
      <dc:creator>Sukisen1981</dc:creator>
      <dc:date>2019-08-15T16:49:08Z</dc:date>
    </item>
    <item>
      <title>Re: Timechart bug.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Timechart-bug/m-p/451490#M127856</link>
      <description>&lt;P&gt;getting log file sizes to monitor log growth .. and spikes &lt;/P&gt;</description>
      <pubDate>Thu, 15 Aug 2019 16:52:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Timechart-bug/m-p/451490#M127856</guid>
      <dc:creator>reverse</dc:creator>
      <dc:date>2019-08-15T16:52:34Z</dc:date>
    </item>
    <item>
      <title>Re: Timechart bug.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Timechart-bug/m-p/451491#M127857</link>
      <description>&lt;P&gt;you are getting what I am saying right? the moment you use len(x)...it works like a string length function...&lt;/P&gt;</description>
      <pubDate>Thu, 15 Aug 2019 16:59:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Timechart-bug/m-p/451491#M127857</guid>
      <dc:creator>Sukisen1981</dc:creator>
      <dc:date>2019-08-15T16:59:06Z</dc:date>
    </item>
    <item>
      <title>Re: Timechart bug.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Timechart-bug/m-p/451492#M127858</link>
      <description>&lt;P&gt;thats fine .. i know it wont be 100% match with log file size .. even 95% match would do...&lt;/P&gt;</description>
      <pubDate>Thu, 15 Aug 2019 17:03:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Timechart-bug/m-p/451492#M127858</guid>
      <dc:creator>reverse</dc:creator>
      <dc:date>2019-08-15T17:03:19Z</dc:date>
    </item>
  </channel>
</rss>

