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!

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...

New in Observability Cloud - Explicit Bucket Histograms

Splunk introduces native support for histograms as a metric data type within Observability Cloud with Explicit ...