splunk-sdk-python icon indicating copy to clipboard operation
splunk-sdk-python copied to clipboard

Generating command transform method is called multiple times

Open harsh8398 opened this issue 6 years ago • 2 comments

I looked at the slides here https://conf.splunk.com/files/2017/slides/extending-spl-with-custom-search-commands-and-the-splunk-sdk-for-python.pdf from which I got to know that the command is called multiple times before getting executed.

I see a similar issue #161 was resolved for generating command. Is there any solution to solve this for Eventing command as well?

The issue is that transform method is called multiple times before execute action is sent as metadata. This could cause duplicate log entries which can confuse the customer.

harsh8398 avatar Jun 05 '20 09:06 harsh8398

Hey @harsh8398, We tried reproducing this issue by logging PID but we're getting just one entry in the console per one hit. If it's possible could you please share the app you're trying to run?

vmalaviya-splunk avatar Jan 12 '22 07:01 vmalaviya-splunk

@vmalaviya-splunk Thanks for looking into it. I also tried reproducing it today but it seems to be fixed now. I will close the issue now.

harsh8398 avatar Jan 12 '22 16:01 harsh8398