Splunk Search

two lookup input fields - no whitespace after AND in mysql query

micm
Explorer

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.

From the recent db connect errors search:

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

mysql query log:

33409 Query SELECT slot,number,name FROM port WHERE switchdomain = 58 ANDportindex = 3

So there is missing a whitespace after the AND. Is there any workaround?

0 Karma
1 Solution

ziegfried
Influencer

This should be fixed in the latest release (1.0.7)

View solution in original post

ziegfried
Influencer

This should be fixed in the latest release (1.0.7)

micm
Explorer

Thanks, it works now.

0 Karma
Get Updates on the Splunk Community!

Introducing the Splunk Community Dashboard Challenge!

Welcome to Splunk Community Dashboard Challenge! This is your chance to showcase your skills in creating ...

Built-in Service Level Objectives Management to Bridge the Gap Between Service & ...

Wednesday, May 29, 2024  |  11AM PST / 2PM ESTRegister now and join us to learn more about how you can ...

Get Your Exclusive Splunk Certified Cybersecurity Defense Engineer Certification at ...

We’re excited to announce a new Splunk certification exam being released at .conf24! If you’re headed to Vegas ...