<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic How to write data into different sourcetype? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-write-data-into-different-sourcetype/m-p/383593#M100259</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;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 sequential_mode is 0, it writes the first endpoint's data into all sourcetypes, if sequential_mode 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!&lt;/P&gt;

&lt;P&gt;[test://test.com--424-]&lt;BR /&gt;
host = test.com&lt;BR /&gt;
endpoint = &lt;A href="https://test.com/api/endpoint_1" target="_blank"&gt;https://test.com/api/endpoint_1&lt;/A&gt;&lt;BR /&gt;
cookies = &lt;BR /&gt;
http_header_propertys = &lt;BR /&gt;
auth_type = oauth2&lt;BR /&gt;
oauth2_token_type = Bearer&lt;BR /&gt;
oauth2_access_token = &lt;BR /&gt;
oauth2_refresh_token = &lt;BR /&gt;
oauth2_client_id = &lt;BR /&gt;
oauth2_client_secret = &lt;BR /&gt;
oauth2_resource_id = &lt;BR /&gt;
index_error_response_codes = 0&lt;BR /&gt;
index = idx_test&lt;BR /&gt;
http_method = GET&lt;BR /&gt;
interval = 300&lt;BR /&gt;
response_type = json&lt;BR /&gt;
disabled = 0&lt;BR /&gt;
sequential_mode = 1&lt;BR /&gt;
request_timeout = 60&lt;BR /&gt;
sourcetype = endpoint_1&lt;BR /&gt;
response_handler = testhandler&lt;BR /&gt;
streaming_request = 0&lt;/P&gt;

&lt;P&gt;[test://test.com--703-]&lt;BR /&gt;
host = test.com&lt;BR /&gt;
endpoint = &lt;A href="https://test/api/endpoint_2" target="_blank"&gt;https://test/api/endpoint_2&lt;/A&gt;&lt;BR /&gt;
cookies = &lt;BR /&gt;
http_header_propertys = &lt;BR /&gt;
auth_type = oauth2&lt;BR /&gt;
oauth2_token_type = Bearer&lt;BR /&gt;
oauth2_access_token = &lt;BR /&gt;
oauth2_refresh_token = &lt;BR /&gt;
oauth2_refresh_url = &lt;BR /&gt;
oauth2_client_id = &lt;BR /&gt;
oauth2_client_secret = &lt;BR /&gt;
oauth2_resource_id = &lt;BR /&gt;
index_error_response_codes = 0&lt;BR /&gt;
index = idx_test&lt;BR /&gt;
http_method = GET&lt;BR /&gt;
interval = 300&lt;BR /&gt;
response_type = json&lt;BR /&gt;
disabled = 0&lt;BR /&gt;
sequential_mode = 1&lt;BR /&gt;
request_timeout = 60&lt;BR /&gt;
sourcetype = endpoint_2&lt;BR /&gt;
response_handler = testhandler&lt;BR /&gt;
streaming_request = 0&lt;/P&gt;</description>
    <pubDate>Tue, 29 Sep 2020 19:59:56 GMT</pubDate>
    <dc:creator>wangzhaoyu</dc:creator>
    <dc:date>2020-09-29T19:59:56Z</dc:date>
    <item>
      <title>How to write data into different sourcetype?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-write-data-into-different-sourcetype/m-p/383593#M100259</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;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 sequential_mode is 0, it writes the first endpoint's data into all sourcetypes, if sequential_mode 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!&lt;/P&gt;

&lt;P&gt;[test://test.com--424-]&lt;BR /&gt;
host = test.com&lt;BR /&gt;
endpoint = &lt;A href="https://test.com/api/endpoint_1" target="_blank"&gt;https://test.com/api/endpoint_1&lt;/A&gt;&lt;BR /&gt;
cookies = &lt;BR /&gt;
http_header_propertys = &lt;BR /&gt;
auth_type = oauth2&lt;BR /&gt;
oauth2_token_type = Bearer&lt;BR /&gt;
oauth2_access_token = &lt;BR /&gt;
oauth2_refresh_token = &lt;BR /&gt;
oauth2_client_id = &lt;BR /&gt;
oauth2_client_secret = &lt;BR /&gt;
oauth2_resource_id = &lt;BR /&gt;
index_error_response_codes = 0&lt;BR /&gt;
index = idx_test&lt;BR /&gt;
http_method = GET&lt;BR /&gt;
interval = 300&lt;BR /&gt;
response_type = json&lt;BR /&gt;
disabled = 0&lt;BR /&gt;
sequential_mode = 1&lt;BR /&gt;
request_timeout = 60&lt;BR /&gt;
sourcetype = endpoint_1&lt;BR /&gt;
response_handler = testhandler&lt;BR /&gt;
streaming_request = 0&lt;/P&gt;

&lt;P&gt;[test://test.com--703-]&lt;BR /&gt;
host = test.com&lt;BR /&gt;
endpoint = &lt;A href="https://test/api/endpoint_2" target="_blank"&gt;https://test/api/endpoint_2&lt;/A&gt;&lt;BR /&gt;
cookies = &lt;BR /&gt;
http_header_propertys = &lt;BR /&gt;
auth_type = oauth2&lt;BR /&gt;
oauth2_token_type = Bearer&lt;BR /&gt;
oauth2_access_token = &lt;BR /&gt;
oauth2_refresh_token = &lt;BR /&gt;
oauth2_refresh_url = &lt;BR /&gt;
oauth2_client_id = &lt;BR /&gt;
oauth2_client_secret = &lt;BR /&gt;
oauth2_resource_id = &lt;BR /&gt;
index_error_response_codes = 0&lt;BR /&gt;
index = idx_test&lt;BR /&gt;
http_method = GET&lt;BR /&gt;
interval = 300&lt;BR /&gt;
response_type = json&lt;BR /&gt;
disabled = 0&lt;BR /&gt;
sequential_mode = 1&lt;BR /&gt;
request_timeout = 60&lt;BR /&gt;
sourcetype = endpoint_2&lt;BR /&gt;
response_handler = testhandler&lt;BR /&gt;
streaming_request = 0&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 19:59:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-write-data-into-different-sourcetype/m-p/383593#M100259</guid>
      <dc:creator>wangzhaoyu</dc:creator>
      <dc:date>2020-09-29T19:59:56Z</dc:date>
    </item>
  </channel>
</rss>

