Results 1 to 2 of 2

Thread: Moving log files to another location

  1. #1
    Registered
    Join Date
    Jun 2003
    Location
    Princeton
    Posts
    25
    Rep Power
    15

    Moving log files to another location

    Since 2006 all of my access_log_*.gz files have been showing up in the root directory that I connect to over SFTP. I manually move these files into a folder called "logs".

    How do I get these logs to show up in another location (like my logs folder)? I tried setting a scheduled job of "mv access_log_* logs/" but that won't work, probably because I'm using relative paths. How do I figure out the absolute path that I can use? Is there a better way?

    Thanks.

  2. #2
    Thinkin' out loud again Builder's Avatar
    Join Date
    Nov 2002
    Location
    Illinois
    Posts
    2,088
    Rep Power
    19
    Use your server path instead of a relative path? Should be something similar to:
    /home/users/web/bxxxx/pow.username/folder_name
    You can find out what this is in OPS.

    Just a shot in the dark here

    Good luck,
    Kevin
    A good friend will come and bail you out of jail...
    but a true friend will be sitting next to you saying,
    "Damn... that was fun!"

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •