<?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: Decimal places format in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Decimal-places-format/m-p/57849#M14135</link>
    <description>&lt;P&gt;Use &lt;CODE&gt;convert&lt;/CODE&gt;. It is used for this very purpose, converting field values into numerical values.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;yoursearch&amp;gt; | convert auto(&amp;lt;yourfield&amp;gt;)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;More information on the &lt;CODE&gt;convert&lt;/CODE&gt; command is available here: &lt;A href="http://docs.splunk.com/Documentation/Splunk/4.2.2/SearchReference/Convert"&gt;http://docs.splunk.com/Documentation/Splunk/4.2.2/SearchReference/Convert&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 15 Aug 2011 07:18:13 GMT</pubDate>
    <dc:creator>Ayn</dc:creator>
    <dc:date>2011-08-15T07:18:13Z</dc:date>
    <item>
      <title>Decimal places format</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Decimal-places-format/m-p/57848#M14134</link>
      <description>&lt;P&gt;Hi all, &lt;/P&gt;

&lt;P&gt;I have some statistical log like:&lt;BR /&gt;
  Unit  Type    (M)    Used    Rqs  Size (K)    Rqs    Rqs&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; 1  4326    35165  63.4     .1       5.8     .0     .1
 2  4326    35165  63.4     .2       9.8     .1     .1
 3  4326    17582  77.4     .1       6.3     .0     .1
 4  4326    35165  63.4     .2       8.5     .0     .1
 5  4326    17582  77.4     .1       5.1     .0     .1
 6  4326    35165  63.4     .2       8.1     .0     .2
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I used multikv to extract it as field &amp;amp; value pair, but I find ".1", ".2", ".0" is analysed as string instead of numeric, Is there any way that splunk is analysed as numeric. It's better if it can do so when splunk index the data. Thanks.&lt;/P&gt;</description>
      <pubDate>Mon, 15 Aug 2011 07:09:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Decimal-places-format/m-p/57848#M14134</guid>
      <dc:creator>katalinali</dc:creator>
      <dc:date>2011-08-15T07:09:41Z</dc:date>
    </item>
    <item>
      <title>Re: Decimal places format</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Decimal-places-format/m-p/57849#M14135</link>
      <description>&lt;P&gt;Use &lt;CODE&gt;convert&lt;/CODE&gt;. It is used for this very purpose, converting field values into numerical values.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;yoursearch&amp;gt; | convert auto(&amp;lt;yourfield&amp;gt;)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;More information on the &lt;CODE&gt;convert&lt;/CODE&gt; command is available here: &lt;A href="http://docs.splunk.com/Documentation/Splunk/4.2.2/SearchReference/Convert"&gt;http://docs.splunk.com/Documentation/Splunk/4.2.2/SearchReference/Convert&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 15 Aug 2011 07:18:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Decimal-places-format/m-p/57849#M14135</guid>
      <dc:creator>Ayn</dc:creator>
      <dc:date>2011-08-15T07:18:13Z</dc:date>
    </item>
    <item>
      <title>Re: Decimal places format</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Decimal-places-format/m-p/57850#M14136</link>
      <description>&lt;P&gt;I have tested "| convert auto(field)", but it doesn't work.&lt;BR /&gt;&lt;BR /&gt;
Are there other recommendation. Thanks.&lt;/P&gt;</description>
      <pubDate>Mon, 15 Aug 2011 07:58:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Decimal-places-format/m-p/57850#M14136</guid>
      <dc:creator>katalinali</dc:creator>
      <dc:date>2011-08-15T07:58:34Z</dc:date>
    </item>
    <item>
      <title>Re: Decimal places format</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Decimal-places-format/m-p/57851#M14137</link>
      <description>&lt;P&gt;So, to get this straight - do you have a field with the value ".1" in it, but it's not treated as a numerical field?&lt;/P&gt;</description>
      <pubDate>Tue, 16 Aug 2011 13:36:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Decimal-places-format/m-p/57851#M14137</guid>
      <dc:creator>Ayn</dc:creator>
      <dc:date>2011-08-16T13:36:20Z</dc:date>
    </item>
  </channel>
</rss>

