11-14-2016
- What operating system are you using?
Red Hat Enterprise Linux Server release 6.7 (Santiago)
- 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
- 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
- What log file do you want to use?
i want to write in a separate file called Notfound.log
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi folks,
I am trying to build this GUI application that will perform some http requests to a specific server.
Basically I will use curl to "pretend" that it is a browser a sending an http request from a form.
My http knowledge is very low, and the site is tricky, but I think if I could... (3 Replies)
Discussion started by: fundidor
3 Replies
2. Web Development
Has any seen any PHP or other scripting code that will executive on a 404 "File Not Found' error and then fetch the requested file from a different server? (0 Replies)
Discussion started by: Neo
0 Replies
3. Shell Programming and Scripting
Hi
I have a requirement to write a script to capture all errors in a Logfile and send the file in email.
If there is any error occurred the subject of email will be ERROR , If there are no error occurred the subject of email will be SUCCESS.
So I created a Log file and put the Appropriate... (2 Replies)
Discussion started by: dgmm
2 Replies
4. Shell Programming and Scripting
Hi Folks,
I have a directory at /usr/local/aa and there is other directory where I have checkout the code through svn checkout command ( /opt/app/fgh) now I can apply svn log command here as shown below
$ cd /opt/app/fgh
svn checkout <url>
svn log
shows me the log on console .
please... (3 Replies)
Discussion started by: punpun66
3 Replies
5. Shell Programming and Scripting
Hello,
I want to grep a log ("server.log") for words in a separate file ("white-list.txt") and generate a separate log file containing each line that uses a word from the "white-list.txt" file.
Putting that in bullet points:
Search through "server.log" for lines that contain any word... (15 Replies)
Discussion started by: nbsparks
15 Replies
6. Solaris
Hi
Please would it be right to log the errors from a script running in cron in the following manner:
/datax/vendor/dump.sh > /datax/vendor/err.log 2>&1 (16 Replies)
Discussion started by: fretagi
16 Replies
7. Red Hat
Hello!!!
I am so frustrated I'm about to snap!!!
I cant hear any sound in Firefox or re-install Chrome.
Every time I try to do anything with YUM inside my terminal (like update or install) I keep getting this error:failure: repodata/repomd.xml from virtualbox: No more mirrors to try.
I... (2 Replies)
Discussion started by: ApacheOmega
2 Replies
8. Red Hat
I am running 2 jboss instances with ports 8585 and 8686 in my web server.
Now trying to get header using the command
curl -s --connect-timeout 360 -m 360 --head http: // localhost:8686/ then i get the following error
HTTP/1.1 404 Not Found
Server: Apache-Coyote/1.1
Content-Length: 0... (1 Reply)
Discussion started by: hridan
1 Replies
9. Shell Programming and Scripting
Hi,
I'm trying to write a script to determine the time gap between HTTP PUT and HTTP DELETE requests in the HTTP Servers access log.
Normally client will do HTTP PUT to push content e.g. file_1.txt and 21 seconds later it will do HTTP DELETE, but sometimes the time varies causing some issues... (3 Replies)
Discussion started by: Juha
3 Replies
10. UNIX for Advanced & Expert Users
I Configured spacwalk 2.7 and synchronized the channels as the root FS was and the server was unresponsive through gui i deleted the cache in /var/cache/rhn & /var/cache/yum and ran yum clean all on the server as well as spacewalk client i could see the following error
Loaded plugins: rhnplugin... (0 Replies)
Discussion started by: James0806
0 Replies
LEARN ABOUT DEBIAN
fstrace_clear
FSTRACE_CLEAR(8) AFS Command Reference FSTRACE_CLEAR(8)
NAME
fstrace_clear - Clears the trace log
SYNOPSIS
fstrace clear [-set <set name>+]
[-log <log name>+]
[-help]
fstrace c [-s <set name>+]
[-l <log name>+] [-h]
DESCRIPTION
The fstrace clear command erases the contents of the trace log from kernel memory, but leaves kernel memory allocated for the log.
OPTIONS
-set <set name>+
Names the event set for which to clear the associated trace log. The only acceptable value is "cm" (for which the associated trace log
is "cmfx"). Provide either this argument or the -log argument, or omit both to clear the "cmfx" log by default.
-log <log name>+
Names the trace log to clear. The only acceptable value is "cmfx". Provide either this argument or the -set argument, or omit both to
clear the "cmfx" log by default.
-help
Prints the online help for this command. All other valid options are ignored.
EXAMPLES
The following command clears the "cmfx" trace log on the local machine:
# fstrace clear
PRIVILEGE REQUIRED
The issuer must be logged in as the local superuser "root".
SEE ALSO
fstrace(8), fstrace_lslog(8), fstrace_lsset(8)
COPYRIGHT
IBM Corporation 2000. <http://www.ibm.com/> All Rights Reserved.
This documentation is covered by the IBM Public License Version 1.0. It was converted from HTML to POD by software written by Chas
Williams and Russ Allbery, based on work by Alf Wachsmann and Elizabeth Cassell.
OpenAFS 2012-03-26 FSTRACE_CLEAR(8)