Security Archives - SQL XEvents https://sqlxevents.com/category/xevents/security/ Wed, 13 May 2020 18:20:06 +0000 en-US hourly 1 https://wordpress.org/?v=6.1.3 https://sqlxevents.com/wp-content/uploads/2019/07/fav.png Security Archives - SQL XEvents https://sqlxevents.com/category/xevents/security/ 32 32 176530083 Audit Logons with Extended Events https://sqlxevents.com/audit-logons-with-extended-events/?utm_source=rss&utm_medium=rss&utm_campaign=audit-logons-with-extended-events https://sqlxevents.com/audit-logons-with-extended-events/#respond Thu, 14 May 2020 13:04:00 +0000 http://new.sqlxevents.com/?p=506 Learn how to use and exploit the raw power of the Extended Events feature to audit logons within SQL Server and gain better insights to server usage.

The post Audit Logons with Extended Events appeared first on SQL XEvents.

]]>
audit logonsSome time ago, I wrote an article for SQL Server 2008 to help determine the use of the server since SQL Server 2008 was reaching End Of Life. In that article, I shared a reasonable use of server side trace to audit logon events to the server. After all, you have to find out the source of connections and who is using the server if you need to migrate it to a newer SQL Server version. You can read that article here.

Soon after, from various sources, I received requests on how to perform a logon audit using the more preferred, robust, venerable, awesome tool called Extended Events (XEvents). In response, I would share a login audit session to each person. In this article, I will share my login audit solution and give a brief explanation. I use a solution like this on more than 90% of my client servers and I find it highly useful.

Auditing Logons

The Events to capture SQL Server logon/logoff activities were not a part of the original release of XEvents in 2008. The requisite events did not become available until SQL Server 2012. Why mention SQL Server 2008 at all given it has reached its End of Life you may ask? Well, as luck would have it, there are still plenty of 2008/R2 instances out there in the world that are yet to be upgraded still. So, it is useful to continually point it out. This session, and this information, does NOT apply to anything prior to SQL Server 2012.

The post Audit Logons with Extended Events appeared first on SQL XEvents.

]]>
https://sqlxevents.com/audit-logons-with-extended-events/feed/ 0 506