I am new to Splunk addon builder. I am using splunk addon builder to build an addon that feeds the REST API response as input to Splunk enterprise. For this i am using Python modular input method. Since REST API modular input one of the data collection input doesnt supports Oauth2.0 we are using python modular input to get the REST API response
Before i feed the response to splunk enterprise, tried feeding some sample data using the below syntax
def collect_events(helper, ew):
event=helper.new_event(data="123",index="new_index",sourcetype="new_sourcetyp e)
ew.write_event(event)
pass
I am able to print the output in console, but when i search for index="new_index" in search bar, its returing 0 events
Please let me know what i am missing here
... View more