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
Get Updates on the Splunk Community!

Accelerating Observability as Code with the Splunk AI Assistant

We’ve seen in previous posts what Observability as Code (OaC) is and how it’s now essential for managing ...

Integrating Splunk Search API and Quarto to Create Reproducible Investigation ...

 Splunk is More Than Just the Web Console For Digital Forensics and Incident Response (DFIR) practitioners, ...

Congratulations to the 2025-2026 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...