#1
  1. A Change of Season
    Devshed Frequenter (2500 - 2999 posts)

    Join Date
    Mar 2004
    Location
    Next Door
    Posts
    2,650
    Rep Power
    171

    How to find access.log


    Hello 2 questions;

    1 - I look for file called access.log in root directory; root I believe contains all folders on the server. Howcome the command returns nothing and doesn't find access.log
    find / -name "access.log"
    2 - What is the difference between these 2:
    find / -name "access.log"
    and
    find / -name access.log
    Thanks
  2. #2
  3. Did you steal it?
    Devshed Supreme Being (6500+ posts)

    Join Date
    Mar 2007
    Location
    Washington, USA
    Posts
    13,964
    Rep Power
    9397
    1. Either it doesn't exist or you don't have permissions to get to it (in which case you should have seen warnings). Or maybe something else, I don't know it's almost 2am.

    2. Nothing. The quotes are for... well, consider these two:
    Code:
    find / -name site access.log
    find / -name "site access.log"
  4. #3
  5. A Change of Season
    Devshed Frequenter (2500 - 2999 posts)

    Join Date
    Mar 2004
    Location
    Next Door
    Posts
    2,650
    Rep Power
    171
    Originally Posted by requinix
    1. Either it doesn't exist or you don't have permissions to get to it (in which case you should have seen warnings). Or maybe something else, I don't know it's almost 2am.
    Im root.

    So what is access file called if it is something else?

    Thanks
  6. #4
  7. Wiser? Not exactly.
    Devshed God 1st Plane (5500 - 5999 posts)

    Join Date
    May 2001
    Location
    Bonita Springs, FL
    Posts
    5,932
    Rep Power
    4033
    It's typical for the access/error logs from apache to include the server-name in the file name somehow. The easiest way to find out what their name is and where they are at is to just check the apache config file for the corresponding ErrorLog and CustomLog directives.
    Recycle your old CD's, don't just trash them



    If I helped you out, show some love with some reputation, or tip with Bitcoins to 1N645HfYf63UbcvxajLKiSKpYHAq2Zxud
  8. #5
  9. No Profile Picture
    Grumpier old Moderator
    Devshed Supreme Being (6500+ posts)

    Join Date
    Jun 2003
    Posts
    14,424
    Rep Power
    4539
    Try find / -iname "*access.log*"
    ======
    Doug G
    ======
    The man who doesn't read good books has no advantage over the man who can't read them.
    --Mark Twain
  10. #6
  11. A Change of Season
    Devshed Frequenter (2500 - 2999 posts)

    Join Date
    Mar 2004
    Location
    Next Door
    Posts
    2,650
    Rep Power
    171
    [root@ded319 ~]# find / -iname "*access.log*"
    [root@ded319 ~]#
  12. #7
  13. No Profile Picture
    Contributing User
    Devshed Regular (2000 - 2499 posts)

    Join Date
    Mar 2006
    Posts
    2,436
    Rep Power
    1688
    Dare I suggest reading the documentation/manual for the web server you are running and seeing where it says it will be putting the file and if it is created automatically.
    The moon on the one hand, the dawn on the other:
    The moon is my sister, the dawn is my brother.
    The moon on my left and the dawn on my right.
    My brother, good morning: my sister, good night.
    -- Hilaire Belloc
  14. #8
  15. A Change of Season
    Devshed Frequenter (2500 - 2999 posts)

    Join Date
    Mar 2004
    Location
    Next Door
    Posts
    2,650
    Rep Power
    171
    Originally Posted by SimonJM
    Dare I suggest reading the documentation/manual for the web server you are running and seeing where it says it will be putting the file and if it is created automatically.
    Thanks, good idea: /var/log/secure

IMN logo majestic logo threadwatch logo seochat tools logo