Splunk Search

Splunk DB Connect: What is wrong with my SQL syntax to MySQL database that db monitor fails validation?

benjaminlin1019
Explorer

Is there anyone can tell me what's wrong with my SQL syntax to MySQL database is wrong that db monitor can't be saved.

SELECT * FROM database_name.mytext_table_name WHERE MATCH(mytext) AGAINST('some key words' IN BOOLEAN MODE) {{AND $rising_column$ > ? }}

Although I dump MySQL datetime column with these setting:
Timestamp column: textdate
format: yyyy-MM-dd HH:mm:ss

cron interval

0,5,10,15,20,25,30,35,40,45,50,55 * * * *

also why */5 * * * * doesn't work either?

0 Karma

benjaminlin1019
Explorer

Ok answer myself I know the problem is that we are using MariaDB 10 which is compatible with MySQL 5.6 and in the new version, they removed "SET OPTION" command in MySQL...gosh https://mariadb.atlassian.net/browse/MDEV-6201

but it can be resolved by using latest Java Connector however, we have trouble to use latest Java Connector

0 Karma
Get Updates on the Splunk Community!

Unleash Unified Security and Observability with Splunk Cloud Platform

     Now Available on Microsoft AzureThursday, March 27, 2025  |  11AM PST / 2PM EST | Register NowStep boldly ...

Splunk AppDynamics with Cisco Secure Application

Web applications unfortunately present a target rich environment for security vulnerabilities and attacks. ...

New Splunk Innovations Enhance Performance and Accelerate Troubleshooting

Splunk is excited to announce new releases that empower ITOps and engineering teams to stay ahead in ever ...