<?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 Covert KB to MB in a chart count search. in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Covert-KB-to-MB-in-a-chart-count-search/m-p/489727#M136782</link>
    <description>&lt;P&gt;I have a chart count of Index using License usage using the below search. The search works fine but how to convert the usage from KB to MB.&lt;/P&gt;

&lt;P&gt;index=_internal source=&lt;EM&gt;license_usage.log&lt;/EM&gt; type="usage" idx=* earliest_time=-7d@d | convert timeformat="%F" ctime(_time)&lt;BR /&gt;
| chart count over idx by _time | eval Time=strftime(_time,"%m-%d")&lt;/P&gt;

&lt;P&gt;Thank you&lt;/P&gt;</description>
    <pubDate>Wed, 30 Sep 2020 05:16:35 GMT</pubDate>
    <dc:creator>pdantuuri0411</dc:creator>
    <dc:date>2020-09-30T05:16:35Z</dc:date>
    <item>
      <title>Covert KB to MB in a chart count search.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Covert-KB-to-MB-in-a-chart-count-search/m-p/489727#M136782</link>
      <description>&lt;P&gt;I have a chart count of Index using License usage using the below search. The search works fine but how to convert the usage from KB to MB.&lt;/P&gt;

&lt;P&gt;index=_internal source=&lt;EM&gt;license_usage.log&lt;/EM&gt; type="usage" idx=* earliest_time=-7d@d | convert timeformat="%F" ctime(_time)&lt;BR /&gt;
| chart count over idx by _time | eval Time=strftime(_time,"%m-%d")&lt;/P&gt;

&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 05:16:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Covert-KB-to-MB-in-a-chart-count-search/m-p/489727#M136782</guid>
      <dc:creator>pdantuuri0411</dc:creator>
      <dc:date>2020-09-30T05:16:35Z</dc:date>
    </item>
    <item>
      <title>Re: Covert KB to MB in a chart count search.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Covert-KB-to-MB-in-a-chart-count-search/m-p/489728#M136783</link>
      <description>&lt;P&gt;Try this: divide "b" by 1024*1024=104857, you will get the usage in MB: &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=_internal source=*.log source="license_usage.log"
type="usage" idx=* earliest_time=-7d@d
|eval UsageInMB = round(b/1048576,2) 
| convert timeformat="%F" ctime(_time)
| chart sum(UsageInMB) over idx by _time 
| eval Time=strftime(_time,"%m-%d")
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 30 Apr 2020 21:29:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Covert-KB-to-MB-in-a-chart-count-search/m-p/489728#M136783</guid>
      <dc:creator>tauliang</dc:creator>
      <dc:date>2020-04-30T21:29:40Z</dc:date>
    </item>
    <item>
      <title>Re: Covert KB to MB in a chart count search.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Covert-KB-to-MB-in-a-chart-count-search/m-p/489729#M136784</link>
      <description>&lt;P&gt;Thank you &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/53443"&gt;@tauliang&lt;/a&gt; for the reply. I tried what you just posted by it did not convert from KB to MB. below is the result I got.&lt;/P&gt;

&lt;P&gt;i_apache_coc                        4771    4608    4650    4734    4814    5102    3454&lt;BR /&gt;
i_apache_revproxy_24    5227    4989    4156    4090    4879    4729    4845    &lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 05:16:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Covert-KB-to-MB-in-a-chart-count-search/m-p/489729#M136784</guid>
      <dc:creator>pdantuuri0411</dc:creator>
      <dc:date>2020-09-30T05:16:37Z</dc:date>
    </item>
    <item>
      <title>Re: Covert KB to MB in a chart count search.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Covert-KB-to-MB-in-a-chart-count-search/m-p/489730#M136785</link>
      <description>&lt;P&gt;Interesting. If somehow it doesn't work for you, I suggest downloading this app&lt;/P&gt;

&lt;P&gt;&lt;A href="https://splunkbase.splunk.com/app/2949/"&gt;https://splunkbase.splunk.com/app/2949/&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;and see if it shows all the meta data correctly. &lt;/P&gt;</description>
      <pubDate>Thu, 30 Apr 2020 21:56:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Covert-KB-to-MB-in-a-chart-count-search/m-p/489730#M136785</guid>
      <dc:creator>tauliang</dc:creator>
      <dc:date>2020-04-30T21:56:12Z</dc:date>
    </item>
    <item>
      <title>Re: Covert KB to MB in a chart count search.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Covert-KB-to-MB-in-a-chart-count-search/m-p/489731#M136786</link>
      <description>&lt;P&gt;Unfortunately I dont have permissions to download apps for our splunk environment.&lt;/P&gt;

&lt;P&gt;Strange thing is, when I tried the same chart using time chart[1], I am able to retrieve data in MB. The issue was I wanted to swap X axis and Y axis, so I modified the search to use chart count. Any other suggestions?&lt;/P&gt;

&lt;P&gt;[1] &lt;BR /&gt;
index=_internal source=&lt;EM&gt;license_usage.log&lt;/EM&gt; type="Usage" idx=* earliest_time=@w&lt;BR /&gt;
| timechart span=1d limit=0 eval(round(sum(b)/1024/1024,3)) as MB by idx | sort -_time&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 05:16:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Covert-KB-to-MB-in-a-chart-count-search/m-p/489731#M136786</guid>
      <dc:creator>pdantuuri0411</dc:creator>
      <dc:date>2020-09-30T05:16:40Z</dc:date>
    </item>
    <item>
      <title>Re: Covert KB to MB in a chart count search.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Covert-KB-to-MB-in-a-chart-count-search/m-p/489732#M136787</link>
      <description>&lt;P&gt;You can add an extra line in the end to flip the axes&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;    | transpose
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 30 Apr 2020 22:26:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Covert-KB-to-MB-in-a-chart-count-search/m-p/489732#M136787</guid>
      <dc:creator>tauliang</dc:creator>
      <dc:date>2020-04-30T22:26:32Z</dc:date>
    </item>
    <item>
      <title>Re: Covert KB to MB in a chart count search.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Covert-KB-to-MB-in-a-chart-count-search/m-p/489733#M136788</link>
      <description>&lt;P&gt;Thank you. This helped few a few minor changes.&lt;/P&gt;</description>
      <pubDate>Mon, 04 May 2020 20:23:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Covert-KB-to-MB-in-a-chart-count-search/m-p/489733#M136788</guid>
      <dc:creator>pdantuuri0411</dc:creator>
      <dc:date>2020-05-04T20:23:23Z</dc:date>
    </item>
  </channel>
</rss>

