<?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: Can Splunk App for Microsoft SQL Server monitor SQL server 2014? in All Apps and Add-ons</title>
    <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Can-Splunk-App-for-Microsoft-SQL-Server-monitor-SQL-server-2014/m-p/160469#M14830</link>
    <description>&lt;P&gt;First, don't try to just run the databases.ps1 script at the powershell command line, it will not run.  It has to be run using the Invoke-Monitor script.  The SA-Modularinput-Powershell is correctly added and it will actually read the stanzas from the TA-SQLServer/local/inputs.conf that specify 'powershell.'  &lt;/P&gt;

&lt;P&gt;The way I resolved that issue was to go through the second part of my answer, which was to give the NT AUTHORITY SYSTEM account sysadmin privileges through the MSSQL Management Studio.  Don't try and run the PS at a command line since it's basically calling the Common.PSM1 script which is why you're seeing the issue with the Import-LocalStorage. &lt;/P&gt;

&lt;P&gt;Here's another tip, once you have it correctly setup, you'll see the XML files show up in your $SPLUNK_HOME/var/lib/splunk/modularinputs/powershell/Databases directory.  &lt;/P&gt;

&lt;P&gt;I hope that helps you out.&lt;/P&gt;</description>
    <pubDate>Thu, 31 Jul 2014 22:55:25 GMT</pubDate>
    <dc:creator>amiracle</dc:creator>
    <dc:date>2014-07-31T22:55:25Z</dc:date>
    <item>
      <title>Can Splunk App for Microsoft SQL Server monitor SQL server 2014?</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Can-Splunk-App-for-Microsoft-SQL-Server-monitor-SQL-server-2014/m-p/160465#M14826</link>
      <description>&lt;P&gt;Hi There, Did anyone here managed to monitor SQL server 2014? The app doc suggests that it can only monitor 2008 and 2012 R2.&lt;/P&gt;

&lt;P&gt;I did install the app and have upload the TA-SQLServer, SA-ModularInput-PowerShell and Splunk_TA_windows into my SQL server 2014. I tried to run the powershell scripts individually on the SQL server and see the following error:&lt;/P&gt;

&lt;P&gt;I have also enabled gp - turn on script and execution (allow local scripts and remote signed scripts)&lt;/P&gt;

&lt;P&gt;Common.psm1' was not loaded because no valid module file was found in any module directory&lt;/P&gt;

&lt;P&gt;I get that for all the powershell script.&lt;/P&gt;

&lt;P&gt;Any help will be highly appreciated. &lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 17:11:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Can-Splunk-App-for-Microsoft-SQL-Server-monitor-SQL-server-2014/m-p/160465#M14826</guid>
      <dc:creator>managedservice1</dc:creator>
      <dc:date>2020-09-28T17:11:46Z</dc:date>
    </item>
    <item>
      <title>Re: Can Splunk App for Microsoft SQL Server monitor SQL server 2014?</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Can-Splunk-App-for-Microsoft-SQL-Server-monitor-SQL-server-2014/m-p/160466#M14827</link>
      <description>&lt;P&gt;I have resolved the issue with common.psm1 however now I am having the following issue&lt;/P&gt;

&lt;P&gt;Import-LocalStorage : The term 'Import-LocalStorage' is not recognized as the name of a cmdlet - on databases, dbinstances, dbusers, indexhealth&lt;/P&gt;

&lt;P&gt;Does any here know how to resolve this? &lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 30 Jul 2014 20:45:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Can-Splunk-App-for-Microsoft-SQL-Server-monitor-SQL-server-2014/m-p/160466#M14827</guid>
      <dc:creator>managedservice1</dc:creator>
      <dc:date>2014-07-30T20:45:42Z</dc:date>
    </item>
    <item>
      <title>Re: Can Splunk App for Microsoft SQL Server monitor SQL server 2014?</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Can-Splunk-App-for-Microsoft-SQL-Server-monitor-SQL-server-2014/m-p/160467#M14828</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:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Can-Splunk-App-for-Microsoft-SQL-Server-monitor-SQL-server-2014/m-p/160467#M14828</guid>
      <dc:creator>amiracle</dc:creator>
      <dc:date>2020-09-28T17:13:51Z</dc:date>
    </item>
    <item>
      <title>Re: Can Splunk App for Microsoft SQL Server monitor SQL server 2014?</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Can-Splunk-App-for-Microsoft-SQL-Server-monitor-SQL-server-2014/m-p/160468#M14829</link>
      <description>&lt;P&gt;Hello Thanks for that, it did work. But one question do you know how to resolve the following issue ?&lt;/P&gt;

&lt;P&gt;PS C:\Program Files\SplunkUniversalForwarder\etc\apps\TA-SQLServer\bin&amp;gt; .\databases.ps1&lt;BR /&gt;
Import-LocalStorage : The term 'Import-LocalStorage' is not recognized as the name of a cmdlet, function, script file,&lt;BR /&gt;
or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and&lt;BR /&gt;
try again.&lt;/P&gt;

&lt;P&gt;As mentioned above I do have  SA-ModularInput-PowerShell under C:\Program Files\SplunkUniversalForwarder\etc\apps&lt;/P&gt;

&lt;P&gt;Do I need to specify anything else ??&lt;BR /&gt;
Thanks&lt;/P&gt;</description>
      <pubDate>Thu, 31 Jul 2014 22:17:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Can-Splunk-App-for-Microsoft-SQL-Server-monitor-SQL-server-2014/m-p/160468#M14829</guid>
      <dc:creator>managedservice1</dc:creator>
      <dc:date>2014-07-31T22:17:47Z</dc:date>
    </item>
    <item>
      <title>Re: Can Splunk App for Microsoft SQL Server monitor SQL server 2014?</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Can-Splunk-App-for-Microsoft-SQL-Server-monitor-SQL-server-2014/m-p/160469#M14830</link>
      <description>&lt;P&gt;First, don't try to just run the databases.ps1 script at the powershell command line, it will not run.  It has to be run using the Invoke-Monitor script.  The SA-Modularinput-Powershell is correctly added and it will actually read the stanzas from the TA-SQLServer/local/inputs.conf that specify 'powershell.'  &lt;/P&gt;

&lt;P&gt;The way I resolved that issue was to go through the second part of my answer, which was to give the NT AUTHORITY SYSTEM account sysadmin privileges through the MSSQL Management Studio.  Don't try and run the PS at a command line since it's basically calling the Common.PSM1 script which is why you're seeing the issue with the Import-LocalStorage. &lt;/P&gt;

&lt;P&gt;Here's another tip, once you have it correctly setup, you'll see the XML files show up in your $SPLUNK_HOME/var/lib/splunk/modularinputs/powershell/Databases directory.  &lt;/P&gt;

&lt;P&gt;I hope that helps you out.&lt;/P&gt;</description>
      <pubDate>Thu, 31 Jul 2014 22:55:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Can-Splunk-App-for-Microsoft-SQL-Server-monitor-SQL-server-2014/m-p/160469#M14830</guid>
      <dc:creator>amiracle</dc:creator>
      <dc:date>2014-07-31T22:55:25Z</dc:date>
    </item>
    <item>
      <title>Re: Can Splunk App for Microsoft SQL Server monitor SQL server 2014?</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Can-Splunk-App-for-Microsoft-SQL-Server-monitor-SQL-server-2014/m-p/160470#M14831</link>
      <description>&lt;P&gt;Once again thank you for fast reply. I have looked at the dir I can there are XML files under DBInstances and IndexStats but there is nothing under Databases or DBUsers. I guess that because we are running Instances rather databases....&lt;/P&gt;</description>
      <pubDate>Thu, 31 Jul 2014 23:25:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Can-Splunk-App-for-Microsoft-SQL-Server-monitor-SQL-server-2014/m-p/160470#M14831</guid>
      <dc:creator>managedservice1</dc:creator>
      <dc:date>2014-07-31T23:25:28Z</dc:date>
    </item>
    <item>
      <title>Re: Can Splunk App for Microsoft SQL Server monitor SQL server 2014?</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Can-Splunk-App-for-Microsoft-SQL-Server-monitor-SQL-server-2014/m-p/160471#M14832</link>
      <description>&lt;P&gt;I had this exact same issue and the way I resolved it was giving the authorization to the NT AUTHORITY account sysadmin privilege in the MSSQL Management Studio.  This is a permission issue, so your best bet is to change the settings and then restart Splunk.  Once it restarts, then run the Lookup Rebuilder and it should all work.  Let me know if that works.&lt;/P&gt;</description>
      <pubDate>Thu, 31 Jul 2014 23:30:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Can-Splunk-App-for-Microsoft-SQL-Server-monitor-SQL-server-2014/m-p/160471#M14832</guid>
      <dc:creator>amiracle</dc:creator>
      <dc:date>2014-07-31T23:30:45Z</dc:date>
    </item>
    <item>
      <title>Re: Can Splunk App for Microsoft SQL Server monitor SQL server 2014?</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Can-Splunk-App-for-Microsoft-SQL-Server-monitor-SQL-server-2014/m-p/160472#M14833</link>
      <description>&lt;P&gt;the XML's are created $SPLUNK_HOME/var/lib/splunk/modularinputs/powershell/Databases directory.  but still i dont see the data coming to Splunk search head.&lt;/P&gt;

&lt;P&gt;the mssql index that has to created is it metric or event table that has to be created. Please confirm&lt;/P&gt;</description>
      <pubDate>Sat, 09 Jun 2018 10:02:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Can-Splunk-App-for-Microsoft-SQL-Server-monitor-SQL-server-2014/m-p/160472#M14833</guid>
      <dc:creator>hethaishibk</dc:creator>
      <dc:date>2018-06-09T10:02:54Z</dc:date>
    </item>
  </channel>
</rss>

