Access Logging

4 messages Options
Embed this post
Permalink
Arne v.Irmer-2

Access Logging

Reply Threaded More More options
Print post
Permalink
Hi,
I would like to log the access to the repository.

Is there a way to configure or implement a log in a separate file that includes:
- Who accesses?
- What was accessed?
- When?
- What kind of access? Read/Write/Delete/Query...
- …

Yours
 Arne
Alexander Klimetschek

Re: Access Logging

Reply Threaded More More options
Print post
Permalink
On Wed, May 20, 2009 at 2:54 AM, Arne v.Irmer
<[hidden email]> wrote:
> Hi,
> I would like to log the access to the repository.
>
> Is there a way to configure or implement a log in a separate file that includes:
> - Who accesses?
> - What was accessed?
> - When?
> - What kind of access? Read/Write/Delete/Query...
> - …

For the ACL part, you could probably enable logging on or inside the
org.apache.jackrabbit.core.security package (don't know which classes
give you the right information).

Not sure, but you might also want to have a look at this tool which
acts as a jcr wrapper and logs all jcr operations:

https://svn.apache.org/repos/asf/jackrabbit/sandbox/jcrlog/

Regards,
Alex

--
Alexander Klimetschek
[hidden email]
Arne v.Irmer-2

Re: Access Logging

Reply Threaded More More options
Print post
Permalink
In reply to this post by Arne v.Irmer-2
Hi Alex,
thank you for your hint. The wrapper has some drawbacks:
- It looks like not be maintained anymore.
- It doesn't log who accesses.
- It doesn't work with the webdav-layer.

Are there any other solutions to log the activities on a repository?

Yours
 Arne


smime.p7s (2K) Download Attachment
Alexander Klimetschek

Re: Access Logging

Reply Threaded More More options
Print post
Permalink
On Wed, Jul 1, 2009 at 10:15 AM, Arne
v.Irmer<[hidden email]> wrote:
> Hi Alex,
> thank you for your hint. The wrapper has some drawbacks:
> - It looks like not be maintained anymore.
> - It doesn't log who accesses.

It's open source, so you could modify it to suit your needs ;-)

> - It doesn't work with the webdav-layer.

I guess the difficult part is to put the jcrlog "in between"
jackrabbit and the webdav layer. That probably needs some code
modification - but I don't know.

> Are there any other solutions to log the activities on a repository?

As I noted in my first answer, enable DEBUG log level. If you can't
find the right package, enable it for the whole org.apache.jackrabbit
package and then filter out the relevant stuff step-by-step.

Regards,
Alex

--
Alexander Klimetschek
[hidden email]