{"id":5354,"date":"2018-11-12T09:34:59","date_gmt":"2018-11-12T09:34:59","guid":{"rendered":"https:\/\/dbtut.com\/?p=5354"},"modified":"2020-10-07T13:46:09","modified_gmt":"2020-10-07T13:46:09","slug":"how-to-create-sql-server-audit","status":"publish","type":"post","link":"https:\/\/dbtut.com\/index.php\/2018\/11\/12\/how-to-create-sql-server-audit\/","title":{"rendered":"How To Create SQL Server Audit"},"content":{"rendered":"<p>We will create sql server audit step by step in this article. We need to create an Audit file to record transactions made by people and dbas in SQL Server.<\/p>\n<h3>Create SQL Server Audit<\/h3>\n<p>First, right-click Audits in the Security section of SSMS and click on the new audit.<\/p>\n<p>We give a name to the AuditName section. I prefer to give the name of the database I created(AuditDBName). Because I will create the audit database-based.<\/p>\n<h4>SQL Server Auditing Best Practices<\/h4>\n<p>Do not make any changes on &#8220;queue delay&#8221; and\u00a0 &#8220;On Audit Log Failure&#8221; sections.<\/p>\n<p>If you select &#8220;shut down server&#8221; from the &#8220;On Audit Log Failure&#8221; section, sql server service will stop if the audit doesnt work. You can select this option if you do not want the database to work when the audit does not work. This option can be selected in applications where security is very high.<\/p>\n<p>Audit Destination will remain as File.<\/p>\n<p>In the File Path section, we specify the path to write the Audit File.<\/p>\n<p>You can save Audit to the local server where your instance is running. But in order to keep the DBA&#8217;s own security and keep all DBAs under control, it is better to write the audit to a share on a remote server.<\/p>\n<p>On the share on the remote server, the sql server service account must have only the insert and modify authority. There should not be any rights to drop and delete. In this way, a malicious dba will not be able to modify or delete the audit file.<\/p>\n<p>Do not make any changes on the &#8220;Audit File Maximum Limit&#8221; section.<\/p>\n<p>I usually set Maximum File Size specifically.<\/p>\n<p>If the audit size does not exceed 100 MB in 1 month, I set it to 100 MB.<\/p>\n<p>If the audit size will exceed 100 MB in a week, I set it to 1000 MB.<\/p>\n<p>We do not choose Reserve disk space because it unnecessarily allocates disk space before writing audit.<\/p>\n<p>You can also filter the audit from Filter option.<\/p>\n<p>You can see these operations below.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter\" src=\"https:\/\/dbtut.com\/wp-content\/uploads\/2018\/11\/349.png\" width=\"659\" height=\"691\" \/><\/p>\n\n<h3>SQL Server Audit Specification<\/h3>\n<p>We can create two types of audit specification.<\/p>\n<ol>\n<li>Database Audit Specification<\/li>\n<li>Server Audit Specification<\/li>\n<\/ol>\n<h3>Create Database Audit Specification<\/h3>\n<p>Right-click on the &#8220;Database Audit Specification&#8221; in the Security tab of the database, and click &#8220;New Database Audit Specification&#8221;. We give a name from the Name field. We choose the audit we created from Audit section.<\/p>\n<h4>SQL Server Audit Action Type For Database Audit Specification<\/h4>\n<p>Then, in the &#8220;Audit Action Type&#8221; section, we select the sql statement that we want to audit, &#8220;DATABASE&#8221; from the object Class section, database name from the Object Name section, and the user from the Principal Name section.<\/p>\n<p><strong>As a critical knowledge;<\/strong> To watch sysadmin on Instance, you must select dbo in the Principal Name section.<\/p>\n<p>As you can see below, we will audit the selects, updates and deletes performed by sysadmin\u00a0 and updates and deletes performed by denemeUser.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter\" src=\"https:\/\/dbtut.com\/wp-content\/uploads\/2018\/11\/753.png\" width=\"693\" height=\"149\" \/><\/p>\n<h4>SQL Server Audit User Activity<\/h4>\n<p>You can chose specific user from PrincipalName and chose specific audit action type for those users when creating Database Audit Specification.<\/p>\n<h4>SQL Server Audit Select Statements<\/h4>\n<p>Normally we dont audit select statements, because most application sends a lot of select and fill audit log files. But you can audit select statements for speficis users. Look at the above image first. Then Select &#8220;SELECT&#8221; from Audit Action Type and &#8220;DATABASE&#8221; from Object Class , your database name from ObjectName and specific login name you want to audit from PrincipalName.<\/p>\n<h4>SQL Server Audit Table Data Changes<\/h4>\n<p>Like Select statements we have mentioned above you can audit table data changes by using Database Audit Specification. Use UPDATE and DELETE\u00a0 instead of SELECT as action type to perform this operation.<\/p>\n<h3>Create Server Audit Specification<\/h3>\n<p>We do a new audit file configuration by repeating the first operations we performed in the &#8220;Database Level Audit&#8221; section.<\/p>\n<p>Then right click on Server Audit Spesification from Security Tab and click on new server audit specification.<\/p>\n<p>We give a name from the Name section and select the audit we created.<\/p>\n<h5>SQL Server Audit Action Type For Server Audit Specification<\/h5>\n<p>And we choose action from action type and click ok. Here you can follow a lot of things on server level.<\/p>\n<p>For example, failed logins, changes on schemas, changes on audits.<\/p>\n<p>I&#8217;m using almost all server-level actions.<\/p>\n<p>In this way, we record all the work done by the database administrators at the server level.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter\" src=\"https:\/\/dbtut.com\/wp-content\/uploads\/2018\/11\/256.png\" width=\"706\" height=\"105\" \/><\/p>\n<p>For example, if a malicious dba stops the select audit in that database to take a select from a database that should not be read, you can create another audit for logging it.<\/p>\n<p>Or, you can create an audit when a login with a select right is created in a database that should not be read.<\/p>\n<p>In this way, you can follow every step taken by everyone and every breath they take. This includes you. Of course, a dba provides his\/her own security by creating an audit system.<\/p>\n<h4>SQL Server Audit Log<\/h4>\n<p>To see the SQL Server audit log, right click on the relavant Audit file and then click View Audit Logs.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\" wp-image-16743 aligncenter\" src=\"https:\/\/dbtut.com\/wp-content\/uploads\/2018\/11\/sqlserverauditlog.jpg\" alt=\"\" width=\"350\" height=\"269\" \/><\/p>\n<h3>Filtering SQL Server Audits<\/h3>\n<p>Sometimes you may want to use filters when creating Server Audit Specification or Database Audit Specification. You can use below commands for specific columns on the audit file you SELECT<\/p>\n<p>You can SELECT the audit log files we created with the help of the below article.<\/p>\n<p>&#8220;<a href=\"https:\/\/dbtut.com\/index.php\/2018\/11\/13\/how-to-read-sql-server-audit\/\" target=\"_blank\" rel=\"noopener noreferrer\">How To Read SQL Server Audit<\/a>&#8221;<\/p>\n<h3>Filter SQL Server Audit Files<\/h3>\n<pre class=\"lang:default decode:true\">ALTER SERVER AUDIT ServerAudit WITH (STATE = OFF);\nGO\nALTER SERVER AUDIT ServerAudit WHERE column_name_in_the_audit_file &lt;&gt; N'your_filter';\nGO\nALTER SERVER AUDIT ServerAudit WITH (STATE = ON);<\/pre>\n<p>For example I want to exclude a table from an audit;<\/p>\n<pre class=\"lang:default decode:true\">ALTER SERVER AUDIT ServerAudit WITH (STATE = OFF);\nGO\nALTER SERVER AUDIT ServerAudit WHERE object_name_in_the_audit_file &lt;&gt; N'my_table_name_will_be_exluded';\nGO\nALTER SERVER AUDIT ServerAudit WITH (STATE = ON);<\/pre>\n<h3>SQL Server Audit Performance Impact<\/h3>\n<p>Yes, of couse SQL Server auditing has an impact about performance. If your application is using database frequently it decreases performance. I have 12 years of experience about SQL Server and I can not use audit if the database is a database heavily used. However, this is a very rare occurrence. Sometimes you can see wait types about Audits in currently running queries. Look at the article; &#8220;<a href=\"https:\/\/dbtut.com\/index.php\/2018\/07\/22\/how-to-see-current-queries-on-sql-server\/\" target=\"_blank\" rel=\"noopener noreferrer\">Currently Running Queries in SQL Server<\/a>&#8221;<\/p>\n<p>You can create a policy to detect disabled SQL Server audits with the help of the below article.<\/p>\n<p>&#8220;<a href=\"https:\/\/dbtut.com\/index.php\/2019\/06\/17\/how-to-check-disabled-audits-using-policy-based-management\/\" target=\"_blank\" rel=\"noopener noreferrer\">How To Check Disabled Audits Using Policy Based Management<\/a>&#8221;<\/p>\n<p>Below is a link to the details of server level audit actions.<\/p>\n<p>Remember to enable audits and audit specifications.<\/p>\n<p><a href=\"https:\/\/msdn.microsoft.com\/en-us\/library\/cc280663.aspx\">https:\/\/msdn.microsoft.com\/en-us\/library\/cc280663.aspx<\/a><\/p>\n\n<div class=\"pvc_clear\"><\/div>\n<p id=\"pvc_stats_5354\" class=\"pvc_stats all  \" data-element-id=\"5354\" style=\"\"><i class=\"pvc-stats-icon medium\" aria-hidden=\"true\"><svg aria-hidden=\"true\" focusable=\"false\" data-prefix=\"far\" data-icon=\"chart-bar\" role=\"img\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" viewBox=\"0 0 512 512\" class=\"svg-inline--fa fa-chart-bar fa-w-16 fa-2x\"><path fill=\"currentColor\" d=\"M396.8 352h22.4c6.4 0 12.8-6.4 12.8-12.8V108.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v230.4c0 6.4 6.4 12.8 12.8 12.8zm-192 0h22.4c6.4 0 12.8-6.4 12.8-12.8V140.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v198.4c0 6.4 6.4 12.8 12.8 12.8zm96 0h22.4c6.4 0 12.8-6.4 12.8-12.8V204.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v134.4c0 6.4 6.4 12.8 12.8 12.8zM496 400H48V80c0-8.84-7.16-16-16-16H16C7.16 64 0 71.16 0 80v336c0 17.67 14.33 32 32 32h464c8.84 0 16-7.16 16-16v-16c0-8.84-7.16-16-16-16zm-387.2-48h22.4c6.4 0 12.8-6.4 12.8-12.8v-70.4c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v70.4c0 6.4 6.4 12.8 12.8 12.8z\" class=\"\"><\/path><\/svg><\/i> <img loading=\"lazy\" decoding=\"async\" width=\"16\" height=\"16\" alt=\"Loading\" src=\"https:\/\/dbtut.com\/wp-content\/plugins\/page-views-count\/ajax-loader-2x.gif\" border=0 \/><\/p>\n<div class=\"pvc_clear\"><\/div>\n","protected":false},"excerpt":{"rendered":"<p>We will create sql server audit step by step in this article. We need to create an Audit file to record transactions made by people and dbas in SQL Server. Create SQL Server Audit First, right-click Audits in the Security section of SSMS and click on the new audit. We give a name to the &hellip;<\/p>\n<div class=\"pvc_clear\"><\/div>\n<p id=\"pvc_stats_5354\" class=\"pvc_stats all  \" data-element-id=\"5354\" style=\"\"><i class=\"pvc-stats-icon medium\" aria-hidden=\"true\"><svg aria-hidden=\"true\" focusable=\"false\" data-prefix=\"far\" data-icon=\"chart-bar\" role=\"img\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" viewBox=\"0 0 512 512\" class=\"svg-inline--fa fa-chart-bar fa-w-16 fa-2x\"><path fill=\"currentColor\" d=\"M396.8 352h22.4c6.4 0 12.8-6.4 12.8-12.8V108.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v230.4c0 6.4 6.4 12.8 12.8 12.8zm-192 0h22.4c6.4 0 12.8-6.4 12.8-12.8V140.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v198.4c0 6.4 6.4 12.8 12.8 12.8zm96 0h22.4c6.4 0 12.8-6.4 12.8-12.8V204.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v134.4c0 6.4 6.4 12.8 12.8 12.8zM496 400H48V80c0-8.84-7.16-16-16-16H16C7.16 64 0 71.16 0 80v336c0 17.67 14.33 32 32 32h464c8.84 0 16-7.16 16-16v-16c0-8.84-7.16-16-16-16zm-387.2-48h22.4c6.4 0 12.8-6.4 12.8-12.8v-70.4c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v70.4c0 6.4 6.4 12.8 12.8 12.8z\" class=\"\"><\/path><\/svg><\/i> <img loading=\"lazy\" decoding=\"async\" width=\"16\" height=\"16\" alt=\"Loading\" src=\"https:\/\/dbtut.com\/wp-content\/plugins\/page-views-count\/ajax-loader-2x.gif\" border=0 \/><\/p>\n<div class=\"pvc_clear\"><\/div>\n","protected":false},"author":1,"featured_media":16761,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"_uf_show_specific_survey":0,"_uf_disable_surveys":false,"footnotes":""},"categories":[3],"tags":[],"class_list":["post-5354","post","type-post","status-publish","format-standard","has-post-thumbnail","","category-mssql"],"aioseo_notices":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.9 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How To Create SQL Server Audit - Database Tutorials<\/title>\n<meta name=\"description\" content=\"This article contains information about SQL Server audits such as Database Level Audits,Server Level Audits, creating audits,filtering audits\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/dbtut.com\/index.php\/2018\/11\/12\/how-to-create-sql-server-audit\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How To Create SQL Server Audit - Database Tutorials\" \/>\n<meta property=\"og:description\" content=\"This article contains information about SQL Server audits such as Database Level Audits,Server Level Audits, creating audits,filtering audits\" \/>\n<meta property=\"og:url\" content=\"https:\/\/dbtut.com\/index.php\/2018\/11\/12\/how-to-create-sql-server-audit\/\" \/>\n<meta property=\"og:site_name\" content=\"Database Tutorials\" \/>\n<meta property=\"article:published_time\" content=\"2018-11-12T09:34:59+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2020-10-07T13:46:09+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/dbtut.com\/wp-content\/uploads\/2018\/11\/createsqlserveraudit.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"859\" \/>\n\t<meta property=\"og:image:height\" content=\"499\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"dbtut\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"dbtut\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"6 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/dbtut.com\/index.php\/2018\/11\/12\/how-to-create-sql-server-audit\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/dbtut.com\/index.php\/2018\/11\/12\/how-to-create-sql-server-audit\/\"},\"author\":{\"name\":\"dbtut\",\"@id\":\"https:\/\/dbtut.com\/#\/schema\/person\/fc047c39e1e53dce28fc4253529ea408\"},\"headline\":\"How To Create SQL Server Audit\",\"datePublished\":\"2018-11-12T09:34:59+00:00\",\"dateModified\":\"2020-10-07T13:46:09+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/dbtut.com\/index.php\/2018\/11\/12\/how-to-create-sql-server-audit\/\"},\"wordCount\":1061,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/dbtut.com\/#organization\"},\"image\":{\"@id\":\"https:\/\/dbtut.com\/index.php\/2018\/11\/12\/how-to-create-sql-server-audit\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/dbtut.com\/wp-content\/uploads\/2018\/11\/createsqlserveraudit.jpg\",\"articleSection\":[\"MSSQL\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/dbtut.com\/index.php\/2018\/11\/12\/how-to-create-sql-server-audit\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/dbtut.com\/index.php\/2018\/11\/12\/how-to-create-sql-server-audit\/\",\"url\":\"https:\/\/dbtut.com\/index.php\/2018\/11\/12\/how-to-create-sql-server-audit\/\",\"name\":\"How To Create SQL Server Audit - Database Tutorials\",\"isPartOf\":{\"@id\":\"https:\/\/dbtut.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/dbtut.com\/index.php\/2018\/11\/12\/how-to-create-sql-server-audit\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/dbtut.com\/index.php\/2018\/11\/12\/how-to-create-sql-server-audit\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/dbtut.com\/wp-content\/uploads\/2018\/11\/createsqlserveraudit.jpg\",\"datePublished\":\"2018-11-12T09:34:59+00:00\",\"dateModified\":\"2020-10-07T13:46:09+00:00\",\"description\":\"This article contains information about SQL Server audits such as Database Level Audits,Server Level Audits, creating audits,filtering audits\",\"breadcrumb\":{\"@id\":\"https:\/\/dbtut.com\/index.php\/2018\/11\/12\/how-to-create-sql-server-audit\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/dbtut.com\/index.php\/2018\/11\/12\/how-to-create-sql-server-audit\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/dbtut.com\/index.php\/2018\/11\/12\/how-to-create-sql-server-audit\/#primaryimage\",\"url\":\"https:\/\/dbtut.com\/wp-content\/uploads\/2018\/11\/createsqlserveraudit.jpg\",\"contentUrl\":\"https:\/\/dbtut.com\/wp-content\/uploads\/2018\/11\/createsqlserveraudit.jpg\",\"width\":859,\"height\":499},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/dbtut.com\/index.php\/2018\/11\/12\/how-to-create-sql-server-audit\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/dbtut.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How To Create SQL Server Audit\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/dbtut.com\/#website\",\"url\":\"https:\/\/dbtut.com\/\",\"name\":\"Database Tutorials\",\"description\":\"MSSQL, Oracle, PostgreSQL, MySQL, MariaDB, DB2, Sybase, Teradata, Big Data, NOSQL, MongoDB, Couchbase, Cassandra, Windows, Linux\",\"publisher\":{\"@id\":\"https:\/\/dbtut.com\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/dbtut.com\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/dbtut.com\/#organization\",\"name\":\"dbtut\",\"url\":\"https:\/\/dbtut.com\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/dbtut.com\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/dbtut.com\/wp-content\/uploads\/2021\/02\/dbtutlogo.jpg\",\"contentUrl\":\"https:\/\/dbtut.com\/wp-content\/uploads\/2021\/02\/dbtutlogo.jpg\",\"width\":223,\"height\":36,\"caption\":\"dbtut\"},\"image\":{\"@id\":\"https:\/\/dbtut.com\/#\/schema\/logo\/image\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\/\/dbtut.com\/#\/schema\/person\/fc047c39e1e53dce28fc4253529ea408\",\"name\":\"dbtut\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/dbtut.com\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/c322c32021bf651d9e103b183963c479a9c9791ead0715f4348203496c39aa54?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/c322c32021bf651d9e103b183963c479a9c9791ead0715f4348203496c39aa54?s=96&d=mm&r=g\",\"caption\":\"dbtut\"},\"description\":\"We are a team with over 10 years of database management and BI experience. Our Expertises: Oracle, SQL Server, PostgreSQL, MySQL, MongoDB, Elasticsearch, Kibana, Grafana.\",\"sameAs\":[\"http:\/\/NurullahCAKIR\"],\"url\":\"https:\/\/dbtut.com\/index.php\/author\/dbtut\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How To Create SQL Server Audit - Database Tutorials","description":"This article contains information about SQL Server audits such as Database Level Audits,Server Level Audits, creating audits,filtering audits","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/dbtut.com\/index.php\/2018\/11\/12\/how-to-create-sql-server-audit\/","og_locale":"en_US","og_type":"article","og_title":"How To Create SQL Server Audit - Database Tutorials","og_description":"This article contains information about SQL Server audits such as Database Level Audits,Server Level Audits, creating audits,filtering audits","og_url":"https:\/\/dbtut.com\/index.php\/2018\/11\/12\/how-to-create-sql-server-audit\/","og_site_name":"Database Tutorials","article_published_time":"2018-11-12T09:34:59+00:00","article_modified_time":"2020-10-07T13:46:09+00:00","og_image":[{"width":859,"height":499,"url":"https:\/\/dbtut.com\/wp-content\/uploads\/2018\/11\/createsqlserveraudit.jpg","type":"image\/jpeg"}],"author":"dbtut","twitter_card":"summary_large_image","twitter_misc":{"Written by":"dbtut","Est. reading time":"6 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/dbtut.com\/index.php\/2018\/11\/12\/how-to-create-sql-server-audit\/#article","isPartOf":{"@id":"https:\/\/dbtut.com\/index.php\/2018\/11\/12\/how-to-create-sql-server-audit\/"},"author":{"name":"dbtut","@id":"https:\/\/dbtut.com\/#\/schema\/person\/fc047c39e1e53dce28fc4253529ea408"},"headline":"How To Create SQL Server Audit","datePublished":"2018-11-12T09:34:59+00:00","dateModified":"2020-10-07T13:46:09+00:00","mainEntityOfPage":{"@id":"https:\/\/dbtut.com\/index.php\/2018\/11\/12\/how-to-create-sql-server-audit\/"},"wordCount":1061,"commentCount":0,"publisher":{"@id":"https:\/\/dbtut.com\/#organization"},"image":{"@id":"https:\/\/dbtut.com\/index.php\/2018\/11\/12\/how-to-create-sql-server-audit\/#primaryimage"},"thumbnailUrl":"https:\/\/dbtut.com\/wp-content\/uploads\/2018\/11\/createsqlserveraudit.jpg","articleSection":["MSSQL"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/dbtut.com\/index.php\/2018\/11\/12\/how-to-create-sql-server-audit\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/dbtut.com\/index.php\/2018\/11\/12\/how-to-create-sql-server-audit\/","url":"https:\/\/dbtut.com\/index.php\/2018\/11\/12\/how-to-create-sql-server-audit\/","name":"How To Create SQL Server Audit - Database Tutorials","isPartOf":{"@id":"https:\/\/dbtut.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/dbtut.com\/index.php\/2018\/11\/12\/how-to-create-sql-server-audit\/#primaryimage"},"image":{"@id":"https:\/\/dbtut.com\/index.php\/2018\/11\/12\/how-to-create-sql-server-audit\/#primaryimage"},"thumbnailUrl":"https:\/\/dbtut.com\/wp-content\/uploads\/2018\/11\/createsqlserveraudit.jpg","datePublished":"2018-11-12T09:34:59+00:00","dateModified":"2020-10-07T13:46:09+00:00","description":"This article contains information about SQL Server audits such as Database Level Audits,Server Level Audits, creating audits,filtering audits","breadcrumb":{"@id":"https:\/\/dbtut.com\/index.php\/2018\/11\/12\/how-to-create-sql-server-audit\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/dbtut.com\/index.php\/2018\/11\/12\/how-to-create-sql-server-audit\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/dbtut.com\/index.php\/2018\/11\/12\/how-to-create-sql-server-audit\/#primaryimage","url":"https:\/\/dbtut.com\/wp-content\/uploads\/2018\/11\/createsqlserveraudit.jpg","contentUrl":"https:\/\/dbtut.com\/wp-content\/uploads\/2018\/11\/createsqlserveraudit.jpg","width":859,"height":499},{"@type":"BreadcrumbList","@id":"https:\/\/dbtut.com\/index.php\/2018\/11\/12\/how-to-create-sql-server-audit\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/dbtut.com\/"},{"@type":"ListItem","position":2,"name":"How To Create SQL Server Audit"}]},{"@type":"WebSite","@id":"https:\/\/dbtut.com\/#website","url":"https:\/\/dbtut.com\/","name":"Database Tutorials","description":"MSSQL, Oracle, PostgreSQL, MySQL, MariaDB, DB2, Sybase, Teradata, Big Data, NOSQL, MongoDB, Couchbase, Cassandra, Windows, Linux","publisher":{"@id":"https:\/\/dbtut.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/dbtut.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/dbtut.com\/#organization","name":"dbtut","url":"https:\/\/dbtut.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/dbtut.com\/#\/schema\/logo\/image\/","url":"https:\/\/dbtut.com\/wp-content\/uploads\/2021\/02\/dbtutlogo.jpg","contentUrl":"https:\/\/dbtut.com\/wp-content\/uploads\/2021\/02\/dbtutlogo.jpg","width":223,"height":36,"caption":"dbtut"},"image":{"@id":"https:\/\/dbtut.com\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/dbtut.com\/#\/schema\/person\/fc047c39e1e53dce28fc4253529ea408","name":"dbtut","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/dbtut.com\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/c322c32021bf651d9e103b183963c479a9c9791ead0715f4348203496c39aa54?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/c322c32021bf651d9e103b183963c479a9c9791ead0715f4348203496c39aa54?s=96&d=mm&r=g","caption":"dbtut"},"description":"We are a team with over 10 years of database management and BI experience. Our Expertises: Oracle, SQL Server, PostgreSQL, MySQL, MongoDB, Elasticsearch, Kibana, Grafana.","sameAs":["http:\/\/NurullahCAKIR"],"url":"https:\/\/dbtut.com\/index.php\/author\/dbtut\/"}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/dbtut.com\/index.php\/wp-json\/wp\/v2\/posts\/5354","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/dbtut.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/dbtut.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/dbtut.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/dbtut.com\/index.php\/wp-json\/wp\/v2\/comments?post=5354"}],"version-history":[{"count":0,"href":"https:\/\/dbtut.com\/index.php\/wp-json\/wp\/v2\/posts\/5354\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/dbtut.com\/index.php\/wp-json\/wp\/v2\/media\/16761"}],"wp:attachment":[{"href":"https:\/\/dbtut.com\/index.php\/wp-json\/wp\/v2\/media?parent=5354"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/dbtut.com\/index.php\/wp-json\/wp\/v2\/categories?post=5354"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/dbtut.com\/index.php\/wp-json\/wp\/v2\/tags?post=5354"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}