Splunk Search

Getting "error code 1" messages when trying to do an external lookup 4.3

davecroto
Splunk Employee
Splunk Employee

In 4.3 Getting "error code 1" messages when trying to do an external lookup with a Python Script. Script runs ok standalone and of course takes user as it's argument.

~|lookup ad_info_lookup user OUTPUT ad_info

external mysql db

Tags (1)
0 Karma

IgorB
Path Finder

Try checking user's timezone settings. That's what caused external scripts to fail in my case

0 Karma

davecroto
Splunk Employee
Splunk Employee

bl01:~/etc/searchscripts$ python ad_info_lookup.py user ad_info < /home/jnich/test.csv

user,ad_info
jnic,
jchiap,
iskell,

cat first, questions later:
splunk@seca01:~/etc/searchscripts$ cat /home/jnichols/test.csv |python ad_info_lookup.py user ad_info
user,ad_info
jnic,Security Infrastructure
jchiap,Security Assurance
iskell,Security Assurance

0 Karma
Get Updates on the Splunk Community!

Index This | What is broken 80% of the time by February?

December 2025 Edition   Hayyy Splunk Education Enthusiasts and the Eternally Curious!    We’re back with this ...

Unlock Faster Time-to-Value on Edge and Ingest Processor with New SPL2 Pipeline ...

Hello Splunk Community,   We're thrilled to share an exciting update that will help you manage your data more ...

Splunk MCP & Agentic AI: Machine Data Without Limits

Discover how the Splunk Model Context Protocol (MCP) Server can revolutionize the way your organization uses ...