<?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 Add-on for Microsoft SQL Server: How to create audit object for ALL tables at once, not individually? in All Apps and Add-ons</title>
    <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Splunk-Add-on-for-Microsoft-SQL-Server-How-to-create-audit/m-p/257071#M29599</link>
    <description>&lt;P&gt;Yes, enable it for the entire database instead:&lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/AddOns/released/MSSQLServer/SQLServerconfiguration#Example_of_creating_an_audit_object_at_the_database_level"&gt;http://docs.splunk.com/Documentation/AddOns/released/MSSQLServer/SQLServerconfiguration#Example_of_creating_an_audit_object_at_the_database_level&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Or the entire server:&lt;BR /&gt;
&lt;A href="http://docs.splunk.com/Documentation/AddOns/released/MSSQLServer/SQLServerconfiguration#Example_of_creating_an_audit_object_at_the_server_level"&gt;http://docs.splunk.com/Documentation/AddOns/released/MSSQLServer/SQLServerconfiguration#Example_of_creating_an_audit_object_at_the_server_level&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;These are from the link you posted.&lt;/P&gt;</description>
    <pubDate>Wed, 18 May 2016 16:02:05 GMT</pubDate>
    <dc:creator>jkat54</dc:creator>
    <dc:date>2016-05-18T16:02:05Z</dc:date>
    <item>
      <title>Splunk Add-on for Microsoft SQL Server: How to create audit object for ALL tables at once, not individually?</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Splunk-Add-on-for-Microsoft-SQL-Server-How-to-create-audit/m-p/257070#M29598</link>
      <description>&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/AddOns/released/MSSQLServer/SQLServerconfiguration"&gt;http://docs.splunk.com/Documentation/AddOns/released/MSSQLServer/SQLServerconfiguration&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;I'm following this guide to create table audit for each table. However, I have a question: What if we have &amp;gt;100 tables. Is there any short hand that can create audit table for ALL tables in one step?&lt;/P&gt;</description>
      <pubDate>Wed, 18 May 2016 08:50:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Splunk-Add-on-for-Microsoft-SQL-Server-How-to-create-audit/m-p/257070#M29598</guid>
      <dc:creator>hochit</dc:creator>
      <dc:date>2016-05-18T08:50:34Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Add-on for Microsoft SQL Server: How to create audit object for ALL tables at once, not individually?</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Splunk-Add-on-for-Microsoft-SQL-Server-How-to-create-audit/m-p/257071#M29599</link>
      <description>&lt;P&gt;Yes, enable it for the entire database instead:&lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/AddOns/released/MSSQLServer/SQLServerconfiguration#Example_of_creating_an_audit_object_at_the_database_level"&gt;http://docs.splunk.com/Documentation/AddOns/released/MSSQLServer/SQLServerconfiguration#Example_of_creating_an_audit_object_at_the_database_level&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Or the entire server:&lt;BR /&gt;
&lt;A href="http://docs.splunk.com/Documentation/AddOns/released/MSSQLServer/SQLServerconfiguration#Example_of_creating_an_audit_object_at_the_server_level"&gt;http://docs.splunk.com/Documentation/AddOns/released/MSSQLServer/SQLServerconfiguration#Example_of_creating_an_audit_object_at_the_server_level&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;These are from the link you posted.&lt;/P&gt;</description>
      <pubDate>Wed, 18 May 2016 16:02:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Splunk-Add-on-for-Microsoft-SQL-Server-How-to-create-audit/m-p/257071#M29599</guid>
      <dc:creator>jkat54</dc:creator>
      <dc:date>2016-05-18T16:02:05Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Add-on for Microsoft SQL Server: How to create audit object for ALL tables at once, not individually?</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Splunk-Add-on-for-Microsoft-SQL-Server-How-to-create-audit/m-p/257072#M29600</link>
      <description>&lt;P&gt;My understanding database/server level audit can only capture actions like login, permission change, etc, but not table access (CRUD). Am I correct? &lt;/P&gt;

&lt;P&gt;I wonder in such case we should run a short script retreiving all tables and create audit spec on each of them.&lt;/P&gt;

&lt;P&gt;(presudo)&lt;BR /&gt;
foreach &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;CREATE DATABASE AUDIT SPECIFICATION MSSQL_Table_Specification 
FOR SERVER AUDIT MSSQL_Table_Audit 
ADD (UPDATE ON &amp;lt;table&amp;gt; BY &amp;lt;schema&amp;gt; ) WITH (STATE = ON) ;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Is it possible? Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 01 Jun 2016 07:58:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Splunk-Add-on-for-Microsoft-SQL-Server-How-to-create-audit/m-p/257072#M29600</guid>
      <dc:creator>hochit</dc:creator>
      <dc:date>2016-06-01T07:58:12Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Add-on for Microsoft SQL Server: How to create audit object for ALL tables at once, not individually?</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Splunk-Add-on-for-Microsoft-SQL-Server-How-to-create-audit/m-p/257073#M29601</link>
      <description>&lt;P&gt;Another hard question from customer, would database audit above impact DB performance?&lt;/P&gt;</description>
      <pubDate>Fri, 03 Jun 2016 03:51:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Splunk-Add-on-for-Microsoft-SQL-Server-How-to-create-audit/m-p/257073#M29601</guid>
      <dc:creator>hochit</dc:creator>
      <dc:date>2016-06-03T03:51:42Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Add-on for Microsoft SQL Server: How to create audit object for ALL tables at once, not individually?</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Splunk-Add-on-for-Microsoft-SQL-Server-How-to-create-audit/m-p/257074#M29602</link>
      <description>&lt;P&gt;Auditing absolutely will impact performance, especially if its a heavily used database/table/etc and then even more so if you're writing audits to a slow disk.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Best Practices
-Write audit logs to a centralized location
-To facilitate processing of the audited data, load the logs into a database
-Use a file as a target for optimal performance
-Use targeted auditing to minimize the collected data and better performance
-When writing to the Windows logs, ensure that the roll-over policy of the Windows Logs, coincides with that of your audit strategy
- See more at: &lt;A href="http://www.sqlshack.com/understanding-sql-server-audit/#sthash.71JR77T3.dpuf" target="test_blank"&gt;http://www.sqlshack.com/understanding-sql-server-audit/#sthash.71JR77T3.dpuf&lt;/A&gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;As for your previous question, it's best to go to a SQL forum to ask that as I'm not a DBA.&lt;/P&gt;</description>
      <pubDate>Fri, 03 Jun 2016 12:28:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Splunk-Add-on-for-Microsoft-SQL-Server-How-to-create-audit/m-p/257074#M29602</guid>
      <dc:creator>jkat54</dc:creator>
      <dc:date>2016-06-03T12:28:15Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Add-on for Microsoft SQL Server: How to create audit object for ALL tables at once, not individually?</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Splunk-Add-on-for-Microsoft-SQL-Server-How-to-create-audit/m-p/257075#M29603</link>
      <description>&lt;P&gt;I verified it myself. We can indeed create audit spec on schema insteawd of each table to quickly add auditing on all tables. Defining all actions including select, insert, update, delete are still required.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;ALTER DATABASE AUDIT SPECIFICATION MSSQL_Table_Specification  
FOR SERVER AUDIT MSSQL_Table_Audit 
ADD (select ON SCHEMA::dbo BY dbo),
ADD (insert ON SCHEMA::dbo BY dbo),
ADD (update ON SCHEMA::dbo BY dbo),
ADD (delete ON SCHEMA::dbo BY dbo)
WITH (STATE = ON) ;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 04 Jun 2016 06:32:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Splunk-Add-on-for-Microsoft-SQL-Server-How-to-create-audit/m-p/257075#M29603</guid>
      <dc:creator>hochit</dc:creator>
      <dc:date>2016-06-04T06:32:26Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Add-on for Microsoft SQL Server: How to create audit object for ALL tables at once, not individually?</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Splunk-Add-on-for-Microsoft-SQL-Server-How-to-create-audit/m-p/257076#M29604</link>
      <description>&lt;P&gt;It's chicken and egg problem... With audit logging (and also Splunk), we can have more insight what impact DB performance on the other hand. So probably the impact of introducing audit is a positive trade-off. I hope my customer would understand this.&lt;/P&gt;

&lt;P&gt;Thanks, appreicated! &lt;/P&gt;</description>
      <pubDate>Sat, 04 Jun 2016 06:45:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Splunk-Add-on-for-Microsoft-SQL-Server-How-to-create-audit/m-p/257076#M29604</guid>
      <dc:creator>hochit</dc:creator>
      <dc:date>2016-06-04T06:45:01Z</dc:date>
    </item>
  </channel>
</rss>

