Splunk Search

Receiving error for external lookup (MySQL Connector)

splunkIT
Splunk Employee
Splunk Employee

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.

0 Karma
1 Solution

splunkIT
Splunk Employee
Splunk Employee

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.

View solution in original post

splunkIT
Splunk Employee
Splunk Employee

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.

Get Updates on the Splunk Community!

Adoption of RUM and APM at Splunk

    Unleash the power of Splunk Observability   Watch Now In this can't miss Tech Talk! The Splunk Growth ...

Routing logs with Splunk OTel Collector for Kubernetes

The Splunk Distribution of the OpenTelemetry (OTel) Collector is a product that provides a way to ingest ...

Welcome to the Splunk Community!

(view in My Videos) We're so glad you're here! The Splunk Community is place to connect, learn, give back, and ...