<?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: Splunk DB Connect 1: Is it possible to use an eval before dbquery? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Splunk-DB-Connect-1-Is-it-possible-to-use-an-eval-before-dbquery/m-p/152537#M185570</link>
    <description>&lt;P&gt;ok try like :&lt;BR /&gt;
 |dbquery mydatabase "select field2 from my_table"|fields + field2|appendcols [ search index="indexA" OR index="indexB" |eval newfield=field1] |stats values(newfield) as newfield values(field2) as field2 by field1&lt;/P&gt;</description>
    <pubDate>Wed, 10 Jun 2015 11:36:39 GMT</pubDate>
    <dc:creator>fdi01</dc:creator>
    <dc:date>2015-06-10T11:36:39Z</dc:date>
    <item>
      <title>Splunk DB Connect 1: Is it possible to use an eval before dbquery?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-DB-Connect-1-Is-it-possible-to-use-an-eval-before-dbquery/m-p/152534#M185567</link>
      <description>&lt;P&gt;Hi everybody,&lt;/P&gt;

&lt;P&gt;I want to know if it's possible to use an eval before [dbquery "select blablabla"]&lt;/P&gt;

&lt;P&gt;For example:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index="indexA" OR index="indexB" |eval newfield=field1 |stats values(newfield) as newfield values(field2) as field2 by  field1 
[dbquery mydatabase "select field2 from my_table"|fields + field2] 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;well i'm trying to get something like that, but splunk said eval is not used properly&lt;/P&gt;

&lt;P&gt;I need to record all values of &lt;CODE&gt;field1&lt;/CODE&gt; from the index.&lt;BR /&gt;
The lookup cannot be used for the requested sql. &lt;BR /&gt;
if anybody have any idea thx &lt;/P&gt;</description>
      <pubDate>Wed, 10 Jun 2015 08:55:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-DB-Connect-1-Is-it-possible-to-use-an-eval-before-dbquery/m-p/152534#M185567</guid>
      <dc:creator>sfatnass</dc:creator>
      <dc:date>2015-06-10T08:55:24Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk DB Connect 1: Is it possible to use an eval before dbquery?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-DB-Connect-1-Is-it-possible-to-use-an-eval-before-dbquery/m-p/152535#M185568</link>
      <description>&lt;P&gt;try lik:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;|dbquery mydatabase "select field2 from my_table"|fields + field2|appendcols [ search index="indexA" OR index="indexB" |eval newfield=field1 |stats values(newfield) as newfield values(field2) as field2 by field1] 
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 10 Jun 2015 09:39:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-DB-Connect-1-Is-it-possible-to-use-an-eval-before-dbquery/m-p/152535#M185568</guid>
      <dc:creator>fdi01</dc:creator>
      <dc:date>2015-06-10T09:39:32Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk DB Connect 1: Is it possible to use an eval before dbquery?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-DB-Connect-1-Is-it-possible-to-use-an-eval-before-dbquery/m-p/152536#M185569</link>
      <description>&lt;P&gt;the dbquery not match with my index&lt;BR /&gt;
for informaitons i use many dbquery in my request splunk&lt;/P&gt;</description>
      <pubDate>Wed, 10 Jun 2015 11:11:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-DB-Connect-1-Is-it-possible-to-use-an-eval-before-dbquery/m-p/152536#M185569</guid>
      <dc:creator>sfatnass</dc:creator>
      <dc:date>2015-06-10T11:11:07Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk DB Connect 1: Is it possible to use an eval before dbquery?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-DB-Connect-1-Is-it-possible-to-use-an-eval-before-dbquery/m-p/152537#M185570</link>
      <description>&lt;P&gt;ok try like :&lt;BR /&gt;
 |dbquery mydatabase "select field2 from my_table"|fields + field2|appendcols [ search index="indexA" OR index="indexB" |eval newfield=field1] |stats values(newfield) as newfield values(field2) as field2 by field1&lt;/P&gt;</description>
      <pubDate>Wed, 10 Jun 2015 11:36:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-DB-Connect-1-Is-it-possible-to-use-an-eval-before-dbquery/m-p/152537#M185570</guid>
      <dc:creator>fdi01</dc:creator>
      <dc:date>2015-06-10T11:36:39Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk DB Connect 1: Is it possible to use an eval before dbquery?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-DB-Connect-1-Is-it-possible-to-use-an-eval-before-dbquery/m-p/152538#M185571</link>
      <description>&lt;P&gt;finally the kvstore resolve my problem thx&lt;/P&gt;</description>
      <pubDate>Fri, 12 Jun 2015 11:10:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-DB-Connect-1-Is-it-possible-to-use-an-eval-before-dbquery/m-p/152538#M185571</guid>
      <dc:creator>sfatnass</dc:creator>
      <dc:date>2015-06-12T11:10:07Z</dc:date>
    </item>
  </channel>
</rss>

