<?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 Re: Splunk App for Microsoft SQL-Server installation in All Apps and Add-ons</title>
    <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Splunk-App-for-Microsoft-SQL-Server-installation/m-p/122231#M9454</link>
    <description>&lt;P&gt;Thanks to all: the problem was solved by changing the path of the script file input.conf MT-SQLServer. &lt;BR /&gt;
I had already tried to set permanently in the PowerShell variable $ SPLUNK_HOME but it did not work, but in this way is OK. &lt;BR /&gt;
Thank you very much!. &lt;BR /&gt;
Hello. &lt;BR /&gt;
Joseph&lt;/P&gt;</description>
    <pubDate>Sat, 02 Aug 2014 06:43:37 GMT</pubDate>
    <dc:creator>gcusello</dc:creator>
    <dc:date>2014-08-02T06:43:37Z</dc:date>
    <item>
      <title>Splunk App for Microsoft SQL-Server installation</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Splunk-App-for-Microsoft-SQL-Server-installation/m-p/122226#M9449</link>
      <description>&lt;P&gt;Hi at All.&lt;BR /&gt;
I'm tryng to install Splunk App for SQL Server but I encountered some problems.&lt;BR /&gt;
I Installed the App on Splunk Enterprise 6.1.1.&lt;BR /&gt;
I installed on the DB Server (Windows Server 2008 Enterprise SP2 con DB SQL Server 2008/R2 Enterprise Edition) the requested components:&lt;BR /&gt;
 * .NET 4.5&lt;BR /&gt;
 * Windows update with PowerShell 3.0&lt;BR /&gt;
 * TA Windows&lt;BR /&gt;
 * SA-ModularInput-Powershell&lt;BR /&gt;
 * TA-SQLServer&lt;BR /&gt;
I setted the correct permits to the user "Local Service" (this is described in Community)&lt;BR /&gt;
I enabled PowerShell scripts (I found the solution to this problem in Community).&lt;BR /&gt;
The Splunk App receives all the events except the ones from PowerShell Scripts (this means that the Forwarder is working).&lt;BR /&gt;
Everyway "mssql" index remains empty.&lt;/P&gt;

&lt;P&gt;I noted that TA-SQLServer ans  SA-ModularInput-Powershell need many environment variables to work properly, but I don't understand how to set them and if there's an installation procedure: in documentation there's only to unzip file, to copy it in  etc/apps and restart forwarder.&lt;/P&gt;

&lt;P&gt;Launching example scripts by PowerShell command line they correctly run.&lt;BR /&gt;
Instead, launching TA-SQLServer scripts by PowerShell command line, they  show that they didn't find any components, probably because variables aren't setted.&lt;/P&gt;

&lt;P&gt;Anyone encountered the same problem? how solved it.&lt;/P&gt;

&lt;P&gt;Thank you in advance.&lt;BR /&gt;
Bye.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
      <pubDate>Fri, 27 Jun 2014 10:25:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Splunk-App-for-Microsoft-SQL-Server-installation/m-p/122226#M9449</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2014-06-27T10:25:13Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk App for Microsoft SQL-Server installation</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Splunk-App-for-Microsoft-SQL-Server-installation/m-p/122227#M9450</link>
      <description>&lt;P&gt;Check the inputs.conf and all the powershell scripts in the TA-SQLServer directory.  Replace any references to $SplunkHome with the path to the SplunkUniversalForwarder you installed.&lt;/P&gt;

&lt;P&gt;You're TA-SQLServer scripts didn't find any components because you didn't run Import-Module first to import the required .psm1 files&lt;/P&gt;</description>
      <pubDate>Thu, 31 Jul 2014 18:59:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Splunk-App-for-Microsoft-SQL-Server-installation/m-p/122227#M9450</guid>
      <dc:creator>SheridanCollege</dc:creator>
      <dc:date>2014-07-31T18:59:45Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk App for Microsoft SQL-Server installation</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Splunk-App-for-Microsoft-SQL-Server-installation/m-p/122228#M9451</link>
      <description>&lt;P&gt;I figured this one out, finally.  Here's what I did:&lt;BR /&gt;
Windows Server 2008 R2 and Windows 2012 R2 - Open Powershell as Administrator&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;PS C:\&amp;gt;Get-Execution Policy
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;If it's Restricted, then do the following:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;PS C:\&amp;gt;Set-Execution Policy Bypass
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Say Yes to the Execution Policy Change.&lt;/P&gt;

&lt;P&gt;Then run Get-ExecutionPolicy and see that it changed to Bypass:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;PS C:\&amp;gt; Get-ExecutionPolicy
Bypass
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Once you have that done, now you'll need to make one more change.&lt;/P&gt;

&lt;P&gt;Open your SQL Server Management Studio and log in as sysadmin (sa). Go to Security -&amp;gt;Logins -&amp;gt; NT AUTHORITYSYSTEM (Properties) and grant the user sysadmin Server Role.   Apply the change and restart your Splunk service.  (Thanks Adrian:  &lt;A href="http://answers.splunk.com/answers/108974/problem-with-powershell-and-splunk_for_sqlserver-app"&gt;http://answers.splunk.com/answers/108974/problem-with-powershell-and-splunk_for_sqlserver-app&lt;/A&gt;)&lt;/P&gt;

&lt;P&gt;Once you have all these steps done, then go into the app and run the Lookup Table Rebuilder (Searches &amp;amp; Reports-&amp;gt;Lookup Table Rebuilder)&lt;/P&gt;

&lt;P&gt;Lastly, you can run the search: &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=mssql | stats count, values(sourcetype) by host
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;You should see the following source types show up:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;MSSQL:Database:Health
MSSQL:Host:Memory
MSSQL:Instance:Service
MSSQL:Instance:User
Powershell:ScriptExecutionSummary
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 31 Jul 2014 21:43:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Splunk-App-for-Microsoft-SQL-Server-installation/m-p/122228#M9451</guid>
      <dc:creator>amiracle</dc:creator>
      <dc:date>2014-07-31T21:43:15Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk App for Microsoft SQL-Server installation</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Splunk-App-for-Microsoft-SQL-Server-installation/m-p/122229#M9452</link>
      <description>&lt;P&gt;Thanks to all: the problem was solved by changing the path of the script file input.conf MT-SQLServer. 
I had already tried to set permanently in the PowerShell variable $ SPLUNK_HOME but it did not work, but in this way is OK. 
Thank you very much! 
Hello. 
Joseph&lt;/P&gt;</description>
      <pubDate>Sat, 02 Aug 2014 06:41:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Splunk-App-for-Microsoft-SQL-Server-installation/m-p/122229#M9452</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2014-08-02T06:41:15Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk App for Microsoft SQL-Server installation</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Splunk-App-for-Microsoft-SQL-Server-installation/m-p/122230#M9453</link>
      <description>&lt;P&gt;I already tried to configure execution policies on PowerShell, but the problem was in scripts paths.&lt;/P&gt;</description>
      <pubDate>Sat, 02 Aug 2014 06:43:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Splunk-App-for-Microsoft-SQL-Server-installation/m-p/122230#M9453</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2014-08-02T06:43:10Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk App for Microsoft SQL-Server installation</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Splunk-App-for-Microsoft-SQL-Server-installation/m-p/122231#M9454</link>
      <description>&lt;P&gt;Thanks to all: the problem was solved by changing the path of the script file input.conf MT-SQLServer. &lt;BR /&gt;
I had already tried to set permanently in the PowerShell variable $ SPLUNK_HOME but it did not work, but in this way is OK. &lt;BR /&gt;
Thank you very much!. &lt;BR /&gt;
Hello. &lt;BR /&gt;
Joseph&lt;/P&gt;</description>
      <pubDate>Sat, 02 Aug 2014 06:43:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Splunk-App-for-Microsoft-SQL-Server-installation/m-p/122231#M9454</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2014-08-02T06:43:37Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk App for Microsoft SQL-Server installation</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Splunk-App-for-Microsoft-SQL-Server-installation/m-p/122232#M9455</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;i'm just started working splunk have same troubles getting the powershells running. What du you mean with running the Import-Module first?&lt;BR /&gt;
After clicking on Generate Lookups the csv Files are empty. I replaced the $SplunkHome with the correct path of the Universalforwarder Installation. &lt;/P&gt;

&lt;P&gt;And some furhter Questions.....I generate the Lookups on the Search Head or? This is a Linux Host, how can a Linux Host handle Powershell Scripts? Do i have to do something else?&lt;BR /&gt;
Do i have do deplay the addon /etc/apps/Splunk_for_SQLServer/appserver/addons/TA-SQLServer also to the universalforwarder running on the sql server?&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 09:30:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Splunk-App-for-Microsoft-SQL-Server-installation/m-p/122232#M9455</guid>
      <dc:creator>Spranta</dc:creator>
      <dc:date>2020-09-29T09:30:09Z</dc:date>
    </item>
  </channel>
</rss>

