<?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: problem using lookup output field in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/problem-using-lookup-output-field/m-p/271076#M81603</link>
    <description>&lt;P&gt;you would like to check if your GOAL1 is really an numeric, not a string.&lt;BR /&gt;
try&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| eval GOAL1 = tonumber(GOAL1)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;or something and do the math again&lt;/P&gt;</description>
    <pubDate>Fri, 09 Sep 2016 13:31:35 GMT</pubDate>
    <dc:creator>mhpark</dc:creator>
    <dc:date>2016-09-09T13:31:35Z</dc:date>
    <item>
      <title>problem using lookup output field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/problem-using-lookup-output-field/m-p/271074#M81601</link>
      <description>&lt;P&gt;Hi all.&lt;BR /&gt;
I have an automatic file lookup configured to output some fields and works very well (using the sourcetype):&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;sourcetype=datavalue *
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The field from the automatic lookup is &lt;CODE&gt;GOAL1&lt;/CODE&gt;. This field only has a integer numeric value.&lt;/P&gt;

&lt;P&gt;Next, i tried to run:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;sourcetype=datavalue ORDER=pending | stats count AS s | eval FINAL = (s * 100)/GOAL1
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;But the result of FINAL is not shown. If i remove the division per GOAL1, is fine &lt;CODE&gt;(s * 100)&lt;/CODE&gt;. First, i reckoned that maybe GOAL1 has some problem, but with &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;sourcetype=datavalue | table GOAL1
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;i can see the integer as unique value.&lt;/P&gt;

&lt;P&gt;Any idea? &lt;/P&gt;</description>
      <pubDate>Fri, 09 Sep 2016 08:20:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/problem-using-lookup-output-field/m-p/271074#M81601</guid>
      <dc:creator>changux</dc:creator>
      <dc:date>2016-09-09T08:20:49Z</dc:date>
    </item>
    <item>
      <title>Re: problem using lookup output field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/problem-using-lookup-output-field/m-p/271075#M81602</link>
      <description>&lt;P&gt;how is your lookup done?&lt;BR /&gt;
I tried with a lookup not automatic, but called in the search, and it's ok!&lt;BR /&gt;
Bye?&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
      <pubDate>Fri, 09 Sep 2016 10:58:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/problem-using-lookup-output-field/m-p/271075#M81602</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2016-09-09T10:58:59Z</dc:date>
    </item>
    <item>
      <title>Re: problem using lookup output field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/problem-using-lookup-output-field/m-p/271076#M81603</link>
      <description>&lt;P&gt;you would like to check if your GOAL1 is really an numeric, not a string.&lt;BR /&gt;
try&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| eval GOAL1 = tonumber(GOAL1)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;or something and do the math again&lt;/P&gt;</description>
      <pubDate>Fri, 09 Sep 2016 13:31:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/problem-using-lookup-output-field/m-p/271076#M81603</guid>
      <dc:creator>mhpark</dc:creator>
      <dc:date>2016-09-09T13:31:35Z</dc:date>
    </item>
  </channel>
</rss>

