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!

Detecting Remote Code Executions With the Splunk Threat Research Team

REGISTER NOWRemote code execution (RCE) vulnerabilities pose a significant risk to organizations. If ...

Observability | Use Synthetic Monitoring for Website Metadata Verification

If you are on Splunk Observability Cloud, you may already have Synthetic Monitoringin your observability ...

More Ways To Control Your Costs With Archived Metrics | Register for Tech Talk

Tuesday, May 14, 2024  |  11AM PT / 2PM ET Register to Attend Join us for this Tech Talk and learn how to ...