<?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 Timechart with eval in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Timechart-with-eval/m-p/197331#M57011</link>
    <description>&lt;P&gt;We are showing a timechart with bandwidth in kilobits per second. We would like to transform this data into kilobytes per second. So the value of bandwidth divided by 1024.&lt;/P&gt;

&lt;P&gt;This is the query:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;name="Bandwidth by Client"  (515502 OR 410407 OR 414565 OR 444422 OR 777777) | timechart median(measures.Bandwidth) by "dimensions.Client Name"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I tried various things, such as adding an eval before, and then piping it on to the timechart, and also adding an eval function around the median function. But nothing seems to work.&lt;/P&gt;

&lt;P&gt;We are using Splunk 6.0.1&lt;/P&gt;

&lt;P&gt;Thank you in advance&lt;BR /&gt;
Gidon&lt;/P&gt;</description>
    <pubDate>Tue, 07 Jan 2014 08:46:28 GMT</pubDate>
    <dc:creator>cet</dc:creator>
    <dc:date>2014-01-07T08:46:28Z</dc:date>
    <item>
      <title>Timechart with eval</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Timechart-with-eval/m-p/197331#M57011</link>
      <description>&lt;P&gt;We are showing a timechart with bandwidth in kilobits per second. We would like to transform this data into kilobytes per second. So the value of bandwidth divided by 1024.&lt;/P&gt;

&lt;P&gt;This is the query:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;name="Bandwidth by Client"  (515502 OR 410407 OR 414565 OR 444422 OR 777777) | timechart median(measures.Bandwidth) by "dimensions.Client Name"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I tried various things, such as adding an eval before, and then piping it on to the timechart, and also adding an eval function around the median function. But nothing seems to work.&lt;/P&gt;

&lt;P&gt;We are using Splunk 6.0.1&lt;/P&gt;

&lt;P&gt;Thank you in advance&lt;BR /&gt;
Gidon&lt;/P&gt;</description>
      <pubDate>Tue, 07 Jan 2014 08:46:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Timechart-with-eval/m-p/197331#M57011</guid>
      <dc:creator>cet</dc:creator>
      <dc:date>2014-01-07T08:46:28Z</dc:date>
    </item>
    <item>
      <title>Re: Timechart with eval</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Timechart-with-eval/m-p/197332#M57012</link>
      <description>&lt;P&gt;Hi cet,&lt;/P&gt;

&lt;P&gt;assuming your kilobits field name is &lt;CODE&gt;measures.Bandwidth&lt;/CODE&gt; you can do the following:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;name="Bandwidth by Client" (515502 OR 410407 OR 414565 OR 444422 OR 777777) | eval measures.Bandwidth='measures.Bandwidth'/1024 | timechart median(measures.Bandwidth) by "dimensions.Client Name"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;you can also rename the median in the &lt;CODE&gt;timechart&lt;/CODE&gt; like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;name="Bandwidth by Client" (515502 OR 410407 OR 414565 OR 444422 OR 777777) | eval measures.Bandwidth='measures.Bandwidth'/1024 | timechart median(measures.Bandwidth) AS median.KB.Bandwidth by "dimensions.Client Name"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;watch out for the &lt;CODE&gt;''&lt;/CODE&gt; around the field name in &lt;CODE&gt;eval&lt;/CODE&gt;, else &lt;CODE&gt;eval&lt;/CODE&gt; will not ignore the dot in the name. Or &lt;CODE&gt;rename&lt;/CODE&gt; your field to something without &lt;CODE&gt;.&lt;/CODE&gt; in the name before the eval.&lt;/P&gt;

&lt;P&gt;hope this helps ...&lt;/P&gt;

&lt;P&gt;cheers, MuS&lt;/P&gt;</description>
      <pubDate>Tue, 07 Jan 2014 08:57:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Timechart-with-eval/m-p/197332#M57012</guid>
      <dc:creator>MuS</dc:creator>
      <dc:date>2014-01-07T08:57:07Z</dc:date>
    </item>
    <item>
      <title>Re: Timechart with eval</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Timechart-with-eval/m-p/197333#M57013</link>
      <description>&lt;P&gt;Once I add the eval expression , my timechart stops working. The statistics tab shows 0 stats. What could be the problem?&lt;/P&gt;</description>
      <pubDate>Tue, 07 Jan 2014 09:03:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Timechart-with-eval/m-p/197333#M57013</guid>
      <dc:creator>cet</dc:creator>
      <dc:date>2014-01-07T09:03:12Z</dc:date>
    </item>
    <item>
      <title>Re: Timechart with eval</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Timechart-with-eval/m-p/197334#M57014</link>
      <description>&lt;P&gt;remove everything after the eval and see if you get anything&lt;/P&gt;</description>
      <pubDate>Tue, 07 Jan 2014 09:04:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Timechart-with-eval/m-p/197334#M57014</guid>
      <dc:creator>MuS</dc:creator>
      <dc:date>2014-01-07T09:04:49Z</dc:date>
    </item>
    <item>
      <title>Re: Timechart with eval</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Timechart-with-eval/m-p/197335#M57015</link>
      <description>&lt;P&gt;did you mean:&lt;/P&gt;

&lt;P&gt;name="Bandwidth by Client"  (515502 OR 410407 OR 414565 OR 444422 OR 777777)|  eval measures.Bandwidth=measures.Bandwidth/1024&lt;/P&gt;

&lt;P&gt;this does return events. I also checked that measurs.Bandwidth is a number, and yes splunk recognizes it as a number.&lt;/P&gt;</description>
      <pubDate>Tue, 07 Jan 2014 09:08:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Timechart-with-eval/m-p/197335#M57015</guid>
      <dc:creator>cet</dc:creator>
      <dc:date>2014-01-07T09:08:20Z</dc:date>
    </item>
    <item>
      <title>Re: Timechart with eval</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Timechart-with-eval/m-p/197336#M57016</link>
      <description>&lt;P&gt;&lt;EM&gt;facepalm&lt;/EM&gt; stupid me, see my update to fix it &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Jan 2014 09:11:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Timechart-with-eval/m-p/197336#M57016</guid>
      <dc:creator>MuS</dc:creator>
      <dc:date>2014-01-07T09:11:20Z</dc:date>
    </item>
    <item>
      <title>Re: Timechart with eval</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Timechart-with-eval/m-p/197337#M57017</link>
      <description>&lt;P&gt;GREAT!!! Thanks a million!&lt;/P&gt;</description>
      <pubDate>Tue, 07 Jan 2014 09:17:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Timechart-with-eval/m-p/197337#M57017</guid>
      <dc:creator>cet</dc:creator>
      <dc:date>2014-01-07T09:17:16Z</dc:date>
    </item>
    <item>
      <title>Re: Timechart with eval</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Timechart-with-eval/m-p/197338#M57018</link>
      <description>&lt;P&gt;you're welcome &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Jan 2014 09:22:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Timechart-with-eval/m-p/197338#M57018</guid>
      <dc:creator>MuS</dc:creator>
      <dc:date>2014-01-07T09:22:57Z</dc:date>
    </item>
  </channel>
</rss>

