👤
Home Man
Search
Today's Posts
Register

Discuss Web Programming and Web Server Administration, including LAMP, Apache, MySQL, HTML, SEO, and other Web APIs and topics.

How to log http 404 error to a separate log file?

👤 Login to reply

 
Thread Tools Search this Thread
# 1  
Old 11-11-2016
Hammer & Screwdriver How to log http 404 error to a separate log file?

Apache Web Server:
how to log http 404 error to a separate log file and i do not want to log in access.log
please advice.
# 2  
Old 11-11-2016
Please be MUCH more specific on what you are trying to do.
  • What operating system are you using?
  • Are you trying to write code in apache that will log 404 errors to a different log file than other errors?
  • Are you trying to read web pages served by apache and you want to create a log file of 404 errors you encountered while accessing pages?
  • What log file do you want to use?
  • ...
# 3  
Old 11-14-2016
  1. What operating system are you using?
    Red Hat Enterprise Linux Server release 6.7 (Santiago)
  2. Are you trying to write code in apache that will log 404 errors to a different log file than other errors?
    if any users hit wrong page, the apache webserver will server 404 page, it is captured in access_log by deafualt.
    Instead, i want to write in a separate file called Notfound.log
  3. Are you trying to read web pages served by apache and you want to create a log file of 404 errors you encountered while accessing pages?
    yes
  4. What log file do you want to use?
    i want to write in a separate file called Notfound.log
👤 Login to reply

« Previous Thread | Next Thread »
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Spacewalk repodata/repomd.xml [Errno 14] HTTP Error 404 - Not Found James0806 UNIX for Advanced & Expert Users 0 05-03-2018 05:33 PM
awk script to find time difference between HTTP PUT and HTTP DELETE requests in access.log Juha Shell Programming and Scripting 3 07-13-2016 01:13 PM
HTTP/1.1 404 Not Found error in Web Server hridan Red Hat 1 10-16-2015 11:27 AM
Cant update yum what so ever [Errno 14] HTTP Error 404 - Not Found ApacheOmega Red Hat 2 01-25-2015 10:22 PM
[Solved] Log error from cron entry into log file fretagi Solaris 16 03-19-2014 10:20 AM
How to grep a log file for words listed in separate text file? nbsparks Shell Programming and Scripting 15 09-17-2013 02:36 PM
Saving svn log in a separate directory punpun66 Shell Programming and Scripting 3 09-16-2013 11:56 AM
Capture all error message in Log file and send the Log file by email dgmm Shell Programming and Scripting 2 05-01-2011 03:42 AM
HTTP 404 Error Fetches File from Another Server Neo Web Programming 0 11-08-2009 02:23 AM
Need to log http requests fundidor UNIX for Dummies Questions & Answers 3 08-08-2006 08:34 AM


All times are GMT -4. The time now is 05:10 AM.

Unix & Linux Forums Content Copyrightę1993-2018. All Rights Reserved.
×
UNIX.COM Login
Username:
Password:  
Show Password