Using the latest version (1.0) of MySQL Connector app for an external lookup. I can connect to the database, through the app, just fine. I can query the database from within Splunk, can enumerate the database structure, etc. However, if I perform a lookup against the database, I receive the following error:
[DALPMVIF0024] Script for lookup table 'muveLookup' returned error code 1. Results may be incorrect
This splunk setup two search heads and three indexers; so it is a distributed search environment.
The error appears to stem from the fact that we're using the MySQL
Connector in a distributed environment. By adding "head" in the search,
it effectively caused the lookup to happen locally. While this gave the
desired results, limiting the result set was not ideal. So, I've removed
the "head" directive from the search and added "local=1" to the lookup,
which also resolves the problem but without limiting the result set.
The error appears to stem from the fact that we're using the MySQL
Connector in a distributed environment. By adding "head" in the search,
it effectively caused the lookup to happen locally. While this gave the
desired results, limiting the result set was not ideal. So, I've removed
the "head" directive from the search and added "local=1" to the lookup,
which also resolves the problem but without limiting the result set.