SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


In what format are the *.sqlaudit files?


In what format are the *.sqlaudit files?

Author
Message
Ray Sotkiewicz
Ray Sotkiewicz
SSC-Addicted
SSC-Addicted (498 reputation)SSC-Addicted (498 reputation)SSC-Addicted (498 reputation)SSC-Addicted (498 reputation)SSC-Addicted (498 reputation)SSC-Addicted (498 reputation)SSC-Addicted (498 reputation)SSC-Addicted (498 reputation)

Group: General Forum Members
Points: 498 Visits: 278
There is scant information about these files on the web.

There's mention about a "Application Log File Viewer", which I'm not familiar with at the moment.

More specifically, does anyone import these files into a database via SSIS?

Thanks for any info....
Elliott Whitlow
Elliott Whitlow
SSC Guru
SSC Guru (58K reputation)SSC Guru (58K reputation)SSC Guru (58K reputation)SSC Guru (58K reputation)SSC Guru (58K reputation)SSC Guru (58K reputation)SSC Guru (58K reputation)SSC Guru (58K reputation)

Group: General Forum Members
Points: 58536 Visits: 5314
I was looking at doing this. But the best way I could come up with was using fn_get_audit_file to get the file expressed as a table. I would much rather have a component in SSIS do this directly but I am not aware of one.

CEWII
Ray Sotkiewicz
Ray Sotkiewicz
SSC-Addicted
SSC-Addicted (498 reputation)SSC-Addicted (498 reputation)SSC-Addicted (498 reputation)SSC-Addicted (498 reputation)SSC-Addicted (498 reputation)SSC-Addicted (498 reputation)SSC-Addicted (498 reputation)SSC-Addicted (498 reputation)

Group: General Forum Members
Points: 498 Visits: 278
Thanks for the info.. How strange that MS would provide this file but no real automated ETL process to extract the information... (At least not to my knowledge yet...)
Elliott Whitlow
Elliott Whitlow
SSC Guru
SSC Guru (58K reputation)SSC Guru (58K reputation)SSC Guru (58K reputation)SSC Guru (58K reputation)SSC Guru (58K reputation)SSC Guru (58K reputation)SSC Guru (58K reputation)SSC Guru (58K reputation)

Group: General Forum Members
Points: 58536 Visits: 5314
They do provide fn_get_audit_file but you have to execute it on the server against files that can be reached from that server. Then again it isn't all that different from errorlog files or trace files. MS provides a sproc to get at them but not an SSIS component.

I was just thinking that maybe WMI could do it. I'm going to look at that.

Also some of my reading indicates that the sqlaudit files are either XML or compressed XML files.

CEWII
Elliott Whitlow
Elliott Whitlow
SSC Guru
SSC Guru (58K reputation)SSC Guru (58K reputation)SSC Guru (58K reputation)SSC Guru (58K reputation)SSC Guru (58K reputation)SSC Guru (58K reputation)SSC Guru (58K reputation)SSC Guru (58K reputation)

Group: General Forum Members
Points: 58536 Visits: 5314
This is kind of interesting.. the code for that function is pretty straightforward:

CREAE FUNCTION [sys].[fn_get_audit_file] (
@file_pattern nvarchar(260),
@initial_file_name nvarchar(260) = NULL,
@audit_record_offset bigint = NULL)
RETURNS table
AS
RETURN SELECT *
FROM OpenRowSet(TABLE FN_GET_AUDIT_FILE, @file_pattern, @initial_file_name, @audit_record_offset)

CEWII
Ray Sotkiewicz
Ray Sotkiewicz
SSC-Addicted
SSC-Addicted (498 reputation)SSC-Addicted (498 reputation)SSC-Addicted (498 reputation)SSC-Addicted (498 reputation)SSC-Addicted (498 reputation)SSC-Addicted (498 reputation)SSC-Addicted (498 reputation)SSC-Addicted (498 reputation)

Group: General Forum Members
Points: 498 Visits: 278
Probably compressed XML... Raw XML is fairly readable while the SQAudit files have all those whanky chars in them.
Ray Sotkiewicz
Ray Sotkiewicz
SSC-Addicted
SSC-Addicted (498 reputation)SSC-Addicted (498 reputation)SSC-Addicted (498 reputation)SSC-Addicted (498 reputation)SSC-Addicted (498 reputation)SSC-Addicted (498 reputation)SSC-Addicted (498 reputation)SSC-Addicted (498 reputation)

Group: General Forum Members
Points: 498 Visits: 278
Bingo:

SELECT * FROM sys.fn_get_audit_file ('\\serverName\Audit\HIPPA_AUDIT.sqlaudit',default,default);
Mark Shepherd-435962
Mark Shepherd-435962
SSC Veteran
SSC Veteran (294 reputation)SSC Veteran (294 reputation)SSC Veteran (294 reputation)SSC Veteran (294 reputation)SSC Veteran (294 reputation)SSC Veteran (294 reputation)SSC Veteran (294 reputation)SSC Veteran (294 reputation)

Group: General Forum Members
Points: 294 Visits: 161
This solution may have the SSIS package you are looking for.

http://sqlcat.codeplex.com/wikipage?title=sqlauditcentral&referringTitle=Home
Elliott Whitlow
Elliott Whitlow
SSC Guru
SSC Guru (58K reputation)SSC Guru (58K reputation)SSC Guru (58K reputation)SSC Guru (58K reputation)SSC Guru (58K reputation)SSC Guru (58K reputation)SSC Guru (58K reputation)SSC Guru (58K reputation)

Group: General Forum Members
Points: 58536 Visits: 5314
Mark Shepherd-435962 (6/3/2010)
This solution may have the SSIS package you are looking for.

http://sqlcat.codeplex.com/wikipage?title=sqlauditcentral&referringTitle=Home
I just looked at that, it looks like a nice framework, however internally it still uses sys.fn_get_audit_file..

CEWII
sunilsql4
sunilsql4
Valued Member
Valued Member (55 reputation)Valued Member (55 reputation)Valued Member (55 reputation)Valued Member (55 reputation)Valued Member (55 reputation)Valued Member (55 reputation)Valued Member (55 reputation)Valued Member (55 reputation)

Group: General Forum Members
Points: 55 Visits: 69
Ray Sotkiewicz - Thursday, April 29, 2010 9:16 PM
Thanks for the info.. How strange that MS would provide this file but no real automated ETL process to extract the information... (At least not to my knowledge yet...)

It is due to Security reasons
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum








































































































































































SQLServerCentral


Search