Hi @isoutamo In the below method we are looping through data and sending each event to splunk(for indexing) using print method. So while executing this method if we disable script through ui, it does not index any event to splunk and program is immediately terminated. For example: We have 5 events to be indexed. So the for loop should execute print 5 times. Now, suppose it has executed it 2 times and now we disable the script through UI. Then the script will be terminated immediately and the two events which were sent using print function will also not be indexed. Is it expected behaviour and how we could handle such cases gracefully? My code is like this: def stream_to_splunk(self, data):
for event in data:
jsonData = json.dumps({"sourceType": self.sourceType, "event": event})
print(jsonData)
... View more