简体   繁体   中英

Search apache logs for svn access

I want to rule out the possibility that a hacker might have accessed a SVN repository. Checking for commits is easy enough, just look at the SVN log. However I want to find out if they simply viewed files (such as config files with passwords and API keys) through SVN. I read that SVN doesn't keep access logs, so I have to search through the apache access_log.

I tried doing a grep for our svn subdomain: grep "svn.our-domain.com" access_log but it came back with nothing found. I found out that our logs strip out the domain and just show you the file or directory being accessed. I decided to do a grep for the word "trunk" instead, and I got a bunch of hits on directories but no specific files.

Is there a way to get a log of all files accessed through SVN?

At first, configure logging as described in Apache logging section of SVNBook . Then parse high-level log (ie operational log which contains logical operations only).

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM