<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>splunk Archives | ZappySys Blog</title>
	<atom:link href="https://zappysys.com/blog/tag/splunk/feed/" rel="self" type="application/rss+xml" />
	<link>https://zappysys.com/blog/tag/splunk/</link>
	<description>SSIS / ODBC Drivers / API Connectors for JSON, XML, Azure, Amazon AWS, Salesforce, MongoDB and more</description>
	<lastBuildDate>Tue, 08 Apr 2025 15:45:50 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.4.4</generator>

<image>
	<url>https://zappysys.com/blog/wp-content/uploads/2023/01/cropped-zappysys-symbol-large-32x32.png</url>
	<title>splunk Archives | ZappySys Blog</title>
	<link>https://zappysys.com/blog/tag/splunk/</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>How to read data from Splunk in SSIS</title>
		<link>https://zappysys.com/blog/read-data-splunk-ssis/</link>
		
		<dc:creator><![CDATA[ZappySys]]></dc:creator>
		<pubDate>Sat, 29 Sep 2018 11:35:54 +0000</pubDate>
				<category><![CDATA[HTTP Connection]]></category>
		<category><![CDATA[REST API]]></category>
		<category><![CDATA[REST API Integration]]></category>
		<category><![CDATA[SSIS Connection Manager]]></category>
		<category><![CDATA[SSIS JSON Source (File/REST)]]></category>
		<category><![CDATA[oauth2]]></category>
		<category><![CDATA[rest]]></category>
		<category><![CDATA[rest api]]></category>
		<category><![CDATA[splunk]]></category>
		<category><![CDATA[ssis]]></category>
		<guid isPermaLink="false">https://zappysys.com/blog/?p=4979</guid>

					<description><![CDATA[<p>Introduction Splunk is commonly used for searching, monitoring, and analyzing machine-generated big data, via a Web-style interface. In this post, you will learn how to implement Splunk API Integration with SQL Server or any other RDBMS (e.g. Oracle, MySQL, Postgresql) using SSIS in a few clicks. We will use SSIS XML Source to Read data from Splunk and Load into SQL Server / other [&#8230;]</p>
<p>The post <a href="https://zappysys.com/blog/read-data-splunk-ssis/">How to read data from Splunk in SSIS</a> appeared first on <a href="https://zappysys.com/blog">ZappySys Blog</a>.</p>
]]></description>
										<content:encoded><![CDATA[<h2>Introduction</h2>
<p><a href="https://zappysys.com/blog/wp-content/uploads/2018/09/splunk-logo.png"><img decoding="async" class="alignleft size-thumbnail wp-image-4980" src="https://zappysys.com/blog/wp-content/uploads/2018/09/splunk-logo-150x150.png" alt="Splunk Logo" width="150" height="150" /></a>Splunk is commonly used for searching, monitoring, and analyzing machine-generated big data, via a Web-style interface. In this post, you will learn how to implement <a href="http://docs.splunk.com/Documentation/Splunk/latest/RESTREF/RESTprolog" target="_blank" rel="noopener">Splunk API</a> Integration with SQL Server or any other RDBMS (e.g. Oracle, MySQL, Postgresql) using <strong>SSIS</strong> in a few clicks. We will use <a href="https://zappysys.com/products/ssis-powerpack/ssis-xml-source/" target="_blank" rel="noopener">SSIS XML Source</a> to <strong>Read data from Splunk</strong> and Load into SQL Server / other targets (Using HTTP Connection).</p>
<p>We will discuss on How to Create an Intuit Developer Account, How to Create QuickBooks Online App for OAuth, We will also discuss reverse scenario to <strong>Write data to Splunk</strong> (API POST for Insert or Update in Splunk) using <a href="https://zappysys.com/products/ssis-powerpack/ssis-rest-api-web-service-task/">SSIS REST API Task</a></p>
<p>In nutshell, this post will focus on how to call Splunk API using SSIS.<br />
So let’s get started.</p>
<h2></h2>
<div class="content_block" id="custom_post_widget-2523"><h2><span id="Prerequisites">Prerequisites</span></h2>
Before we perform the steps listed in this article, you will need to make sure the following prerequisites are met:
<ol style="margin-left: 1.5em;">
 	<li><abbr title="SQL Server Integration Services">SSIS</abbr> designer installed. Sometimes it is referred to as <abbr title="Business Intelligence Development Studio">BIDS</abbr> or <abbr title="SQL Server Data Tools">SSDT</abbr> (<a href="https://docs.microsoft.com/en-us/sql/ssdt/download-sql-server-data-tools-ssdt" target="_blank" rel="noopener">download it from the Microsoft site</a>).</li>
 	<li>Basic knowledge of SSIS package development using <em>Microsoft SQL Server Integration Services</em>.</li>
 	<li>Make sure <span style="text-decoration: underline;"><a href="https://zappysys.com/products/ssis-powerpack/" target="_blank" rel="noopener">ZappySys SSIS PowerPack</a></span> is installed (<a href="https://zappysys.com/products/ssis-powerpack/download/" target="_blank" rel="noopener">download it</a>, if you haven't already).</li>
 	<li>(<em>Optional step</em>)<em>.</em> <a href="https://zappysys.zendesk.com/hc/en-us/articles/360035974593" target="_blank" rel="noopener">Read this article</a>, if you are planning to deploy packages to a server and schedule their execution later.</li>
</ol></div>
<h2>What is Splunk</h2>
<p>Splunk is a software platform to search, analyze and visualize the machine-generated data gathered from the websites, applications, sensors, devices etc. which make up your IT infrastructure and business.</p>
<p>The other benefits of implementing Splunk are:</p>
<ul>
<li>Input data can be in any format for e.g. .csv, or JSON or other formats</li>
<li>Give Alerts / Events notification at the onset of a machine state</li>
<li>Accurately predict the resources needed for scaling up the infrastructure</li>
<li>Create knowledge objects for Operational Intelligence</li>
</ul>
<h2>Why Use Splunk REST API</h2>
<p>So there will be a time when you want to automate certain things without using Splunk Web Portal. Here are some example scenarios which can be solved using <a href="http://dev.splunk.com/restapi" target="_blank" rel="noopener">the Splunk REST API</a>.</p>
<ul>
<li>Reading/Update Splunk configuration files</li>
<li>Creating Splunk searches using the REST API</li>
<li>Create a new Splunk object for a specific context</li>
<li>Edit a Splunk object</li>
</ul>
<h2>Step-By-Step &#8211; Import Splunk data into SQL Server</h2>
<p>In order to start, we will show several examples. ZappySys includes an <a href="https://zappysys.com/products/ssis-powerpack/ssis-xml-source/">SSIS XML Source</a> that will help you to call Splunk API, read search job results data from Splunk with SSIS, create a new Saved Search on Splunk with SSIS and do many more actions using REST API. To learn more about Splunk REST API <a href="http://dev.splunk.com/restapi" rel="noopener">check this help file</a>.</p>
<p>To get Splunk data using the REST API call, you need to have a Free or Licensed Splunk Account. You can Download Splunk Enterprise or Register with Splunk <a href="https://www.splunk.com/en_us/download.html">see this link.</a> You can find the videos for <strong>How to Install</strong> and <strong>Getting Data in</strong> on this link: <a href="https://www.splunk.com/en_us/training/videos/all-videos.html" target="_blank" rel="noopener">Splunk Enterprise Videos</a>.</p>
<h3>Create / Configure Splunk Dataset</h3>
<p>So first step in our demo would be make sure we have at least one Splunk Dataset which we can query using REST API. If you have already configured Dataset then skip this section.</p>
<ol>
<li>First of all, let&#8217;s start the Splunk on your machine from the program menu.
<div id="attachment_6225" style="width: 402px" class="wp-caption aligncenter"><a href="https://zappysys.com/blog/wp-content/uploads/2018/09/ssis-start-splunk.png" target="_blank" rel="noopener"><img fetchpriority="high" decoding="async" aria-describedby="caption-attachment-6225" class="wp-image-6225 size-full" src="https://zappysys.com/blog/wp-content/uploads/2018/09/ssis-start-splunk.png" alt="ssis-start-splunk" width="392" height="622" srcset="https://zappysys.com/blog/wp-content/uploads/2018/09/ssis-start-splunk.png 392w, https://zappysys.com/blog/wp-content/uploads/2018/09/ssis-start-splunk-189x300.png 189w" sizes="(max-width: 392px) 100vw, 392px" /></a><p id="caption-attachment-6225" class="wp-caption-text">Start Splunk</p></div></li>
<li>Hence, Splunk opens into the browser. So let&#8217;s logged in and let&#8217;s Add Data for WinEvents to be searched in our next phase.
<div id="attachment_6226" style="width: 921px" class="wp-caption aligncenter"><a href="https://zappysys.com/blog/wp-content/uploads/2018/09/ssis-splunk-add-data-click.png" target="_blank" rel="noopener"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-6226" class="wp-image-6226 size-full" src="https://zappysys.com/blog/wp-content/uploads/2018/09/ssis-splunk-add-data-click-e1550857291681.png" alt="ssis-splunk-add-data-click" width="911" height="439" srcset="https://zappysys.com/blog/wp-content/uploads/2018/09/ssis-splunk-add-data-click-e1550857291681.png 911w, https://zappysys.com/blog/wp-content/uploads/2018/09/ssis-splunk-add-data-click-e1550857291681-300x145.png 300w, https://zappysys.com/blog/wp-content/uploads/2018/09/ssis-splunk-add-data-click-e1550857291681-768x370.png 768w" sizes="(max-width: 911px) 100vw, 911px" /></a><p id="caption-attachment-6226" class="wp-caption-text">Add Data</p></div></li>
<li>To start adding data first, choose a data source. For example, you can monitor WinEvents.
<div id="attachment_6227" style="width: 568px" class="wp-caption aligncenter"><a href="https://zappysys.com/blog/wp-content/uploads/2018/09/ssis-splunk-moniter-data-click.png" target="_blank" rel="noopener"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-6227" class="wp-image-6227 size-full" src="https://zappysys.com/blog/wp-content/uploads/2018/09/ssis-splunk-moniter-data-click-e1550857375668.png" alt="ssis-splunk-moniter-data-click" width="558" height="337" srcset="https://zappysys.com/blog/wp-content/uploads/2018/09/ssis-splunk-moniter-data-click-e1550857375668.png 558w, https://zappysys.com/blog/wp-content/uploads/2018/09/ssis-splunk-moniter-data-click-e1550857375668-300x181.png 300w" sizes="(max-width: 558px) 100vw, 558px" /></a><p id="caption-attachment-6227" class="wp-caption-text">Select Data Source</p></div></li>
<li>Select Search &amp; Reporting in App Context and click next for review and click next to finish.
<div id="attachment_6228" style="width: 993px" class="wp-caption aligncenter"><a href="https://zappysys.com/blog/wp-content/uploads/2018/09/ssis-splunk-select-search-and-reporting.png" target="_blank" rel="noopener"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-6228" class="wp-image-6228 size-full" src="https://zappysys.com/blog/wp-content/uploads/2018/09/ssis-splunk-select-search-and-reporting-e1550857445835.png" alt="ssis-splunk-select-search-and-reporting" width="983" height="423" srcset="https://zappysys.com/blog/wp-content/uploads/2018/09/ssis-splunk-select-search-and-reporting-e1550857445835.png 983w, https://zappysys.com/blog/wp-content/uploads/2018/09/ssis-splunk-select-search-and-reporting-e1550857445835-300x129.png 300w, https://zappysys.com/blog/wp-content/uploads/2018/09/ssis-splunk-select-search-and-reporting-e1550857445835-768x330.png 768w" sizes="(max-width: 983px) 100vw, 983px" /></a><p id="caption-attachment-6228" class="wp-caption-text">Select Search &amp; Reporting</p></div></li>
<li>That&#8217;s it local event logs input has been created successfully for searching.
<div id="attachment_6229" style="width: 914px" class="wp-caption aligncenter"><a href="https://zappysys.com/blog/wp-content/uploads/2018/09/ssis-splunk-start-searching-local-source.png" target="_blank" rel="noopener"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-6229" class="wp-image-6229 size-full" src="https://zappysys.com/blog/wp-content/uploads/2018/09/ssis-splunk-start-searching-local-source-e1550857538570.png" alt="ssis-splunk-start-searching-local-source" width="904" height="640" srcset="https://zappysys.com/blog/wp-content/uploads/2018/09/ssis-splunk-start-searching-local-source-e1550857538570.png 904w, https://zappysys.com/blog/wp-content/uploads/2018/09/ssis-splunk-start-searching-local-source-e1550857538570-300x212.png 300w, https://zappysys.com/blog/wp-content/uploads/2018/09/ssis-splunk-start-searching-local-source-e1550857538570-768x544.png 768w" sizes="(max-width: 904px) 100vw, 904px" /></a><p id="caption-attachment-6229" class="wp-caption-text">Start searching for local events</p></div></li>
<li>Therefore you will redirect to search page.
<div id="attachment_6230" style="width: 1202px" class="wp-caption aligncenter"><a href="https://zappysys.com/blog/wp-content/uploads/2018/09/ssis-splunk-search-page.png" target="_blank" rel="noopener"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-6230" class="wp-image-6230 size-full" src="https://zappysys.com/blog/wp-content/uploads/2018/09/ssis-splunk-search-page-e1550857659614.png" alt="ssis-splunk-search-page" width="1192" height="692" srcset="https://zappysys.com/blog/wp-content/uploads/2018/09/ssis-splunk-search-page-e1550857659614.png 1192w, https://zappysys.com/blog/wp-content/uploads/2018/09/ssis-splunk-search-page-e1550857659614-300x174.png 300w, https://zappysys.com/blog/wp-content/uploads/2018/09/ssis-splunk-search-page-e1550857659614-768x446.png 768w, https://zappysys.com/blog/wp-content/uploads/2018/09/ssis-splunk-search-page-e1550857659614-1024x594.png 1024w" sizes="(max-width: 1192px) 100vw, 1192px" /></a><p id="caption-attachment-6230" class="wp-caption-text">Splunk search page</p></div></li>
<li>So, let&#8217;s import WinEvents search data into SQL Server in the next few sections.</li>
</ol>
<p>&nbsp;</p>
<h3>Connect to Splunk in SSIS / Create Search JOB / Obtain JobID</h3>
<p>Now once you have Splunk Dataset configured, next step is Call Splunk API. So most common thing you will do with splunk API is to call splunk search API. In splunk Search API is Job Style API means you perform following steps</p>
<ol>
<li>First call /services/search/jobs/ endpoint with Search query (in POST) to create search Job. It returns you Job ID (also known as <strong>SID</strong>)</li>
<li>Wait until Job is done (This part may be tricky) &#8230; SO you may have to add timer task after first step and in the 3rd step enable Retry option on HTTP connection just incase it didnt finish within supplied delay.</li>
<li>Once Job finished you can read by calling below API endpoint.<br />
/services/search/jobs/{{your Job Id}}/results?output_mode=json</li>
</ol>
<p>Thats it now let&#8217;s look at actual steps</p>
<ol>
<li>Now let&#8217;s make the first call to search job using a POST method. If you are using a custom time range, pass it in with the POST request. Refer this link for more information: <a href="https://docs.splunk.com/Documentation/Splunk/7.2.3/Search/ExportdatausingRESTAPI" target="_blank" rel="noopener">Export data using the Splunk REST API</a>. If your URL is different than below HTTP connection then Check <strong>Use direct URL</strong> option on REST API Task and enter custom URL.<br />
<pre class="crayon-plain-tag">URL:
https://localhost:8089/services/search/jobs/

Post Reuest Data:
search=search source="WinEventLog:*" host="SCIFI08" earliest=-1d&amp;output_mode=json</pre>
<div id="attachment_6309" style="width: 1579px" class="wp-caption aligncenter"><a href="https://zappysys.com/blog/wp-content/uploads/2018/09/ssis-splunk-search-post-call.png" target="_blank" rel="noopener"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-6309" class="wp-image-6309 size-full" src="https://zappysys.com/blog/wp-content/uploads/2018/09/ssis-splunk-search-post-call.png" alt="ssis-splunk-search-post-call" width="1569" height="714" srcset="https://zappysys.com/blog/wp-content/uploads/2018/09/ssis-splunk-search-post-call.png 1569w, https://zappysys.com/blog/wp-content/uploads/2018/09/ssis-splunk-search-post-call-300x137.png 300w, https://zappysys.com/blog/wp-content/uploads/2018/09/ssis-splunk-search-post-call-768x349.png 768w, https://zappysys.com/blog/wp-content/uploads/2018/09/ssis-splunk-search-post-call-1024x466.png 1024w" sizes="(max-width: 1569px) 100vw, 1569px" /></a><p id="caption-attachment-6309" class="wp-caption-text">Splunk POST Search request</p></div></li>
<li>So let&#8217;s get Response SID(Search job ID) into the variable to be used in the next call to get results.
<div id="attachment_6311" style="width: 1182px" class="wp-caption aligncenter"><a href="https://zappysys.com/blog/wp-content/uploads/2018/09/ssis-splunk-get-sid-in-variable.png" target="_blank" rel="noopener"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-6311" class="wp-image-6311 size-full" src="https://zappysys.com/blog/wp-content/uploads/2018/09/ssis-splunk-get-sid-in-variable.png" alt="ssis-splunk-get-sid-in-variable" width="1172" height="659" srcset="https://zappysys.com/blog/wp-content/uploads/2018/09/ssis-splunk-get-sid-in-variable.png 1172w, https://zappysys.com/blog/wp-content/uploads/2018/09/ssis-splunk-get-sid-in-variable-300x169.png 300w, https://zappysys.com/blog/wp-content/uploads/2018/09/ssis-splunk-get-sid-in-variable-768x432.png 768w, https://zappysys.com/blog/wp-content/uploads/2018/09/ssis-splunk-get-sid-in-variable-1024x576.png 1024w" sizes="(max-width: 1172px) 100vw, 1172px" /></a><p id="caption-attachment-6311" class="wp-caption-text">Store Splunk Response Search Job ID in a variable</p></div></li>
<li>Now add the Data Flow Task to retrieve Splunk search result data using JSON Source (REST API or File) in it. In below URL we are specifying <strong>count=5</strong> but in real world change it to 100 or higher.<br />
<pre class="crayon-plain-tag">TO Get Metadata deatils:
https://localhost:8089/services/search/jobs/1549701697.1424/results?output_mode=json&amp;offset=0&amp;count=5</pre>
<div id="attachment_6314" style="width: 1335px" class="wp-caption aligncenter"><a href="https://zappysys.com/blog/wp-content/uploads/2018/09/ssis-splunk-get-results-meta.png" target="_blank" rel="noopener"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-6314" class="wp-image-6314 size-full" src="https://zappysys.com/blog/wp-content/uploads/2018/09/ssis-splunk-get-results-meta.png" alt="ssis-splunk-get-results-meta" width="1325" height="733" srcset="https://zappysys.com/blog/wp-content/uploads/2018/09/ssis-splunk-get-results-meta.png 1325w, https://zappysys.com/blog/wp-content/uploads/2018/09/ssis-splunk-get-results-meta-300x166.png 300w, https://zappysys.com/blog/wp-content/uploads/2018/09/ssis-splunk-get-results-meta-768x425.png 768w, https://zappysys.com/blog/wp-content/uploads/2018/09/ssis-splunk-get-results-meta-1024x566.png 1024w" sizes="(max-width: 1325px) 100vw, 1325px" /></a><p id="caption-attachment-6314" class="wp-caption-text">Splunk Search JSON Results Data</p></div></li>
<li>Furthermore, Let&#8217;s set pagination to get all the results data.<div class="su-note"  style="border-color:#e5de9d;border-radius:3px;-moz-border-radius:3px;-webkit-border-radius:3px;"><div class="su-note-inner su-u-clearfix su-u-trim" style="background-color:#fff8b7;border-color:#ffffff;color:#333333;border-radius:3px;-moz-border-radius:3px;-webkit-border-radius:3px;">NOTE: In below screenshot we are specifying count=5 and Increment=5 just to show demo but in real world set both items to higher value (e.g. 100) so you request more records per page.</div></div>
<div id="attachment_6319" style="width: 814px" class="wp-caption aligncenter"><a href="https://zappysys.com/blog/wp-content/uploads/2018/09/ssis-splunk-set-pagination.png" target="_blank" rel="noopener"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-6319" class="wp-image-6319 size-full" src="https://zappysys.com/blog/wp-content/uploads/2018/09/ssis-splunk-set-pagination.png" alt="ssis-splunk-set-pagination" width="804" height="860" srcset="https://zappysys.com/blog/wp-content/uploads/2018/09/ssis-splunk-set-pagination.png 804w, https://zappysys.com/blog/wp-content/uploads/2018/09/ssis-splunk-set-pagination-280x300.png 280w, https://zappysys.com/blog/wp-content/uploads/2018/09/ssis-splunk-set-pagination-768x821.png 768w" sizes="(max-width: 804px) 100vw, 804px" /></a><p id="caption-attachment-6319" class="wp-caption-text">Set Pagination</p></div></li>
<li>Let&#8217;s preview the results data.
<div id="attachment_6316" style="width: 1045px" class="wp-caption aligncenter"><a href="https://zappysys.com/blog/wp-content/uploads/2018/09/ssis-splunk-preview-results.png" target="_blank" rel="noopener"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-6316" class="wp-image-6316 size-full" src="https://zappysys.com/blog/wp-content/uploads/2018/09/ssis-splunk-preview-results-e1550857742506.png" alt="Preview Splunk Search Data" width="1035" height="725" srcset="https://zappysys.com/blog/wp-content/uploads/2018/09/ssis-splunk-preview-results-e1550857742506.png 1035w, https://zappysys.com/blog/wp-content/uploads/2018/09/ssis-splunk-preview-results-e1550857742506-300x210.png 300w, https://zappysys.com/blog/wp-content/uploads/2018/09/ssis-splunk-preview-results-e1550857742506-768x538.png 768w, https://zappysys.com/blog/wp-content/uploads/2018/09/ssis-splunk-preview-results-e1550857742506-1024x717.png 1024w" sizes="(max-width: 1035px) 100vw, 1035px" /></a><p id="caption-attachment-6316" class="wp-caption-text">Preview Splunk Search Data</p></div></li>
<li>Edit JSON Source again and replace the below URL with it to get results By SID(Search Job ID) variable. And create the new HTTP connection as if the search job(SID) is newly created, it is possible that we will #get 204s(No Content) until the job is ready to respond.<br />
<pre class="crayon-plain-tag">https://localhost:8089/services/search/jobs/{{User::v_sid}}/results?output_mode=json&amp;offset=0&amp;count=5</pre>
<div id="attachment_6342" style="width: 1505px" class="wp-caption aligncenter"><a href="https://zappysys.com/blog/wp-content/uploads/2018/09/ssis-splunk-204-handling.png" target="_blank" rel="noopener"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-6342" class="wp-image-6342 size-full" src="https://zappysys.com/blog/wp-content/uploads/2018/09/ssis-splunk-204-handling.png" alt="ssis-splunk-204-handling" width="1495" height="731" srcset="https://zappysys.com/blog/wp-content/uploads/2018/09/ssis-splunk-204-handling.png 1495w, https://zappysys.com/blog/wp-content/uploads/2018/09/ssis-splunk-204-handling-300x147.png 300w, https://zappysys.com/blog/wp-content/uploads/2018/09/ssis-splunk-204-handling-768x376.png 768w, https://zappysys.com/blog/wp-content/uploads/2018/09/ssis-splunk-204-handling-1024x501.png 1024w" sizes="(max-width: 1495px) 100vw, 1495px" /></a><p id="caption-attachment-6342" class="wp-caption-text">204 No Content response error handling</p></div></li>
<li>Furthermore, click on OK button and make sure we need to <strong><strong>click on NO.</strong></strong>
<div id="attachment_6343" style="width: 836px" class="wp-caption aligncenter"><a href="https://zappysys.com/blog/wp-content/uploads/2018/09/ssis-splunk-set-variable-url.png" target="_blank" rel="noopener"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-6343" class="wp-image-6343 size-full" src="https://zappysys.com/blog/wp-content/uploads/2018/09/ssis-splunk-set-variable-url.png" alt="ssis-splunk-set-variable-url" width="826" height="733" srcset="https://zappysys.com/blog/wp-content/uploads/2018/09/ssis-splunk-set-variable-url.png 826w, https://zappysys.com/blog/wp-content/uploads/2018/09/ssis-splunk-set-variable-url-300x266.png 300w, https://zappysys.com/blog/wp-content/uploads/2018/09/ssis-splunk-set-variable-url-768x682.png 768w" sizes="(max-width: 826px) 100vw, 826px" /></a><p id="caption-attachment-6343" class="wp-caption-text">Splunk URL With variable</p></div></li>
<li>Finally, we are ready to Load Splunk data into the SQL Server.</li>
</ol>
<h3>Load Splunk data into SQL Server</h3>
<div class="content_block" id="custom_post_widget-5617"><p>ZappySys SSIS PowerPack makes it easy to load data from various sources such as REST, SOAP, JSON, XML, CSV or from other source into SQL Server, or PostgreSQL, or Amazon Redshift, or other  targets. The <strong>Upsert Destination</strong> component allows you to automatically insert new records and update existing ones based on key columns. Below are the detailed steps to configure it.</p>
<h3>Step 1: Add Upsert Destination to Data Flow</h3>
<ol>
<li>Drag and drop the <strong>Upsert Destination</strong> component from the SSIS Toolbox.</li>
<li>Connect your source component (e.g., JSON / REST / Other Source) to the Upsert Destination.</li>
</ol>
<div class="wp-caption aligncenter">
<a href="https://zappysys.com/blog/wp-content/uploads/2017/08/ssis-data-flow-drag-drop-upsert-destination.png">
<img loading="lazy" decoding="async" class="size-full" alt="" src="https://zappysys.com/blog/wp-content/uploads/2017/08/ssis-data-flow-drag-drop-upsert-destination.png" /></a>
<p class="wp-caption-text">SSIS - Data Flow - Drang and Drop Upsert Destination Component</p>
</div>
<h3>Step 2: Configure Target Connection</h3>
<ol>
<li>Double-click the <strong>Upsert Destination</strong> component to open the configuration window.</li>
<li>Under <strong>Connection</strong>, select an existing target connection or click <strong>NEW</strong> to create a new connection.
<ul>
<li>Example: SQL Server, or PostgreSQL, or Amazon Redshift.</li>
</ul>
</li>
</ol>
<h3>Step 3: Select or Create Target Table</h3>
<ol>
<li>In the <strong>Target Table</strong> dropdown, select the table where you want to load data.</li>
<li>Optionally, click <strong>NEW</strong> to create a new table based on the source columns.</li>
</ol>
<div class="wp-caption aligncenter">
<a href="https://zappysys.com/blog/wp-content/uploads/2020/09/upsert-destination-configuration.png">
<img loading="lazy" decoding="async" class="size-full" alt="" src="https://zappysys.com/blog/wp-content/uploads/2020/09/upsert-destination-configuration.png" /></a>
<p class="wp-caption-text">Configure SSIS Upsert Destination Connection - Loading data (REST / SOAP / JSON / XML /CSV) into SQL Server or other target using SSIS</p>
</div>
<h3>Step 4: Map Columns</h3>
<ol>
<li>Go to the <strong>Mappings</strong> tab.</li>
<li>Click <strong>Auto Map</strong> to map source columns to target columns by name.</li>
<li>Ensure you <strong>check the Primary key column(s)</strong> that will determine whether a record is inserted or updated.</li>
<li>You can manually adjust the mappings if necessary.</li>
</ol>
 <div class="wp-caption aligncenter">
<a href="https://zappysys.com/blog/wp-content/uploads/2020/09/upsert-destination-key.png">
<img loading="lazy" decoding="async" class="size-full" alt="" src="https://zappysys.com/blog/wp-content/uploads/2020/09/upsert-destination-key.png" /></a>
<p class="wp-caption-text">SSIS Upsert Destination - Columns Mappings</p>
</div>
<h3>Step 5: Save Settings</h3>
<ul>
<li>Click <strong>OK</strong> to save the Upsert Destination configuration.</li>
</ul>
<h3>Step 6: Optional: Add Logging or Analysis</h3>
<ul>
<li>You may add extra destination components to log the number of inserted vs. updated records for monitoring or auditing purposes.</li>
</ul>
<h3>Step 7: Execute the Package</h3>
<ul>
<li>Run your SSIS package and verify that the data is correctly inserted and updated in the target table.</li>
</ul>
<div class="wp-caption aligncenter">
<a href="https://zappysys.com/blog/wp-content/uploads/2018/12/ssis-upsert-destination-execute.png">
<img loading="lazy" decoding="async" class="size-full" alt="" src="https://zappysys.com/blog/wp-content/uploads/2018/12/ssis-upsert-destination-execute.png" /></a>
<p class="wp-caption-text">SSIS Upsert Destination Execution</p>
</div></div>
<h2><span id="Conclusion">Conclusion</span></h2>
<p>Above all, in this blog, we learned how to read Splunk data in SSIS. Furthermore we used <a href="https://zappysys.com/products/ssis-powerpack/ssis-xml-source/">XML Source Component</a> and <a href="https://zappysys.com/products/ssis-powerpack/ssis-rest-api-web-service-task/">SSIS REST API Task</a> to call Splunk REST API and load data into SQL server. You can <a href="https://zappysys.com/products/ssis-powerpack/">download SSIS PowerPack here</a> to try many other scenarios not discussed in this blog along with 70+ other components.</p>
<h2><span id="References">References</span></h2>
<p>Finally, you can use the following links for more information about the use of Splunk Online REST API with our tools:</p>
<ul>
<li><a href="https://zappysys.com/products/ssis-powerpack/ssis-rest-api-web-service-task/">REST API Task</a>, you can also find <a href="https://youtu.be/jPdcQlWOBZA">Tutorial Video</a> here.</li>
<li><a href="https://zappysys.com/products/ssis-powerpack/ssis-xml-source/">XML Source Component</a>, you can also find <a href="https://youtu.be/2Li6Vy-nQvw">Tutorial Video</a> here.</li>
<li><strong>Help File:</strong> Documentation of <a href="https://zappysys.com/onlinehelp/ssis-powerpack/index.htm#page=ssis-rest-api-web-service-task.htm">REST API Task</a> and <a href="https://zappysys.com/onlinehelp/ssis-powerpack/index.htm#page=ssis-xml-source.htm">XML Source Component</a>.</li>
</ul>
<p>The post <a href="https://zappysys.com/blog/read-data-splunk-ssis/">How to read data from Splunk in SSIS</a> appeared first on <a href="https://zappysys.com/blog">ZappySys Blog</a>.</p>
]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
