<?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 two lookup input fields - no whitespace after AND in mysql query in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/two-lookup-input-fields-no-whitespace-after-AND-in-mysql-query/m-p/78355#M181624</link>
    <description>&lt;P&gt;I have configured an automatic lookup from a mysql table via web interface. When I configure two lookup input fields I get a mysql syntax error. Just configuring one does work sql wise.&lt;/P&gt;

&lt;P&gt;From the recent db connect errors search:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;com.splunk.dbx.lookup.DBLookupException: SQL error while performing lookup: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'ANDportindex = 12' at line 1
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;mysql query log:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;33409 Query SELECT slot,number,name FROM port WHERE switchdomain = 58 ANDportindex = 3
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;So there is missing a whitespace after the AND. Is there any workaround?&lt;/P&gt;</description>
    <pubDate>Fri, 04 Jan 2013 11:19:50 GMT</pubDate>
    <dc:creator>micm</dc:creator>
    <dc:date>2013-01-04T11:19:50Z</dc:date>
    <item>
      <title>two lookup input fields - no whitespace after AND in mysql query</title>
      <link>https://community.splunk.com/t5/Splunk-Search/two-lookup-input-fields-no-whitespace-after-AND-in-mysql-query/m-p/78355#M181624</link>
      <description>&lt;P&gt;I have configured an automatic lookup from a mysql table via web interface. When I configure two lookup input fields I get a mysql syntax error. Just configuring one does work sql wise.&lt;/P&gt;

&lt;P&gt;From the recent db connect errors search:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;com.splunk.dbx.lookup.DBLookupException: SQL error while performing lookup: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'ANDportindex = 12' at line 1
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;mysql query log:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;33409 Query SELECT slot,number,name FROM port WHERE switchdomain = 58 ANDportindex = 3
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;So there is missing a whitespace after the AND. Is there any workaround?&lt;/P&gt;</description>
      <pubDate>Fri, 04 Jan 2013 11:19:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/two-lookup-input-fields-no-whitespace-after-AND-in-mysql-query/m-p/78355#M181624</guid>
      <dc:creator>micm</dc:creator>
      <dc:date>2013-01-04T11:19:50Z</dc:date>
    </item>
    <item>
      <title>Re: two lookup input fields - no whitespace after AND in mysql query</title>
      <link>https://community.splunk.com/t5/Splunk-Search/two-lookup-input-fields-no-whitespace-after-AND-in-mysql-query/m-p/78356#M181625</link>
      <description>&lt;P&gt;This should be fixed in the latest release (1.0.7)&lt;/P&gt;</description>
      <pubDate>Wed, 16 Jan 2013 03:54:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/two-lookup-input-fields-no-whitespace-after-AND-in-mysql-query/m-p/78356#M181625</guid>
      <dc:creator>ziegfried</dc:creator>
      <dc:date>2013-01-16T03:54:11Z</dc:date>
    </item>
    <item>
      <title>Re: two lookup input fields - no whitespace after AND in mysql query</title>
      <link>https://community.splunk.com/t5/Splunk-Search/two-lookup-input-fields-no-whitespace-after-AND-in-mysql-query/m-p/78357#M181626</link>
      <description>&lt;P&gt;Thanks, it works now.&lt;/P&gt;</description>
      <pubDate>Thu, 17 Jan 2013 06:00:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/two-lookup-input-fields-no-whitespace-after-AND-in-mysql-query/m-p/78357#M181626</guid>
      <dc:creator>micm</dc:creator>
      <dc:date>2013-01-17T06:00:48Z</dc:date>
    </item>
  </channel>
</rss>

