Archive2

How to write data into different sourcetype?

New Member

Hello,

I am doing an addon, in the addon i am going to get data from multi-endpoints, and write them to different sourcetypes. But the result is: if sequentialmode is 0, it writes the first endpoint's data into all sourcetypes, if sequentialmode is 1, it writes all endpoints' data into all sourcetypes. what's wrong in my config? Is there any other parameters or config files should i have to config? Here is my inputs.conf. Thanks!

[test://test.com--424-]
host = test.com
endpoint = https://test.com/api/endpoint_1
cookies =
httpheaderpropertys =
authtype = oauth2
oauth2
tokentype = Bearer
oauth2
accesstoken =
oauth2
refreshtoken =
oauth2
clientid =
oauth2
clientsecret =
oauth2
resourceid =
index
errorresponsecodes = 0
index = idxtest
http
method = GET
interval = 300
responsetype = json
disabled = 0
sequential
mode = 1
requesttimeout = 60
sourcetype = endpoint
1
responsehandler = testhandler
streaming
request = 0

[test://test.com--703-]
host = test.com
endpoint = https://test/api/endpoint_2
cookies =
httpheaderpropertys =
authtype = oauth2
oauth2
tokentype = Bearer
oauth2
accesstoken =
oauth2
refreshtoken =
oauth2
refreshurl =
oauth2
clientid =
oauth2
clientsecret =
oauth2
resourceid =
index
errorresponsecodes = 0
index = idxtest
http
method = GET
interval = 300
responsetype = json
disabled = 0
sequential
mode = 1
requesttimeout = 60
sourcetype = endpoint
2
responsehandler = testhandler
streaming
request = 0

Tags (3)
0 Karma
Reply