Announcement

Collapse
No announcement yet.

a question of apache's logs file for svn

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • a question of apache's logs file for svn

    Can anyone do me a favor to steal the question that how to make the setting of apache for loging the access records exclude a special svn user‘s,so that I can make the jenkin‘s access records be not logging to the logs file for extra disk space any more.

    ENV:csvn 5.2.4, redhat7

  • #2
    I know of no way to restrict Apache logging based on an account name short of modifying the Apache source code and compiling up your own version.

    Thinking about this differently, you *could* setup Jenkins to use "svn+ssh" instead and avoid the Apache logging altogether. However, SSHD will still log (although it will be far less logging than Apache).

    Cheers.

    Comment


    • #3
      Originally posted by DougR View Post
      I know of no way to restrict Apache logging based on an account name short of modifying the Apache source code and compiling up your own version.

      Thinking about this differently, you *could* setup Jenkins to use "svn+ssh" instead and avoid the Apache logging altogether. However, SSHD will still log (although it will be far less logging than Apache).

      Cheers.
      Thanks a lot for DougR‘s reply. But, I‘m thinking about another way to deal with the log trouble via delete the jenkin‘s records with sed and crontab tool at the next day.Probably this can be useful.

      Comment


      • #4
        Once the log has been rotated so that it is no longer getting appended to, then, yes, you could use sed to shrink it before compression. Might not even need crontab if your log files are being compressed by "logrotate".

        Comment


        • #5
          Originally posted by DougR View Post
          Once the log has been rotated so that it is no longer getting appended to, then, yes, you could use sed to shrink it before compression. Might not even need crontab if your log files are being compressed by "logrotate".
          Okey!logrotate,great!

          Comment

          Working...
          X