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
Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

SOC4Kafka - New Kafka Connector Powered by OpenTelemetry

The new SOC4Kafka connector, built on OpenTelemetry, enables the collection of Kafka messages and forwards ...

Event Series: Level up your SOC: Advancing with Splunk Enterprise Security

AI has fundamentally raised the stakes for security operations, and this three-part series is your guide to ...

Announcing Modern Navigation: A New Era of Splunk User Experience

We are excited to introduce the Modern Navigation feature in the Splunk Platform, available to both cloud and ...