472,334 Members | 1,431 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,334 software developers and data experts.

Audit trail for web application

Hello,
I have been assigned the task to design the audit trail for the ASP.NET web
application. I don't know what the best practices for such audit trails are.
Our application one dedicated user name and password to perform the database
operations. I need to capture all the operations which are performed on the
database. Also I need to able to capture the operations which directly
performed on the backend directly using the tools like enterprise manager,
query analyzer, etc. And also the data for the action should be captured in
some set of tables, but not in the form of BLOB, so that if the admin want
to know what are the various things the user did during the particular
session then that should be reproduced in the form of report. Does any
anybody have any idea of how to do such task? Any tips will be helpful.

I am trying one approach with the help of triggers. But the problem with
this approach is that I am not able to store all the information need to
reproduce the same output if I try to generate report for the particular
session.

Thanks and Regards,
Parag Kulkarni,
India
Email pa************@persistent.co.in

Nov 19 '05 #1
6 5725
This is more of a SQL Server question than an ASP.NET question. The problem
with implenting auditing at the application level or using table triggers is
that it is very programming intensive and difficult to cover every point of
database entry. Every time the data model changes, you would need to go back
and revise the audit programming. Go to MSDN and read up on SQL Server
Profiler. It can trap various events and output the log to a SQL Server
table. There are also 3rd party database auditing tools that should do
exactly what you need.

"Parag" <pa************@persistent.co.in> wrote in message
news:OR**************@TK2MSFTNGP15.phx.gbl...
Hello,
I have been assigned the task to design the audit trail for the ASP.NET web application. I don't know what the best practices for such audit trails are. Our application one dedicated user name and password to perform the database operations. I need to capture all the operations which are performed on the database. Also I need to able to capture the operations which directly
performed on the backend directly using the tools like enterprise manager,
query analyzer, etc. And also the data for the action should be captured in some set of tables, but not in the form of BLOB, so that if the admin want
to know what are the various things the user did during the particular
session then that should be reproduced in the form of report. Does any
anybody have any idea of how to do such task? Any tips will be helpful.

I am trying one approach with the help of triggers. But the problem with
this approach is that I am not able to store all the information need to
reproduce the same output if I try to generate report for the particular
session.

Thanks and Regards,
Parag Kulkarni,
India
Email pa************@persistent.co.in

Nov 19 '05 #2
Hi,
Thanks for the reply. Can you please tell me what are the best practices
that are followed in web application in .NET to implement the Audit trail ?
Is there any other way to implement it? It will be of greate help to me if
you could just point out what are the best practices to implement audit
trails for web applications.

Regards,
Parag

"bradley" <so*****@microsoft.com> wrote in message
news:uK**************@TK2MSFTNGP15.phx.gbl...
This is more of a SQL Server question than an ASP.NET question. The
problem
with implenting auditing at the application level or using table triggers
is
that it is very programming intensive and difficult to cover every point
of
database entry. Every time the data model changes, you would need to go
back
and revise the audit programming. Go to MSDN and read up on SQL Server
Profiler. It can trap various events and output the log to a SQL Server
table. There are also 3rd party database auditing tools that should do
exactly what you need.

"Parag" <pa************@persistent.co.in> wrote in message
news:OR**************@TK2MSFTNGP15.phx.gbl...
Hello,
I have been assigned the task to design the audit trail for the ASP.NET

web
application. I don't know what the best practices for such audit trails

are.
Our application one dedicated user name and password to perform the

database
operations. I need to capture all the operations which are performed on

the
database. Also I need to able to capture the operations which directly
performed on the backend directly using the tools like enterprise
manager,
query analyzer, etc. And also the data for the action should be captured

in
some set of tables, but not in the form of BLOB, so that if the admin
want
to know what are the various things the user did during the particular
session then that should be reproduced in the form of report. Does any
anybody have any idea of how to do such task? Any tips will be helpful.

I am trying one approach with the help of triggers. But the problem with
this approach is that I am not able to store all the information need to
reproduce the same output if I try to generate report for the particular
session.

Thanks and Regards,
Parag Kulkarni,
India
Email pa************@persistent.co.in


Nov 19 '05 #3
Auditing SQL Server Activity:
http://msdn.microsoft.com/library/de...urity_2ard.asp

Monitoring with SQL Profiler:
http://msdn.microsoft.com/library/de..._perf_86ib.asp
"Parag" <pa************@persistent.co.in> wrote in message
news:OQ**************@TK2MSFTNGP14.phx.gbl...
Hi,
Thanks for the reply. Can you please tell me what are the best practices that are followed in web application in .NET to implement the Audit trail ? Is there any other way to implement it? It will be of greate help to me if
you could just point out what are the best practices to implement audit
trails for web applications.

Regards,
Parag

"bradley" <so*****@microsoft.com> wrote in message
news:uK**************@TK2MSFTNGP15.phx.gbl...
This is more of a SQL Server question than an ASP.NET question. The
problem
with implenting auditing at the application level or using table triggers is
that it is very programming intensive and difficult to cover every point
of
database entry. Every time the data model changes, you would need to go
back
and revise the audit programming. Go to MSDN and read up on SQL Server
Profiler. It can trap various events and output the log to a SQL Server
table. There are also 3rd party database auditing tools that should do
exactly what you need.

"Parag" <pa************@persistent.co.in> wrote in message
news:OR**************@TK2MSFTNGP15.phx.gbl...
Hello,
I have been assigned the task to design the audit trail for the ASP.NET

web
application. I don't know what the best practices for such audit trails

are.
Our application one dedicated user name and password to perform the

database
operations. I need to capture all the operations which are performed on

the
database. Also I need to able to capture the operations which directly
performed on the backend directly using the tools like enterprise
manager,
query analyzer, etc. And also the data for the action should be captured
in
some set of tables, but not in the form of BLOB, so that if the admin
want
to know what are the various things the user did during the particular
session then that should be reproduced in the form of report. Does any
anybody have any idea of how to do such task? Any tips will be helpful.

I am trying one approach with the help of triggers. But the problem

with this approach is that I am not able to store all the information need to reproduce the same output if I try to generate report for the particular session.

Thanks and Regards,
Parag Kulkarni,
India
Email pa************@persistent.co.in



Nov 19 '05 #4
Parag wrote:
Hi,
Thanks for the reply. Can you please tell me what are the best practices
that are followed in web application in .NET to implement the Audit trail ?
Is there any other way to implement it? It will be of greate help to me if
you could just point out what are the best practices to implement audit
trails for web applications.

Regards,
Parag


Triggers are the only thing you have available which meets your
requirement to trap everything including backend changes made through
Enterprise Manager or Query Analyzer.

OmniAudit will do it all for every table in your database in a couple of
minutes. If your schema changes, press one button and audit triggers are
synchronized again.

http://www.krell-software.com/omniaudit

Contact me at in**@krell-software.com about an add-on which lets you
track application users independently when a single SQL Server login is
shared.

Steve Troxell
http://www.krell-software.com
Nov 19 '05 #5
Parag wrote:
I am trying one approach with the help of triggers. But the problem with
this approach is that I am not able to store all the information need to
reproduce the same output if I try to generate report for the particular
session.


What information were you not able to get with triggers?
OmniAudit will build audit triggers for every table in your database in
a couple of minutes. If your schema changes, press one button and audit
triggers are synchronized again.

http://www.krell-software.com/omniaudit

Contact me at in**@krell-software.com about an add-on which lets you
track application users independently when a single SQL Server login is
shared, or for any other questions about meeting your needs.

Steve Troxell
http://www.krell-software.com
Nov 19 '05 #6
Hi,
Thanks for the links . But My problem will not be solved using any of
them. Here is my problem statement in short :
1. I have my application data distributed across different tables in the
database in the normalized form.
2. When the user perform any CRUD( 1 unit operation) then the data that is
operated is obtained by performing the joins of multiple tables.
3. Every module of my application is programmed to perform joins as per its
needs directly on the tables.
4. I have read of "INSTEAD OF triggers" in SQL server 2000. They seem to be
useful but they will require huge code restructuring as I will have to
create a partitioned view for its use and point every thing in each module
to that view rather than the database tables directly.
So is there any other way to perform audit trail in such situation ?
Looking forward for the response.
Thanks ,
Parag Kulkarni

"bradley" <so*****@microsoft.com> wrote in message
news:eV**************@TK2MSFTNGP09.phx.gbl...
Auditing SQL Server Activity:
http://msdn.microsoft.com/library/de...urity_2ard.asp

Monitoring with SQL Profiler:
http://msdn.microsoft.com/library/de..._perf_86ib.asp
"Parag" <pa************@persistent.co.in> wrote in message
news:OQ**************@TK2MSFTNGP14.phx.gbl...
Hi,
Thanks for the reply. Can you please tell me what are the best

practices
that are followed in web application in .NET to implement the Audit trail

?
Is there any other way to implement it? It will be of greate help to me
if
you could just point out what are the best practices to implement audit
trails for web applications.

Regards,
Parag

"bradley" <so*****@microsoft.com> wrote in message
news:uK**************@TK2MSFTNGP15.phx.gbl...
> This is more of a SQL Server question than an ASP.NET question. The
> problem
> with implenting auditing at the application level or using table triggers > is
> that it is very programming intensive and difficult to cover every
> point
> of
> database entry. Every time the data model changes, you would need to go
> back
> and revise the audit programming. Go to MSDN and read up on SQL Server
> Profiler. It can trap various events and output the log to a SQL Server
> table. There are also 3rd party database auditing tools that should do
> exactly what you need.
>
> "Parag" <pa************@persistent.co.in> wrote in message
> news:OR**************@TK2MSFTNGP15.phx.gbl...
>> Hello,
>> I have been assigned the task to design the audit trail for the
>> ASP.NET
> web
>> application. I don't know what the best practices for such audit
>> trails
> are.
>> Our application one dedicated user name and password to perform the
> database
>> operations. I need to capture all the operations which are performed
>> on
> the
>> database. Also I need to able to capture the operations which directly
>> performed on the backend directly using the tools like enterprise
>> manager,
>> query analyzer, etc. And also the data for the action should be captured > in
>> some set of tables, but not in the form of BLOB, so that if the admin
>> want
>> to know what are the various things the user did during the particular
>> session then that should be reproduced in the form of report. Does any
>> anybody have any idea of how to do such task? Any tips will be
>> helpful.
>>
>> I am trying one approach with the help of triggers. But the problem with >> this approach is that I am not able to store all the information need to >> reproduce the same output if I try to generate report for the particular >> session.
>>
>>
>>
>> Thanks and Regards,
>> Parag Kulkarni,
>> India
>> Email pa************@persistent.co.in
>>
>>
>>
>
>



Nov 19 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Raphael Gluck | last post by:
Hi, Is it possible for one to program one's pages as such that when a database table is updated over the web, via a form, that an e-mail...
2
by: Keith | last post by:
Hi I am developing an ASP application which will interact with a SQL database. A requirement of the application is that there is a full audit...
3
by: Zlatko Matić | last post by:
Hello. I tried to implement audit trail, by making an audit trail table with the following fileds:...
13
by: Jim M | last post by:
I've been playing with Allen Browne's audit code and found it very useful. I need to track record insertions, deletions, and edits for several...
0
by: JimLad | last post by:
Hi, I've been tasked with reviewing the Authentication and Auditing of an application and database. ASP/ASP.NET 1.1 app with SQL Server 2000...
0
by: hary08 | last post by:
I have a module copied ftom this site, here it is: Option Compare Database Option Explicit Public Function AuditTrail() On Error GoTo...
3
by: hary08 | last post by:
im doing a database for Hospital Admission, I have a log in form which prompt user for a password. The source of log in is to look for the values in...
2
by: rockdc1981 | last post by:
I dont it is possible to put this codes together.. I want to prompt the user to save the record and at the same time have a log of audit trail. the...
6
by: babamc4 | last post by:
I have a main form (mainformlung) with 5 subforms (followupacute, followuplate, biochemresults, haemresults and pftresults). I have copied Allen...
0
better678
by: better678 | last post by:
Question: Discuss your understanding of the Java platform. Is the statement "Java is interpreted" correct? Answer: Java is an object-oriented...
0
by: teenabhardwaj | last post by:
How would one discover a valid source for learning news, comfort, and help for engineering designs? Covering through piles of books takes a lot of...
0
by: CD Tom | last post by:
This happens in runtime 2013 and 2016. When a report is run and then closed a toolbar shows up and the only way to get it to go away is to right...
0
by: CD Tom | last post by:
This only shows up in access runtime. When a user select a report from my report menu when they close the report they get a menu I've called Add-ins...
0
by: Naresh1 | last post by:
What is WebLogic Admin Training? WebLogic Admin Training is a specialized program designed to equip individuals with the skills and knowledge...
0
jalbright99669
by: jalbright99669 | last post by:
Am having a bit of a time with URL Rewrite. I need to incorporate http to https redirect with a reverse proxy. I have the URL Rewrite rules made...
0
by: Matthew3360 | last post by:
Hi there. I have been struggling to find out how to use a variable as my location in my header redirect function. Here is my code. ...
2
by: Matthew3360 | last post by:
Hi, I have a python app that i want to be able to get variables from a php page on my webserver. My python app is on my computer. How would I make it...
0
by: Arjunsri | last post by:
I have a Redshift database that I need to use as an import data source. I have configured the DSN connection using the server, port, database, and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.