<?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: Missing sourcetypes for Splunk App for Microsoft SQL Server in All Apps and Add-ons</title>
    <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Missing-sourcetypes-for-Splunk-App-for-Microsoft-SQL-Server/m-p/166070#M15763</link>
    <description>&lt;P&gt;PS&amp;gt; Import-Module 'C:\Program Files\SplunkUniversalForwarder\etc\apps\SA-ModularInput-PowerShell\windows_x86_64\bin\Modules\LocalStorage\LocalStorage.psm1'&lt;BR /&gt;
PS&amp;gt; .\Invoke-MonitoredScript.ps1&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;cmdlet Invoke-MonitoredScript.ps1 at command pipeline position 1
Supply values for the following parameters:
Command: .\dbinstances.ps1

SplunkSourceType : Powershell:ScriptExecutionSummary
Identity         : a55a383a-fb73-4851-b3fd-7372fccb03ac
InvocationLine   : .\Invoke-MonitoredScript.ps1
TerminatingError : False
ErrorCount       : 0
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Mon, 28 Sep 2020 17:13:43 GMT</pubDate>
    <dc:creator>SheridanCollege</dc:creator>
    <dc:date>2020-09-28T17:13:43Z</dc:date>
    <item>
      <title>Missing sourcetypes for Splunk App for Microsoft SQL Server</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Missing-sourcetypes-for-Splunk-App-for-Microsoft-SQL-Server/m-p/166068#M15761</link>
      <description>&lt;P&gt;We're running 1 search head and 2 indexers, splunk v6.1.1 on Ubuntu 12.04. MS SQL Servers run on Windows 2008 R2. We are having issues with our SQL Servers. I am trying to install Splunk App for Microsoft SQL Servers. I've got it to the point where the following sourcetypes are showing in splunk:&lt;/P&gt;

&lt;P&gt;MSSQL:Database:Health&lt;BR /&gt;
MSSQL:Host:Information&lt;BR /&gt;
MSSQL:Host:Memory&lt;BR /&gt;
MSSQL:Index:MissingStats&lt;BR /&gt;
MSSQL:Index:Stats&lt;BR /&gt;
MSSQL:Instance:Service&lt;BR /&gt;
MSSQL:Instance:User&lt;/P&gt;

&lt;P&gt;However, I am missing the sourcetypes: MSSQL:Instance:Information, MSSQL:Database:Information, which is the reason the Operations Overview Dashboard is showing no results.&lt;/P&gt;

&lt;P&gt;Anyone have an idea on how to troubleshoot?&lt;/P&gt;</description>
      <pubDate>Thu, 31 Jul 2014 19:18:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Missing-sourcetypes-for-Splunk-App-for-Microsoft-SQL-Server/m-p/166068#M15761</guid>
      <dc:creator>SheridanCollege</dc:creator>
      <dc:date>2014-07-31T19:18:50Z</dc:date>
    </item>
    <item>
      <title>Re: Missing sourcetypes for Splunk App for Microsoft SQL Server</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Missing-sourcetypes-for-Splunk-App-for-Microsoft-SQL-Server/m-p/166069#M15762</link>
      <description>&lt;P&gt;So MSSQL:Instance:Information sourcetype is a powershell input.  I am able to run this powershell successfully on the SQL Server, but I get no results on the search head for sourcetype=MSSQL:Instance:Information.  Any ideas?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;------ inputs.conf --------
[powershell://DBInstances]
script = &amp;amp; "$SplunkHome\etc\apps\TA-SQLServer\bin\Invoke-MonitoredScript.ps1" -Command ".\dbinstances.ps1"
schedule = 0 */5 * ? * *
index = mssql
sourcetype = MSSQL:Instance:Information
source = Powershell
---------------------------
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 31 Jul 2014 20:31:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Missing-sourcetypes-for-Splunk-App-for-Microsoft-SQL-Server/m-p/166069#M15762</guid>
      <dc:creator>SheridanCollege</dc:creator>
      <dc:date>2014-07-31T20:31:45Z</dc:date>
    </item>
    <item>
      <title>Re: Missing sourcetypes for Splunk App for Microsoft SQL Server</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Missing-sourcetypes-for-Splunk-App-for-Microsoft-SQL-Server/m-p/166070#M15763</link>
      <description>&lt;P&gt;PS&amp;gt; Import-Module 'C:\Program Files\SplunkUniversalForwarder\etc\apps\SA-ModularInput-PowerShell\windows_x86_64\bin\Modules\LocalStorage\LocalStorage.psm1'&lt;BR /&gt;
PS&amp;gt; .\Invoke-MonitoredScript.ps1&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;cmdlet Invoke-MonitoredScript.ps1 at command pipeline position 1
Supply values for the following parameters:
Command: .\dbinstances.ps1

SplunkSourceType : Powershell:ScriptExecutionSummary
Identity         : a55a383a-fb73-4851-b3fd-7372fccb03ac
InvocationLine   : .\Invoke-MonitoredScript.ps1
TerminatingError : False
ErrorCount       : 0
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 28 Sep 2020 17:13:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Missing-sourcetypes-for-Splunk-App-for-Microsoft-SQL-Server/m-p/166070#M15763</guid>
      <dc:creator>SheridanCollege</dc:creator>
      <dc:date>2020-09-28T17:13:43Z</dc:date>
    </item>
    <item>
      <title>Re: Missing sourcetypes for Splunk App for Microsoft SQL Server</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Missing-sourcetypes-for-Splunk-App-for-Microsoft-SQL-Server/m-p/166071#M15764</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:13:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Missing-sourcetypes-for-Splunk-App-for-Microsoft-SQL-Server/m-p/166071#M15764</guid>
      <dc:creator>amiracle</dc:creator>
      <dc:date>2020-09-28T17:13:49Z</dc:date>
    </item>
  </channel>
</rss>

