<?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: Create a chart from a converted number in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/RESOLVED-Create-a-chart-from-a-converted-number/m-p/549477#M37889</link>
    <description>&lt;P&gt;Yep, true, tried with the underscore value inside the name and it works... Dunno what happened here...&lt;/P&gt;</description>
    <pubDate>Tue, 27 Apr 2021 14:55:38 GMT</pubDate>
    <dc:creator>marco_carolo</dc:creator>
    <dc:date>2021-04-27T14:55:38Z</dc:date>
    <item>
      <title>RESOLVED - Create a chart from a converted number</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/RESOLVED-Create-a-chart-from-a-converted-number/m-p/549454#M37884</link>
      <description>&lt;P&gt;Hello there &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So, what I'm trying to do is the following.&lt;/P&gt;&lt;P&gt;I have inside the log all the slow queries.&lt;/P&gt;&lt;P&gt;I'm trying to create a chart to get from the timing of the slow queries, grouped by 10.&lt;/P&gt;&lt;P&gt;One bar counting the queries from 0 to 10 sec&lt;/P&gt;&lt;P&gt;the other from 10 to 20 and so on...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What I've done so far was that:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;index="SUG" "slow query" | rex field=_raw "Slow Query (time: (?&amp;lt;OSY_timing&amp;gt;.*)s):" | eval OSY_new=round(tonumber(OSY_timing),-1) | stats count by OSY_new&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Unfortunately, I'm not able to see any results inside OSY_new, where I should expect the values rounded by 10 (if I read the documentation correctly).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Any hint on how to do that?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;P.s. I've the correct values inside OSY_timing&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 27 Apr 2021 14:41:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/RESOLVED-Create-a-chart-from-a-converted-number/m-p/549454#M37884</guid>
      <dc:creator>marco_carolo</dc:creator>
      <dc:date>2021-04-27T14:41:50Z</dc:date>
    </item>
    <item>
      <title>Re: Create a chart from a converted number</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/RESOLVED-Create-a-chart-from-a-converted-number/m-p/549462#M37886</link>
      <description>&lt;P&gt;Resolved. The problem was in the name of the evaluated variable. Changed to something else solved the problem!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This works!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;index="SUG" "slow query" | rex field=_raw "Slow Query (time: (?&amp;lt;OSY_timing&amp;gt;.*)s):" | eval VALORE = round(tonumber(trim(OSY_timing)),-1) | stats count by VALORE | sort VALORE&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 27 Apr 2021 13:30:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/RESOLVED-Create-a-chart-from-a-converted-number/m-p/549462#M37886</guid>
      <dc:creator>marco_carolo</dc:creator>
      <dc:date>2021-04-27T13:30:52Z</dc:date>
    </item>
    <item>
      <title>Re: Create a chart from a converted number</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/RESOLVED-Create-a-chart-from-a-converted-number/m-p/549475#M37888</link>
      <description>&lt;P&gt;The name shouldn't have mattered, it looks more like the trim inside the tonumber was effective.&lt;/P&gt;</description>
      <pubDate>Tue, 27 Apr 2021 14:48:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/RESOLVED-Create-a-chart-from-a-converted-number/m-p/549475#M37888</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2021-04-27T14:48:45Z</dc:date>
    </item>
    <item>
      <title>Re: Create a chart from a converted number</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/RESOLVED-Create-a-chart-from-a-converted-number/m-p/549477#M37889</link>
      <description>&lt;P&gt;Yep, true, tried with the underscore value inside the name and it works... Dunno what happened here...&lt;/P&gt;</description>
      <pubDate>Tue, 27 Apr 2021 14:55:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/RESOLVED-Create-a-chart-from-a-converted-number/m-p/549477#M37889</guid>
      <dc:creator>marco_carolo</dc:creator>
      <dc:date>2021-04-27T14:55:38Z</dc:date>
    </item>
    <item>
      <title>Re: Create a chart from a converted number</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/RESOLVED-Create-a-chart-from-a-converted-number/m-p/549481#M37890</link>
      <description>&lt;P&gt;Tested and verified. The problem was the missing trim...&lt;/P&gt;</description>
      <pubDate>Tue, 27 Apr 2021 15:02:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/RESOLVED-Create-a-chart-from-a-converted-number/m-p/549481#M37890</guid>
      <dc:creator>marco_carolo</dc:creator>
      <dc:date>2021-04-27T15:02:12Z</dc:date>
    </item>
  </channel>
</rss>

