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!

Welcome to the Splunk Community!

(view in My Videos) We're so glad you're here! The Splunk Community is place to connect, learn, give back, and ...

Tech Talk | Elevating Digital Service Excellence: The Synergy of Splunk RUM & APM

Elevating Digital Service Excellence: The Synergy of Real User Monitoring and Application Performance ...

Adoption of RUM and APM at Splunk

    Unleash the power of Splunk Observability   Watch Now In this can't miss Tech Talk! The Splunk Growth ...