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!

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...