All Apps and Add-ons

Need help to resolve the argument passing multiple arguments to python script to get the required results

bkmsuresh7390
Engager

When I try to run the Python script in Splunk Linux server with below command
 python controlFlow IT-PTE-TEST '[{"rtfEnv": "IT-PTE-TEST","appId": "exx-xx-xx","appName": " app-two","flowName": "xyz::api-main"}]' 

and give results as 
Environment  GroupName            ApplicationName         FlowName
IT-PTE-TEST   exx-xx-xx                 app-two                           xyz::api-main

When I try to call the same script from the Splunk UI
|script controlFlow IT-PTE-TEST "[{\"rtfEnv\": \"IT-PTE-TEST \",\"appId\": \"exx-xx-xx \",\"appName\": \"app-two\",\"flowName\": \"xyz::api-main"}]" check

[{"rtfEnv": "IT-PTE-TEST"appIdappNameflowName
EnvironmentGroupNameApplicationNameFlowName
IT-PTE-TESTexx-xx-xx   app-twoxyz::api-main
    

 

Here passing argument is coming as outcome fields. Can you help to resolve the issue.

Want to get the same result as we run in the server.

 

Labels (1)
0 Karma

bkmsuresh7390
Engager

Hi All,

Issue is resolved, its fixed in the Python code itself. They made change in getting the arguments. It fixes the issue.

Thanks,

Suresh M

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!

May 2026 Splunk Expert Sessions: Security & Observability

Level Up Your Operations: May 2026 Splunk Expert Sessions Whether you are refining your security posture or ...

Network to App: Observability Unlocked [May & June Series]

In today’s digital landscape, your environment is no longer confined to the data center. It spans complex ...

SPL2 Deep Dives, AppDynamics Integrations, SAML Made Simple and Much More on Splunk ...

Splunk Lantern is Splunk’s customer success center that provides practical guidance from Splunk experts on key ...