{"id":480,"date":"2012-06-22T21:50:41","date_gmt":"2012-06-22T21:50:41","guid":{"rendered":"\/blogs\/jonathan\/post\/Resolving-Error-33204-SQL-Server-Audit-could-not-write-to-the-security-log.aspx"},"modified":"2017-04-13T12:16:07","modified_gmt":"2017-04-13T16:16:07","slug":"resolving-error-33204-sql-server-audit-could-not-write-to-the-security-log","status":"publish","type":"post","link":"https:\/\/www.sqlskills.com\/blogs\/jonathan\/resolving-error-33204-sql-server-audit-could-not-write-to-the-security-log\/","title":{"rendered":"Resolving Error 33204 SQL Server Audit could not write to the security log"},"content":{"rendered":"<p>This topic came up on a forum post recently, and after responding a couple of times to the thread I had to jump into one of my VMs to figure out what exactly the problem was.&#160; <\/p>\n<p>If you use Server Audits in SQL Server, one of the features that you might be interested in is the ability to have the audit data written into the Windows Security Event Log, especially if your company already has data collection software in place to harvest the log records for auditing purposes.&#160; However, if you try and actually implement a Server Audit in SQL Server 2008 or SQL Server 2008 R2 that writes to the Security Event Log, unless the service is running under the Local System account, the audit will fail.&#160; To demonstrate this, we\u2019ll create a server audit with a server level audit specification to track object accesses in the server and then try to start the audit.&#160; The SQL Server services in my test VM are running under a local low privilege user named SQLServiceAcct, and all of the steps described in the Books Online topic <a href=\"https:\/\/docs.microsoft.com\/en-us\/sql\/relational-databases\/security\/auditing\/write-sql-server-audit-events-to-the-security-log\" target=\"_blank\">Write SQL Server Audit Events to the Security Log<\/a> have been followed to enable the instance for writing to the Windows Security Log.<\/p>\n<blockquote>\n<p>CREATE SERVER AUDIT [Audit_ToSecurityLog]     <br \/>TO SECURITY_LOG      <br \/>WITH(QUEUE_DELAY = 0, ON_FAILURE = CONTINUE)      <br \/>GO<\/p>\n<p>CREATE SERVER AUDIT SPECIFICATION [ServerAuditSpec_ObjectAccess]     <br \/>FOR SERVER AUDIT [Audit_ToSecurityLog]      <br \/>ADD (DATABASE_OBJECT_ACCESS_GROUP),      <br \/>ADD (SCHEMA_OBJECT_ACCESS_GROUP)      <br \/>WITH (STATE = ON)      <br \/>GO<\/p>\n<p>ALTER SERVER AUDIT [Audit_ToSecurityLog]     <br \/>WITH (STATE = ON);<\/p>\n<\/blockquote>\n<p>Once we attempt to enable the server audit the following error will be logged into the SQL Server ERRORLOG file:<\/p>\n<blockquote>\n<p>2012-06-22 20:48:09.92 spid53&#160;&#160;&#160;&#160;&#160; Error: 33204, Severity: 17, State: 1.     <br \/>2012-06-22 20:48:09.92 spid53&#160;&#160;&#160;&#160;&#160; SQL Server Audit could not write to the security log.<\/p>\n<\/blockquote>\n<p>Now, since I knew for a fact that I had followed all of the steps in the Books Online, I decided to fire up Process Monitor and setup a filter on the Process Name so that if it wasn\u2019t sqlservr.exe the events were excluded from the display.<\/p>\n<p><a href=\"https:\/\/www.SQLskills.com\/blogs\/jonathan\/wp-content\/uploads\/windows-live-writer\/71160e3badc6\/0d2b376b\/image.png\"><img fetchpriority=\"high\" decoding=\"async\" style=\"background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px\" title=\"image\" border=\"0\" alt=\"image\" src=\"https:\/\/www.SQLskills.com\/blogs\/jonathan\/wp-content\/uploads\/windows-live-writer\/71160e3badc6\/3320e7c1\/image_thumb.png\" width=\"515\" height=\"302\" \/><\/a><\/p>\n<p>Then I disabled the server audit and enabled it again so that I could see what events occurred in Process Monitor leading to the failure writing to the Security Event Log.<\/p>\n<p><a href=\"https:\/\/www.SQLskills.com\/blogs\/jonathan\/wp-content\/uploads\/windows-live-writer\/71160e3badc6\/324881d7\/image.png\"><img decoding=\"async\" style=\"background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px\" title=\"image\" border=\"0\" alt=\"image\" src=\"https:\/\/www.SQLskills.com\/blogs\/jonathan\/wp-content\/uploads\/windows-live-writer\/71160e3badc6\/107ca946\/image_thumb.png\" width=\"644\" height=\"459\" \/><\/a><\/p>\n<p>Here we can see that the problem is that SQL Server needs to Read\/Write access to the HKLM\\SYSTEM\\CurrentControlSet\\Services\\EventLog\\Security registry key but does not have permission.&#160; So to fix this I opened up the registry editor to this key and then added the SQL Server service account for my VM to the key with Full Control as show below.<\/p>\n<p><a href=\"https:\/\/www.SQLskills.com\/blogs\/jonathan\/wp-content\/uploads\/windows-live-writer\/71160e3badc6\/54706790\/image.png\"><img decoding=\"async\" style=\"background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px\" title=\"image\" border=\"0\" alt=\"image\" src=\"https:\/\/www.SQLskills.com\/blogs\/jonathan\/wp-content\/uploads\/windows-live-writer\/71160e3badc6\/378742bb\/image_thumb.png\" width=\"644\" height=\"354\" \/><\/a><\/p>\n<p><a href=\"https:\/\/www.SQLskills.com\/blogs\/jonathan\/wp-content\/uploads\/windows-live-writer\/71160e3badc6\/5d10c01c\/image.png\"><img loading=\"lazy\" decoding=\"async\" style=\"background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px\" title=\"image\" border=\"0\" alt=\"image\" src=\"https:\/\/www.SQLskills.com\/blogs\/jonathan\/wp-content\/uploads\/windows-live-writer\/71160e3badc6\/7129dca5\/image_thumb.png\" width=\"371\" height=\"447\" \/><\/a><\/p>\n<p>Once this was completed, I went back into SQL Server Management Studio and disabled and re-enabled the audit again.&#160; This time no error was logged to the ERRORLOG file, so I went back to Process Monitor to see what changed.&#160; This time we can see that SQL Server actually added a key under the HKLM\\SYSTEM\\CurrentControlSet\\Services\\EventLog\\Security key named MSSQLSERVER$AUDIT, which makes it possible for the instance to write into the Security Event Log.<\/p>\n<p><a href=\"https:\/\/www.SQLskills.com\/blogs\/jonathan\/wp-content\/uploads\/windows-live-writer\/71160e3badc6\/705176bb\/image.png\"><img loading=\"lazy\" decoding=\"async\" style=\"background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px\" title=\"image\" border=\"0\" alt=\"image\" src=\"https:\/\/www.SQLskills.com\/blogs\/jonathan\/wp-content\/uploads\/windows-live-writer\/71160e3badc6\/00e971aa\/image_thumb.png\" width=\"644\" height=\"459\" \/><\/a><\/p>\n<p>If we refresh the key in the registry editor we can see the new key and the values set underneath it.<\/p>\n<p><a href=\"https:\/\/www.SQLskills.com\/blogs\/jonathan\/wp-content\/uploads\/windows-live-writer\/71160e3badc6\/10a906ae\/image.png\"><img loading=\"lazy\" decoding=\"async\" style=\"background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px\" title=\"image\" border=\"0\" alt=\"image\" src=\"https:\/\/www.SQLskills.com\/blogs\/jonathan\/wp-content\/uploads\/windows-live-writer\/71160e3badc6\/4b903977\/image_thumb.png\" width=\"644\" height=\"354\" \/><\/a><\/p>\n<p>I tested this in SQL Server 2012 RTM and the behavior is exactly the same.&#160; Once the MSSQLSERVER$AUDIT key has been created, you can remove the permissions from the HKLM\\SYSTEM\\CurrentControlSet\\Services\\EventLog\\Security key and the auditing will continue to work (I had to test it out of curiosity). <\/p>\n<p>Testing the audit after fixing the registry permissions yields the expected events in the Security Log:<\/p>\n<blockquote>\n<p>Log Name:&#160;&#160;&#160;&#160;&#160; Security     <br \/>Source:&#160;&#160;&#160;&#160;&#160;&#160;&#160; MSSQLSERVER$AUDIT      <br \/>Date:&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; 6\/22\/2012 8:43:47 PM      <br \/>Event ID:&#160;&#160;&#160;&#160;&#160; 33205      <br \/>Task Category: (3)      <br \/>Level:&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; Information      <br \/>Keywords:&#160;&#160;&#160;&#160;&#160; Classic,Audit Success      <br \/>User:&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; SQL2K8R2-IE2\\SQLServiceAcct      <br \/>Computer:&#160;&#160;&#160;&#160;&#160; SQL2K8R2-IE2      <br \/>Description:      <br \/>Audit event: event_time:2012-06-23 00:43:47.4280312      <br \/>sequence_number:1      <br \/>action_id:SL&#160; <br \/>succeeded:true      <br \/>permission_bitmask:1      <br \/>is_column_permission:true      <br \/>session_id:52      <br \/>server_principal_id:261      <br \/>database_principal_id:1      <br \/>target_server_principal_id:0      <br \/>target_database_principal_id:0      <br \/>object_id:898102240      <br \/>class_type:U       <br \/>session_server_principal_name:SQL2K8R2-IE2\\Jonathan Kehayias      <br \/>server_principal_name:SQL2K8R2-IE2\\Jonathan Kehayias      <br \/>server_principal_sid:010500000000000515000000f84a18afb97103f8a5b4f260e8030000      <br \/>database_principal_name:dbo      <br \/>target_server_principal_name:      <br \/>target_server_principal_sid:      <br \/>target_database_principal_name:      <br \/>server_instance_name:SQL2K8R2-IE2      <br \/>database_name:AdventureWorks2008R2      <br \/>schema_name:Sales      <br \/>object_name:SalesOrderDetail      <br \/>statement:SELECT * FROM Sales.SalesOrderDetail      <br \/>additional_information:      <br \/>.      <br \/>Event Xml:      <br \/>&lt;Event xmlns=&quot;<a href=\"http:\/\/schemas.microsoft.com\/error.aspx?aspxerrorpath=\/library\/ms123402.aspx\">http:\/\/schemas.microsoft.com\/win\/2004\/08\/events\/event&quot;<\/a>&gt;      <br \/>&#160; &lt;System&gt;      <br \/>&#160;&#160;&#160; &lt;Provider Name=&quot;MSSQLSERVER$AUDIT&quot; \/&gt;      <br \/>&#160;&#160;&#160; &lt;EventID Qualifiers=&quot;16384&quot;&gt;33205&lt;\/EventID&gt;      <br \/>&#160;&#160;&#160; &lt;Level&gt;0&lt;\/Level&gt;      <br \/>&#160;&#160;&#160; &lt;Task&gt;3&lt;\/Task&gt;      <br \/>&#160;&#160;&#160; &lt;Keywords&gt;0x80a0000000000000&lt;\/Keywords&gt;      <br \/>&#160;&#160;&#160; &lt;TimeCreated SystemTime=&quot;2012-06-23T00:43:47.428031200Z&quot; \/&gt;      <br \/>&#160;&#160;&#160; &lt;EventRecordID&gt;47907&lt;\/EventRecordID&gt;      <br \/>&#160;&#160;&#160; &lt;Channel&gt;Security&lt;\/Channel&gt;      <br \/>&#160;&#160;&#160; &lt;Computer&gt;SQL2K8R2-IE2&lt;\/Computer&gt;      <br \/>&#160;&#160;&#160; &lt;Security UserID=&quot;S-1-5-21-2937604856-4160975289-1626518693-1001&quot; \/&gt;      <br \/>&#160; &lt;\/System&gt;      <br \/>&#160; &lt;EventData&gt;      <br \/>&#160;&#160;&#160; &lt;Data&gt;event_time:2012-06-23 00:43:47.4280312      <br \/>sequence_number:1      <br \/>action_id:SL&#160; <br \/>succeeded:true      <br \/>permission_bitmask:1      <br \/>is_column_permission:true      <br \/>session_id:52      <br \/>server_principal_id:261      <br \/>database_principal_id:1      <br \/>target_server_principal_id:0      <br \/>target_database_principal_id:0      <br \/>object_id:898102240      <br \/>class_type:U       <br \/>session_server_principal_name:SQL2K8R2-IE2\\Jonathan Kehayias      <br \/>server_principal_name:SQL2K8R2-IE2\\Jonathan Kehayias      <br \/>server_principal_sid:010500000000000515000000f84a18afb97103f8a5b4f260e8030000      <br \/>database_principal_name:dbo      <br \/>target_server_principal_name:      <br \/>target_server_principal_sid:      <br \/>target_database_principal_name:      <br \/>server_instance_name:SQL2K8R2-IE2      <br \/>database_name:AdventureWorks2008R2      <br \/>schema_name:Sales      <br \/>object_name:SalesOrderDetail      <br \/>statement:SELECT * FROM Sales.SalesOrderDetail      <br \/>additional_information:      <br \/>&lt;\/Data&gt;      <br \/>&#160; &lt;\/EventData&gt;      <br \/>&lt;\/Event&gt;<\/p>\n<\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>This topic came up on a forum post recently, and after responding a couple of times to the thread I had to jump into one of my VMs to figure out what exactly the problem was.&#160; If you use Server Audits in SQL Server, one of the features that you might be interested in is [&hellip;]<\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[19,35,36,38,39],"tags":[],"class_list":["post-480","post","type-post","status-publish","format-standard","hentry","category-database-administration","category-security","category-server-audit","category-sql-server-2008","category-sql-server-2012"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.3 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>SQL Server Audit Error 33204 Writing to Windows Security Log<\/title>\n<meta name=\"description\" content=\"Shows how to track down and resolve Error 33204 for Server Audits trying to write to the Windows Security Event log.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.sqlskills.com\/blogs\/jonathan\/resolving-error-33204-sql-server-audit-could-not-write-to-the-security-log\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"SQL Server Audit Error 33204 Writing to Windows Security Log\" \/>\n<meta property=\"og:description\" content=\"Shows how to track down and resolve Error 33204 for Server Audits trying to write to the Windows Security Event log.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.sqlskills.com\/blogs\/jonathan\/resolving-error-33204-sql-server-audit-could-not-write-to-the-security-log\/\" \/>\n<meta property=\"og:site_name\" content=\"Jonathan Kehayias\" \/>\n<meta property=\"article:published_time\" content=\"2012-06-22T21:50:41+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2017-04-13T16:16:07+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.SQLskills.com\/blogs\/jonathan\/wp-content\/uploads\/windows-live-writer\/71160e3badc6\/3320e7c1\/image_thumb.png\" \/>\n<meta name=\"author\" content=\"Jonathan Kehayias\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Jonathan Kehayias\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"5 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.sqlskills.com\\\/blogs\\\/jonathan\\\/resolving-error-33204-sql-server-audit-could-not-write-to-the-security-log\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.sqlskills.com\\\/blogs\\\/jonathan\\\/resolving-error-33204-sql-server-audit-could-not-write-to-the-security-log\\\/\"},\"author\":{\"name\":\"Jonathan Kehayias\",\"@id\":\"https:\\\/\\\/www.sqlskills.com\\\/blogs\\\/jonathan\\\/#\\\/schema\\\/person\\\/01c10d94f3648654ef706d5e6305f69c\"},\"headline\":\"Resolving Error 33204 SQL Server Audit could not write to the security log\",\"datePublished\":\"2012-06-22T21:50:41+00:00\",\"dateModified\":\"2017-04-13T16:16:07+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.sqlskills.com\\\/blogs\\\/jonathan\\\/resolving-error-33204-sql-server-audit-could-not-write-to-the-security-log\\\/\"},\"wordCount\":983,\"commentCount\":7,\"image\":{\"@id\":\"https:\\\/\\\/www.sqlskills.com\\\/blogs\\\/jonathan\\\/resolving-error-33204-sql-server-audit-could-not-write-to-the-security-log\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.SQLskills.com\\\/blogs\\\/jonathan\\\/wp-content\\\/uploads\\\/windows-live-writer\\\/71160e3badc6\\\/3320e7c1\\\/image_thumb.png\",\"articleSection\":[\"Database Administration\",\"Security\",\"Server Audit\",\"SQL Server 2008\",\"SQL Server 2012\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.sqlskills.com\\\/blogs\\\/jonathan\\\/resolving-error-33204-sql-server-audit-could-not-write-to-the-security-log\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.sqlskills.com\\\/blogs\\\/jonathan\\\/resolving-error-33204-sql-server-audit-could-not-write-to-the-security-log\\\/\",\"url\":\"https:\\\/\\\/www.sqlskills.com\\\/blogs\\\/jonathan\\\/resolving-error-33204-sql-server-audit-could-not-write-to-the-security-log\\\/\",\"name\":\"SQL Server Audit Error 33204 Writing to Windows Security Log\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.sqlskills.com\\\/blogs\\\/jonathan\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.sqlskills.com\\\/blogs\\\/jonathan\\\/resolving-error-33204-sql-server-audit-could-not-write-to-the-security-log\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.sqlskills.com\\\/blogs\\\/jonathan\\\/resolving-error-33204-sql-server-audit-could-not-write-to-the-security-log\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.SQLskills.com\\\/blogs\\\/jonathan\\\/wp-content\\\/uploads\\\/windows-live-writer\\\/71160e3badc6\\\/3320e7c1\\\/image_thumb.png\",\"datePublished\":\"2012-06-22T21:50:41+00:00\",\"dateModified\":\"2017-04-13T16:16:07+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/www.sqlskills.com\\\/blogs\\\/jonathan\\\/#\\\/schema\\\/person\\\/01c10d94f3648654ef706d5e6305f69c\"},\"description\":\"Shows how to track down and resolve Error 33204 for Server Audits trying to write to the Windows Security Event log.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.sqlskills.com\\\/blogs\\\/jonathan\\\/resolving-error-33204-sql-server-audit-could-not-write-to-the-security-log\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.sqlskills.com\\\/blogs\\\/jonathan\\\/resolving-error-33204-sql-server-audit-could-not-write-to-the-security-log\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.sqlskills.com\\\/blogs\\\/jonathan\\\/resolving-error-33204-sql-server-audit-could-not-write-to-the-security-log\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.SQLskills.com\\\/blogs\\\/jonathan\\\/wp-content\\\/uploads\\\/windows-live-writer\\\/71160e3badc6\\\/3320e7c1\\\/image_thumb.png\",\"contentUrl\":\"https:\\\/\\\/www.SQLskills.com\\\/blogs\\\/jonathan\\\/wp-content\\\/uploads\\\/windows-live-writer\\\/71160e3badc6\\\/3320e7c1\\\/image_thumb.png\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.sqlskills.com\\\/blogs\\\/jonathan\\\/resolving-error-33204-sql-server-audit-could-not-write-to-the-security-log\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.sqlskills.com\\\/blogs\\\/jonathan\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Database Administration\",\"item\":\"https:\\\/\\\/www.sqlskills.com\\\/blogs\\\/jonathan\\\/category\\\/database-administration\\\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Resolving Error 33204 SQL Server Audit could not write to the security log\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.sqlskills.com\\\/blogs\\\/jonathan\\\/#website\",\"url\":\"https:\\\/\\\/www.sqlskills.com\\\/blogs\\\/jonathan\\\/\",\"name\":\"Jonathan Kehayias - The Rambling DBA\",\"description\":\"The Rambling DBA\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.sqlskills.com\\\/blogs\\\/jonathan\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.sqlskills.com\\\/blogs\\\/jonathan\\\/#\\\/schema\\\/person\\\/01c10d94f3648654ef706d5e6305f69c\",\"name\":\"Jonathan Kehayias\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/86630e27f5deecc5c393ea57fc7c3b6a068949f4fd6b5309f81de5a276f12855?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/86630e27f5deecc5c393ea57fc7c3b6a068949f4fd6b5309f81de5a276f12855?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/86630e27f5deecc5c393ea57fc7c3b6a068949f4fd6b5309f81de5a276f12855?s=96&d=mm&r=g\",\"caption\":\"Jonathan Kehayias\"},\"sameAs\":[\"http:\\\/\\\/3.209.169.194\\\/blogs\\\/jonathan\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"SQL Server Audit Error 33204 Writing to Windows Security Log","description":"Shows how to track down and resolve Error 33204 for Server Audits trying to write to the Windows Security Event log.","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:\/\/www.sqlskills.com\/blogs\/jonathan\/resolving-error-33204-sql-server-audit-could-not-write-to-the-security-log\/","og_locale":"en_US","og_type":"article","og_title":"SQL Server Audit Error 33204 Writing to Windows Security Log","og_description":"Shows how to track down and resolve Error 33204 for Server Audits trying to write to the Windows Security Event log.","og_url":"https:\/\/www.sqlskills.com\/blogs\/jonathan\/resolving-error-33204-sql-server-audit-could-not-write-to-the-security-log\/","og_site_name":"Jonathan Kehayias","article_published_time":"2012-06-22T21:50:41+00:00","article_modified_time":"2017-04-13T16:16:07+00:00","og_image":[{"url":"https:\/\/www.SQLskills.com\/blogs\/jonathan\/wp-content\/uploads\/windows-live-writer\/71160e3badc6\/3320e7c1\/image_thumb.png","type":"","width":"","height":""}],"author":"Jonathan Kehayias","twitter_misc":{"Written by":"Jonathan Kehayias","Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.sqlskills.com\/blogs\/jonathan\/resolving-error-33204-sql-server-audit-could-not-write-to-the-security-log\/#article","isPartOf":{"@id":"https:\/\/www.sqlskills.com\/blogs\/jonathan\/resolving-error-33204-sql-server-audit-could-not-write-to-the-security-log\/"},"author":{"name":"Jonathan Kehayias","@id":"https:\/\/www.sqlskills.com\/blogs\/jonathan\/#\/schema\/person\/01c10d94f3648654ef706d5e6305f69c"},"headline":"Resolving Error 33204 SQL Server Audit could not write to the security log","datePublished":"2012-06-22T21:50:41+00:00","dateModified":"2017-04-13T16:16:07+00:00","mainEntityOfPage":{"@id":"https:\/\/www.sqlskills.com\/blogs\/jonathan\/resolving-error-33204-sql-server-audit-could-not-write-to-the-security-log\/"},"wordCount":983,"commentCount":7,"image":{"@id":"https:\/\/www.sqlskills.com\/blogs\/jonathan\/resolving-error-33204-sql-server-audit-could-not-write-to-the-security-log\/#primaryimage"},"thumbnailUrl":"https:\/\/www.SQLskills.com\/blogs\/jonathan\/wp-content\/uploads\/windows-live-writer\/71160e3badc6\/3320e7c1\/image_thumb.png","articleSection":["Database Administration","Security","Server Audit","SQL Server 2008","SQL Server 2012"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.sqlskills.com\/blogs\/jonathan\/resolving-error-33204-sql-server-audit-could-not-write-to-the-security-log\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.sqlskills.com\/blogs\/jonathan\/resolving-error-33204-sql-server-audit-could-not-write-to-the-security-log\/","url":"https:\/\/www.sqlskills.com\/blogs\/jonathan\/resolving-error-33204-sql-server-audit-could-not-write-to-the-security-log\/","name":"SQL Server Audit Error 33204 Writing to Windows Security Log","isPartOf":{"@id":"https:\/\/www.sqlskills.com\/blogs\/jonathan\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.sqlskills.com\/blogs\/jonathan\/resolving-error-33204-sql-server-audit-could-not-write-to-the-security-log\/#primaryimage"},"image":{"@id":"https:\/\/www.sqlskills.com\/blogs\/jonathan\/resolving-error-33204-sql-server-audit-could-not-write-to-the-security-log\/#primaryimage"},"thumbnailUrl":"https:\/\/www.SQLskills.com\/blogs\/jonathan\/wp-content\/uploads\/windows-live-writer\/71160e3badc6\/3320e7c1\/image_thumb.png","datePublished":"2012-06-22T21:50:41+00:00","dateModified":"2017-04-13T16:16:07+00:00","author":{"@id":"https:\/\/www.sqlskills.com\/blogs\/jonathan\/#\/schema\/person\/01c10d94f3648654ef706d5e6305f69c"},"description":"Shows how to track down and resolve Error 33204 for Server Audits trying to write to the Windows Security Event log.","breadcrumb":{"@id":"https:\/\/www.sqlskills.com\/blogs\/jonathan\/resolving-error-33204-sql-server-audit-could-not-write-to-the-security-log\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.sqlskills.com\/blogs\/jonathan\/resolving-error-33204-sql-server-audit-could-not-write-to-the-security-log\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.sqlskills.com\/blogs\/jonathan\/resolving-error-33204-sql-server-audit-could-not-write-to-the-security-log\/#primaryimage","url":"https:\/\/www.SQLskills.com\/blogs\/jonathan\/wp-content\/uploads\/windows-live-writer\/71160e3badc6\/3320e7c1\/image_thumb.png","contentUrl":"https:\/\/www.SQLskills.com\/blogs\/jonathan\/wp-content\/uploads\/windows-live-writer\/71160e3badc6\/3320e7c1\/image_thumb.png"},{"@type":"BreadcrumbList","@id":"https:\/\/www.sqlskills.com\/blogs\/jonathan\/resolving-error-33204-sql-server-audit-could-not-write-to-the-security-log\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.sqlskills.com\/blogs\/jonathan\/"},{"@type":"ListItem","position":2,"name":"Database Administration","item":"https:\/\/www.sqlskills.com\/blogs\/jonathan\/category\/database-administration\/"},{"@type":"ListItem","position":3,"name":"Resolving Error 33204 SQL Server Audit could not write to the security log"}]},{"@type":"WebSite","@id":"https:\/\/www.sqlskills.com\/blogs\/jonathan\/#website","url":"https:\/\/www.sqlskills.com\/blogs\/jonathan\/","name":"Jonathan Kehayias - The Rambling DBA","description":"The Rambling DBA","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.sqlskills.com\/blogs\/jonathan\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.sqlskills.com\/blogs\/jonathan\/#\/schema\/person\/01c10d94f3648654ef706d5e6305f69c","name":"Jonathan Kehayias","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/86630e27f5deecc5c393ea57fc7c3b6a068949f4fd6b5309f81de5a276f12855?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/86630e27f5deecc5c393ea57fc7c3b6a068949f4fd6b5309f81de5a276f12855?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/86630e27f5deecc5c393ea57fc7c3b6a068949f4fd6b5309f81de5a276f12855?s=96&d=mm&r=g","caption":"Jonathan Kehayias"},"sameAs":["http:\/\/3.209.169.194\/blogs\/jonathan"]}]}},"_links":{"self":[{"href":"https:\/\/www.sqlskills.com\/blogs\/jonathan\/wp-json\/wp\/v2\/posts\/480","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.sqlskills.com\/blogs\/jonathan\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.sqlskills.com\/blogs\/jonathan\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.sqlskills.com\/blogs\/jonathan\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/www.sqlskills.com\/blogs\/jonathan\/wp-json\/wp\/v2\/comments?post=480"}],"version-history":[{"count":0,"href":"https:\/\/www.sqlskills.com\/blogs\/jonathan\/wp-json\/wp\/v2\/posts\/480\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.sqlskills.com\/blogs\/jonathan\/wp-json\/wp\/v2\/media?parent=480"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.sqlskills.com\/blogs\/jonathan\/wp-json\/wp\/v2\/categories?post=480"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.sqlskills.com\/blogs\/jonathan\/wp-json\/wp\/v2\/tags?post=480"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}