Apache log rotation
From the documentation here: http://help.adobe.com/en_US/adobemediaserver/configadmin/WS5b3ccc516d4fbf351e63e3d119f2926 0bd-7ffa.2.3.html is is stated that " Adobe Media Server handles log rotation for the Apache logs." However, it appears not to be the case.
My logs in /opt/adobe/ams/Apache/logs are not rotating.
Can you help with this? Does AMS handle this or will I need to manually logrotate?
Regards,
A
So this isn't working?:
1. "One option is to rotate log files, moving or deleting the oldest files."
I usually rename the old log files whenever/before the server needs to be restarted and that forces the server to generate new log files.
2. "Use the rotation element in the Logger.xml file to specify a rotation schedule for log files. Two types of rotation schedules can be established. The first option is to set a daily rotation at a certain time. For example, setting daily at 00:00 rotates files every 24 hours at midnight. Alternatively, set a rotation that occurs when the log exceeds a specified length. Name, maximum file size in kilobytes, and maximum number of log files to keep can also be customized using the
rotation element. For an example, see the Logger.xml file installed in the /conf directory."
Did you modify the Logger.xml file to change the log rotation time? Save a copy of the original file before you modify it.
3. You can also try to use a third party module (this might/might not work for you depending on your system specs): http://www.sitebuddy.com/mod_log_rotate
mod_log_rotate.so seems pretty simple to set-up and implement.
Similar Messages
-
Hello,
I have leopard server, and want to know where is the apache log rotation is configured. I did not configure anything in the per-site log rotation in server admin, but the server is rotating the log anyway.
ThanksWell, I just saw that there is an /etc/newsyslog.conf setting, but have not worked with it myself. man newsyslog.conf provides more info.
-
Hello,
I have several log rotation related questions:
1. http_sso - will simply rotating this to http_sso.old and zeroing out http_sso do the job?
2. uwc.log - this file is owneb by web server uid. will I have to restart web server(Sun web server) after rotating this file? ( apache needs kill -USR1 )?
3. Any advice on Access manager log file rotation?
Many thanks,
D.Hello,
I have several log rotation related questions:
1. http_sso - will simply rotating this to
http_sso.old and zeroing out http_sso do the job?Huh? What are you trying to achive?
2. uwc.log - this file is owneb by web server uid.
will I have to restart web server(Sun web server)
after rotating this file? ( apache needs kill -USR1
)?I doubt it. Doesn't the web server rotate log files? I bet it does, automatically.
3. Any advice on Access manager log file rotation?Sorry, I have no idea. Messaging Server, I know well. AM, nope.
Many thanks,
D. -
Regarding internal daemon log rotation...
I found a problem with internal daemon log rotation in iplanet webserver.it is not happening properly..........how to troble shoot this issue?
Web Server 6.0 is EOSLed. Please move to the newer Web Servers 6.1 or 7.0. Check [http://www.sun.com/download/index.jsp?cat=Web%20%26%20Proxy%20Servers&tab=3&subcat=Web%20Servers|http://www.sun.com/download/index.jsp?cat=Web%20%26%20Proxy%20Servers&tab=3&subcat=Web%20Servers]. If you still have problems in these(6.1 or 7.0) versions of Web Server let us know.
-
LMS3.2 Log rotation problem
Hi,
we use LMS3.2 (windows single-server) for ~4500 devices and have a problem with log rotation.
That's our configured log roation:
Name with location
Size (kb)
Format
No.of Backups
1.
D:\CSCOpx\log\dcrclient.log
102400
gz
3
2.
D:\CSCOpx\log\ICServer.log
102400
gz
3
3.
D:\CSCOpx\log\syslog.log
1024000
gz
5
The backup directory is the same as the usual log directory. The size of the 3 files is already bigger than the configured size in log roation, see:
dcrclient.log 2,1 GB
ICServer.log 1,1 GB
syslog.log 9,7 GB
After the log roation configuration we restarted the daemon manager, but it's not working. There are no backup files created and the 3 files are still growing.
Regards
HendrikAfter you configure the log rotation you need and restart the daemons, you need to schedule the job. The schedule buttong is available under
Common Services -> Server -> Admin -> Log Rotation. -
Extended format of access.log and log rotation
I am using WebLogic Server 6.1sp1. I want to use extended format of web
server access log. I also want to use log rotation based on date. But it
seems not to work together. After my investigation I can say:
- access.log in common format can be rotated based on date an on size,
- access.log in extended format (either in its default form or
completely redefined) cannot be rotated neither based on date nor size.
In the second case at first time WebLogic tries to rotate logfile
IOException is thrown with a message like "java.io.IOException: Failed
to rename log file on attempt to rotate logs". Than it throws
IOException with a message "Exception flushing HTTP log file. (Bad file
descriptor)." when it tries to flush content of logfile to the disk.
After that WebLogic server stops to write to access.log.
Is it possible to rotate access.log in extended format?
Thanks,
Andrzej Derlacki
Infovide, Poland
[email protected]
[email protected]i am pasting the entries below which i see in the log( access_log ) . I don't see DEBUG in them.
<AGENT_IP_ADDRESS> - - [29/Jun/2007:09:48:23 -0400] "GET /em/upload?ACTION=HEARTBEAT&EMD
_URL=https%3a%2f%2flph010%2egep%2ege%2ecom%3a3872%2femd%2fmain%2f&HEARTBEAT_TI
ME=2007-06-29+09%3a40%3a09&OUTSTANDING_SEVS=FALSE&EMD_UPTIME=2007-06-18+10%3a20%
3a23&OLDEST_COLL_TIME=2007-06-29+09%3a40%3a09&INSTALL_TYPE=agent&X-ORCL-EMOV=4%2
e0%2e0&X-ORCL-EMCV=10%2e2%2e0%2e1%2e0&X-ORCL-EMSV=10%2e2%2e0%2e1%2e0 HTTP/1.1" 2
00 5
<AGENT_IP_ADDRESS>- - [29/Jun/2007:09:48:23 -0400] "GET /em/upload?ACTION=HEARTBEAT&EM
D_URL=https%3a%2f%2fprdes%2eeur%2egep%2ege%2ecom%3a3872%2femd%2fmain%2f&HE
ARTBEAT_TIME=2007-06-29+15%3a48%3a23&OUTSTANDING_SEVS=FALSE&EMD_UPTIME=2007-06-1
8+18%3a27%3a33&OLDEST_COLL_TIME=2007-06-29+15%3a48%3a23&INSTALL_TYPE=agent&X-ORC
L-EMOV=4%2e0%2e0&X-ORCL-EMCV=10%2e2%2e0%2e1%2e0&X-ORCL-EMSV=10%2e2%2e0%2e1%2e0 H
TTP/1.1" 200 5
<AGENT_IP_ADDRESS> - - [29/Jun/2007:09:48:24 -0400] "GET /em/upload?ACTION=HEARTBEAT&E
MD_URL=https%3a%2f%2fug038%2egep%2ege%2ecom%3a3872%2femd%2fmain%2f&HEARTBEAT_
TIME=2007-06-29+22%3a19%3a35&OUTSTANDING_SEVS=FALSE&EMD_UPTIME=2007-06-18+18%3a3
7%3a03&OLDEST_COLL_TIME=2007-06-29+22%3a19%3a35&INSTALL_TYPE=agent&X-ORCL-EMOV=4
%2e0%2e0&X-ORCL-EMCV=10%2e2%2e0%2e1%2e0&X-ORCL-EMSV=10%2e2%2e0%2e1%2e0 HTTP/1.1"
200 5 -
Import theme not working - apache log shows ORA-00942
Hi,
I'm doing some development using htmldb v2 (of which I am greatly impressed). Everything is going well, but none of the import facilities seem to work (e.g. import theme, workspace etc). I get Page not found when pressing the Import button with the following in the Apache log:
mod_plsql: /pls/htmldb/wwv_flow.accept HTTP-404 ORA-00942: table or view does not exist
The Workspace I'm using is a new one called SBASEW which sits on a schema called SBASEW. I want to transfer a customised theme between two different applications under this Workspace - hence why I want to us the import. I read one thread which suggested it's privileges on wwv_flow_file_object$, but my sbasew schema user can see this table OK. I've checked my DAD against the recommended settings and can't see anything wrong. It is as follows:
Alias /i/ "c:\OAS10gFRS\Apache\Apache\images/"
<Location /pls/htmldb>
SetHandler pls_handler
Order deny,allow
Allow from All
AllowOverride None
PlsqlDatabaseUsername HTMLDB_PUBLIC_USER
PlsqlDatabasePassword @BRa0aC4YJbC3UwGhi1Xlfwo=
PlsqlDatabaseConnectString ziggy NetServiceNameFormat
PlsqlDefaultPage htmldb
PlsqlDocumentTablename wwv_flow_file_object$
PlsqlDocumentPath docs
PlsqlDocumentProcedure wwv_flow_file_mgr.process_download
PlsqlAuthenticationMode Basic
PlsqlNLSLanguage AMERICAN_AMERICA.WE8MSWIN1252
</Location>
Can you help ?
P.S. As a related question, can you run the theme .sql file in sql*plus by just changing the line which specifies the application ID, i.e.:
wwv_flow.g_flow_id := 105;
to
wwv_flow.g_flow_id := 106;Ian,
Try changing this line:
PlsqlDocumentTablename wwv_flow_file_object$
to this:
PlsqlDocumentTablename wwv_flow_file_objects$
Thanks,
- Scott - -
Agent - Sunone Agent 2.1
Webserver - IIS
Policy Server - IS 6.0 SP1.
How do you get the agent log to rotate on size/time? Is there a parameter?
Currently we have to manually delete it.Log rotation feature available in 2.2 web agents. You need to find other ways to do it.
-Subba -
.default files and Apache logs in 10g AS(10.1.2.3)
Hi Friends,
I am using Oracle 10g AS (10.1.2.3) and i have some .default files in my Middle Tier and Infra home like
httpd.conf.default , access.conf.default.....
Is it safe to remove these files?
Will these files cause any Vulnerability issue on my server?
Also will Apache Log files cause Vulnerability issue on my server?
Please clarify
Regards,
DBDefault files are there as a backup for those files. If you happen to modify your files without saving a copy then this would take you back to how a typical httpd.conf (for instance, or plsql.conf or sso.properties, etc) would look like.
I do not think they are any greater source of vulnerability than any other backup files you have on your server. I do not delete them either and wouldn't from any of the servers that I administer.
thanks,
AMN -
We are running WLS 8.1.4 and have had a recurring problem with log rotation for quite a long time. It has happened on every machine we've used, running both Windows 2000 and XP. What we want to do is have our logs roll nightly, but it seems that no matter what time we set in the WLS console, the log ends up rolled at an arbitrary time.
Our current configuration is the following:
Server File Name: ourServerName_%MM%-%dd%-%yyyy%.log
Rotation Type: By Time
Rotation Time: 04:00
File Time Span: 24 Hrs
We have tried many permutations on the Rotation Time field, including removing or adding leading zeros as well as seeing if the time difference is constant due to a time zone issue, but no discernible pattern has emerged.
For instance, the logs for the last few days have been rolled at exactly 2300, despite being set to roll at 0400. Other times it has been set to roll at 0204, and it will roll at 1104. One other thing to note: the minutes are always correct, but the hours are nearly always off.
Any ideas?No, and I can verify that this problem has showed up at multiple sites configured by multiple people besides myself. As we are precisely following the specs laid out in the WLS 8.1 docs, I can only assume this is a bug.
-
[logging] Problems to configure logging rotation.
Hi,
I have an application .ear deployed in weblogic v10.3.1.0
This application use java.util.logging to write a log file.
fh = new FileHandler(logFileName,0,1,true);
fh.setFormatter(new XMLFormatter());
logger.addHandler(fh);
FileHandler(String pattern, int limit, int count, boolean append)
pattern - the pattern for naming the output file
limit - the maximum number of bytes to write to any one file. If this is zero, then there is no limit. (Defaults to no limit).
count - the number of files to use
append - specifies append mode
http://www.javadocexamples.com/java/util/logging/java.util.logging.FileHandler.html
logFileName is dynamic with date formated like this yyyMMdd + ApplicationName + ".log"
This file is created but I have also yyyyMMddSEC.log.1, yyyyMMddSEC.log.2, yyyyMMddSEC.log.3,...
I DON'T WANT THESE FILES_, that's why I put limit to 0, count to 1 and append to true.
This code works without jdev/weblogic but has not effect in weblogic.
Q1. Why?
So I go to Weblogic console: Domain Structure-> DefaultDomain->Logging
Log file name: logs/DefaultDomain.log
Rotation type: None
NONE
Messages accumulate in a single file.
You must erase the contents of the file when the size is too large.
Note that WebLogic Server sets a threshold size limit of 500 MB before it forces a hard rotation to prevent excessive log file growth.
But it doesn't work, Weblogic continue to create log files like this *<filename>.log.<n>*
Q2. Why?
I have also created weblogic.xml in ViewControler/WEB-INF
thanks to this documentation:
http://download.oracle.com/docs/cd/E13222_01/wls/docs103/webapp/weblogic_xml.html#wp1063199
but it doesn't work...again.
Q3. Why?
Q4. If I want applications manage themselves their log, how to deactivate the logging handler in weblogic (LogFileMBean?)
Thanks for your help.You may want to ask in the WebLogic Server - Diagnostics / WLDF / SNMP forum. They own logging.
-
IPlanet 4.1 Web Server - ns-cron process hangs for log rotation
Does anybody know if there is a known issue with iPlanet 4.1 Web Server where the ns-cron log rotation process hangs up?
Basically it won't rotate any logs, and using either the "Stop" or "Restart" buttons in the console won't shut it down, so you have to kill it manually, then start it again.
It seems like it will run for a couple days fine, then it will hang up.
Thanks.Nope, I've not seen this before. But 4.1 version is really old and no longer supported, you should consider upgrading to a supported version.
-
Hi,
I need to set my Apache logs to combined for AWStats to work. In 10.6 server admin there seems to be no place to change the log format. Can any one tell me how I do this? I have multiple sites hosted so will I need to do it for each site?
Thanks
PaulYou'll need to change it directly in the config file for each site. They're in /etc/apache2/sites, with names starting with a site ID number and ending in .conf. You need to change the CustomLog directive to something like
CustomLog "/var/apache2/access_log" combined
...and then restart Apache ("sudo apachectl graceful" will do the trick). -
Weblogic 5.1 SP 6 log rotation
Hi all,
I use Weblogic SP6 and, as there is a rotation with the access.log
file, I would like to configure a log rotation for the weblogic.log
file because it increases quickly. But, there seems to be no property
to configure that.
I tried to do it with system commands but this always makes with
Weblogic server fail. Does anyone has already done that and how?
Thanks in advance
FannyHi there,
I've managed to configure XSQL with Weblogic 5.1 SP6 and to run the demos from the Oracle site.
My system configuration is :
-Windows NT 4.0
-Weblogic 5.1 SP 6
-Oracle 8.1.7
-Xalan version=2.0.1
-Xerces version=1_3_1 (Support SAX2)
CLASSPATH="${oradriver.lib}:${servlets.lib}:${jaxp.lib}:${xerces.lib}:${xalan.lib}:${xsql.lib}:${weblogic.home.dir}/lib/weblogic510sp${weblogic.sp.version}boot.jar:${weblogic.home. dir}/classes/boot"
WEBLOGIC_CLASSPATH="${jaxp.lib}:${xerces.lib}:${xalan.lib}:${xsql.lib}:${weblogic.lib}:${jdom.lib}:${oreilly.lib}:${jdriver.lib}:${build.classes.dir}"
Now when trying to integrate my XSQL framework in the big picture of the webapp - I'm getting errors.
the error is:
=============================================
<WebAppServletContext-ads> looking for taglib uri
/tlds/taglib.tld as resource /WEB-INF/tlds/taglib.tld
in Web Application root:
Sat Jun 16 14:30:37 PDT 2001:<E>
<WebAppServletContext-ads> Servlet failed with
Exception
java.lang.NoSuchMethodError:
javax.servlet.jsp.tagext.TagAttributeInfo: method
<init>(Ljava/lang/String;ZZLjava/lang/String;)V not
found
at
weblogic.servlet.jsp.MyAttInfo.<init>(StandardTagLib.java:34)
at
weblogic.servlet.jsp.StandardTagLib.processTag(StandardTagLib.java:280)
=========================================
If I remove from the classpath the servlets.lib(which contains servlets.jar) I'm able to access my webapp again but I cannot process the .xsql extensions.
-the error from Weblogic appserver is:
cannot find XSQLServletPageProcessor
My question is that somebody has any ideea of what other type of servlet lib will be needed or if something else in the configuration files has to be modified?
Thanks in advance,
dan stepanov
null -
Where are the apache logs?
I need to view the apache logs. How and where do I access them in XE?
Whoever designed Apache to be hidden inside the database and accessable only through db packages needs to be spanked. If there is a good argument for hiding it all away in the db I'd love to hear it! Why make life harder? It's so easy in Standard and Enterpise DB to configure apache and modplsql.
PaulOK David here goes,
I'm using ApEx 2.1 on Oracle Express DB.
I export an application, that works fine. I now want to import it again into the same instance as a copy with a new Application Id. I start the import wizard, click on load and then I get
"Page can not be found" error.
I've followed the threads
import application - wwv_flow_accept page not found and ora-904
Page not found after import of application
but I have no idea of how to access the Web server Logs in Oracle Express which is mentioned in the above threads.
I've just had a look at the import repository and each time I tried to import the file it loaded with 2,065,528 bytes.(i.e. 3 times)
The actual file size is 4,334 Kb so it seems the import falls over half way each time.
Any ideas on where to start trouble shooting?
thanks for your response
Paul P
Maybe you are looking for
-
Streaming video over WiFi very slow
Hi, I started to dealing this unpleasant issue since I guess I updated to last firmware on my Apple TV. Now when I want to stream video from my MacBook or iPad over wifi, the picture is not fluent at all. It is cut (not sure about this word). When I
-
How to select the last elements in a string
Hi Guys I am using UART RS232 protocol and i need to calculate the check sum. My data came in decimal and in the end it must be doubles to manipulate it. So my problem is, for example, the sum of all elemants is in decimal 1742 and in hex is 6CE and
-
PLD Balance Sheet - landscape with more than four columns possible?
I'm assuming this can't be done based on the zero responses... but perhaps someone new will know... I have cleaned up the Periodic Balance Sheet by removing % differences and such, and am left with the account name and four columns (five columns tota
-
Ok, so I just got a replacement 3Gs, and up until this new phone, I had no problems connecting my iphone to itunes via remote application. Now, when I select "Add Library" the phone does indeed show up as a device in itunes, and lets me enter the pin
-
Accessing javax.swing.JPanel from outside the EDT
Hi everybody! I am not new to Java but to Swing. Please consider the following: public class MyPanel extends JPanel private int number = 0; private Object object = null; public int getNumber() return number; public void