<?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: how to do MS SQL security autdit in All Apps and Add-ons</title>
    <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/how-to-do-MS-SQL-security-autdit/m-p/18056#M202</link>
    <description>&lt;P&gt;For MSSQL 2008r2 You can monitor the SQL activity by adding a DB input for the Database log table (i.e. dbo.DatabaseLog).  You will have to install the DB Connect App (DBX) first.&lt;/P&gt;

&lt;P&gt;See this for general information on adding a &lt;A href="http://docs.splunk.com/Documentation/DBX/latest/DeployDBX/Configuredatabasemonitoring"&gt;database input&lt;/A&gt;. &lt;/P&gt;

&lt;P&gt;I used these settings:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Input Type = Tail (Follow based on increasing Value)
Database = blah
Table Name = dbo.DatabaseLog
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;CODE&gt;Rising Column = PostTime&lt;/CODE&gt; (note that if you go into SQL Management Studio, you can see the PostTime column, which Splunk will use for time indexing and also as a key to know when new it needs to tail new records)&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Host Field Value = MSSQL1
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;^^ Note you should set this, otherwise it gets set to $decideOnStartup which I think is a bug&lt;BR /&gt;
    Output = Key-Value &lt;/P&gt;

&lt;P&gt;and everything else I left blank.  &lt;/P&gt;

&lt;P&gt;Clicked save, and the audit records start flying in.&lt;/P&gt;

&lt;P&gt;e.g.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;DatabaseLogID=1597 PostTime=1333054356.407 DatabaseUser=dbo Event=CREATE_EXTENDED_PROPERTY Schema=Sales Object=StoreSurveySchemaCollection TSQL="EXECUTE [sys].[sp_addextendedproperty] N'MS_Description', N'Collection of XML schemas for the Demographics column in the Sales.Store table.', N'SCHEMA', [Sales], N'XML SCHEMA COLLECTION', [StoreSurveySchemaCollection], NULL, NULL;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I hope this works for you.&lt;/P&gt;</description>
    <pubDate>Tue, 26 Mar 2013 23:13:32 GMT</pubDate>
    <dc:creator>khourihan_splun</dc:creator>
    <dc:date>2013-03-26T23:13:32Z</dc:date>
    <item>
      <title>how to do MS SQL security autdit</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/how-to-do-MS-SQL-security-autdit/m-p/18055#M201</link>
      <description>&lt;P&gt;I have many sql server , manager want to audit sql operation secure, how to do it use splunk?  have apps for mssql?&lt;/P&gt;</description>
      <pubDate>Wed, 31 Oct 2012 11:15:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/how-to-do-MS-SQL-security-autdit/m-p/18055#M201</guid>
      <dc:creator>linker</dc:creator>
      <dc:date>2012-10-31T11:15:45Z</dc:date>
    </item>
    <item>
      <title>Re: how to do MS SQL security autdit</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/how-to-do-MS-SQL-security-autdit/m-p/18056#M202</link>
      <description>&lt;P&gt;For MSSQL 2008r2 You can monitor the SQL activity by adding a DB input for the Database log table (i.e. dbo.DatabaseLog).  You will have to install the DB Connect App (DBX) first.&lt;/P&gt;

&lt;P&gt;See this for general information on adding a &lt;A href="http://docs.splunk.com/Documentation/DBX/latest/DeployDBX/Configuredatabasemonitoring"&gt;database input&lt;/A&gt;. &lt;/P&gt;

&lt;P&gt;I used these settings:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Input Type = Tail (Follow based on increasing Value)
Database = blah
Table Name = dbo.DatabaseLog
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;CODE&gt;Rising Column = PostTime&lt;/CODE&gt; (note that if you go into SQL Management Studio, you can see the PostTime column, which Splunk will use for time indexing and also as a key to know when new it needs to tail new records)&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Host Field Value = MSSQL1
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;^^ Note you should set this, otherwise it gets set to $decideOnStartup which I think is a bug&lt;BR /&gt;
    Output = Key-Value &lt;/P&gt;

&lt;P&gt;and everything else I left blank.  &lt;/P&gt;

&lt;P&gt;Clicked save, and the audit records start flying in.&lt;/P&gt;

&lt;P&gt;e.g.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;DatabaseLogID=1597 PostTime=1333054356.407 DatabaseUser=dbo Event=CREATE_EXTENDED_PROPERTY Schema=Sales Object=StoreSurveySchemaCollection TSQL="EXECUTE [sys].[sp_addextendedproperty] N'MS_Description', N'Collection of XML schemas for the Demographics column in the Sales.Store table.', N'SCHEMA', [Sales], N'XML SCHEMA COLLECTION', [StoreSurveySchemaCollection], NULL, NULL;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I hope this works for you.&lt;/P&gt;</description>
      <pubDate>Tue, 26 Mar 2013 23:13:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/how-to-do-MS-SQL-security-autdit/m-p/18056#M202</guid>
      <dc:creator>khourihan_splun</dc:creator>
      <dc:date>2013-03-26T23:13:32Z</dc:date>
    </item>
  </channel>
</rss>

