<?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: SQL Server Splunk App Does Not Show any Servers in All Apps and Add-ons</title>
    <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/SQL-Server-Splunk-App-Does-Not-Show-any-Servers/m-p/52185#M2945</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 AUTHORITY\SYSTEM (Properties) and grant the user &lt;STRONG&gt;sysadmin&lt;/STRONG&gt; 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" target="_blank"&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>Mon, 28 Sep 2020 17:14:02 GMT</pubDate>
    <dc:creator>amiracle</dc:creator>
    <dc:date>2020-09-28T17:14:02Z</dc:date>
    <item>
      <title>SQL Server Splunk App Does Not Show any Servers</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/SQL-Server-Splunk-App-Does-Not-Show-any-Servers/m-p/52181#M2941</link>
      <description>&lt;P&gt;Hi&lt;BR /&gt;
I have went through the documentation to install the SQL Server Splunk app but no SQL Server are being shown in the app.&lt;/P&gt;

&lt;P&gt;I am able to view the Server Audit logs from the Windows Application log. I can see data on the Logins and Logouts to SQL Server. I am also unable to drill down. An error shows up and quickly disappears. Any hep greatly appreciated.&lt;/P&gt;</description>
      <pubDate>Fri, 30 Aug 2013 16:11:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/SQL-Server-Splunk-App-Does-Not-Show-any-Servers/m-p/52181#M2941</guid>
      <dc:creator>josephkandi</dc:creator>
      <dc:date>2013-08-30T16:11:37Z</dc:date>
    </item>
    <item>
      <title>Re: SQL Server Splunk App Does Not Show any Servers</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/SQL-Server-Splunk-App-Does-Not-Show-any-Servers/m-p/52182#M2942</link>
      <description>&lt;P&gt;1 - First of all, ensure that you have&lt;BR /&gt;
   properly deployed Powershell and&lt;BR /&gt;
   Windows TA-s on forwarder. Powershell TA have a most&lt;BR /&gt;
   cranky installation process - double&lt;BR /&gt;
   check script execution rights and&lt;BR /&gt;
   related powershell script execution errors in splunkd.log&lt;/P&gt;

&lt;P&gt;2 - check that you have SQL TA properly&lt;BR /&gt;
   deployed &lt;/P&gt;

&lt;P&gt;3 - ensure you have SQL&lt;BR /&gt;
   audit events in Splunk in simple&lt;BR /&gt;
   search &lt;/P&gt;

&lt;P&gt;4 - run lookup generating&lt;BR /&gt;
   scripts in SQL app&lt;/P&gt;</description>
      <pubDate>Mon, 28 Oct 2013 10:32:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/SQL-Server-Splunk-App-Does-Not-Show-any-Servers/m-p/52182#M2942</guid>
      <dc:creator>Lehanov</dc:creator>
      <dc:date>2013-10-28T10:32:34Z</dc:date>
    </item>
    <item>
      <title>Re: SQL Server Splunk App Does Not Show any Servers</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/SQL-Server-Splunk-App-Does-Not-Show-any-Servers/m-p/52183#M2943</link>
      <description>&lt;P&gt;I ran into this issue as well.. My issue ended up being execution policy settings in Powershell by default it does not allow scripting from the service account.  You have to run a powershell cmd to change it from restricted to something less, to test you can set it to unrestricted then step down the policy 1 at a time.  Once I did this it started working right away.&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;This should be added to check in the documentation as it was not there and it is a Powershell default setting if you just installed it via the documentation.&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;Matt&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jan 2014 19:31:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/SQL-Server-Splunk-App-Does-Not-Show-any-Servers/m-p/52183#M2943</guid>
      <dc:creator>matt4321</dc:creator>
      <dc:date>2014-01-16T19:31:25Z</dc:date>
    </item>
    <item>
      <title>Re: SQL Server Splunk App Does Not Show any Servers</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/SQL-Server-Splunk-App-Does-Not-Show-any-Servers/m-p/52184#M2944</link>
      <description>&lt;P&gt;i agree with lehanov. the ad-dons should be placed on the forwarder &lt;BR /&gt;
if you check locally on the forwarder var/log/splunk/powershell and powershell2 , you will see any possible error.&lt;/P&gt;</description>
      <pubDate>Fri, 30 May 2014 11:47:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/SQL-Server-Splunk-App-Does-Not-Show-any-Servers/m-p/52184#M2944</guid>
      <dc:creator>Akili</dc:creator>
      <dc:date>2014-05-30T11:47:33Z</dc:date>
    </item>
    <item>
      <title>Re: SQL Server Splunk App Does Not Show any Servers</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/SQL-Server-Splunk-App-Does-Not-Show-any-Servers/m-p/52185#M2945</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 AUTHORITY\SYSTEM (Properties) and grant the user &lt;STRONG&gt;sysadmin&lt;/STRONG&gt; 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" target="_blank"&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>Mon, 28 Sep 2020 17:14:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/SQL-Server-Splunk-App-Does-Not-Show-any-Servers/m-p/52185#M2945</guid>
      <dc:creator>amiracle</dc:creator>
      <dc:date>2020-09-28T17:14:02Z</dc:date>
    </item>
  </channel>
</rss>

