Splunk Enterprise

i am testing a custom app python script to execute in python3

DataOrg
Builder

i tested a python script works with pythin2.7x version and used the same script to run in python3, which returns error code 1.

it works in python2.7x 

below is the commands.conf

[prettyformat]
filename = xmlformat.py
retainsevents = true
overrides_timeorder = false
run_in_preview = false
streaming = true
python.version = python3

Labels (2)
Tags (2)
0 Karma

richgalloway
SplunkTrust
SplunkTrust

There are many reasons why a script would return error code 1 and the information supplied doesn't begin to offer enough information to suggest a solution.

Is the script syntactically compliant with Python3?

Have you checked it with the Splunk Upgrade Readiness app?

What errors are reported in the search log?

---
If this reply helps you, Karma would be appreciated.
0 Karma
Get Updates on the Splunk Community!

.conf25 Registration is OPEN!

Ready. Set. Splunk! Your favorite Splunk user event is back and better than ever. Get ready for more technical ...

Detecting Cross-Channel Fraud with Splunk

This article is the final installment in our three-part series exploring fraud detection techniques using ...

Splunk at Cisco Live 2025: Learning, Innovation, and a Little Bit of Mr. Brightside

Pack your bags (and maybe your dancing shoes)—Cisco Live is heading to San Diego, June 8–12, 2025, and Splunk ...