I haven't been able to input data from the SPLUNK REST_API bu i have this is script that fetch the data and allow me to store it in a variable or a file like json or csv. I want to know if its possible to send the variable or the data stream directly to Splunk as individual events. Heres is my code:
from facepy import GraphAPI
import urllib
access = 'token'
graph = GraphAPI(access)
page_id= 'id'
datas= graph.get(page_id+'/posts?fields=message,likes, name', page=True, retry=5, limit=2)
posts=[]
for data in datas:
posts.append(data)
the question is, how can I send the data to splunk as individual events, one for each post for example.
... View more