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!

See just what you’ve been missing | Observability tracks at Splunk University

Looking to sharpen your observability skills so you can better understand how to collect and analyze data from ...

Weezer at .conf25? Say it ain’t so!

Hello Splunkers, The countdown to .conf25 is on-and we've just turned up the volume! We're thrilled to ...

How SC4S Makes Suricata Logs Ingestion Simple

Network security monitoring has become increasingly critical for organizations of all sizes. Splunk has ...