OHS access_log Does Not Rotate In The Defined Location

(Doc ID 1356538.1)

Last updated on FEBRUARY 18, 2016

Applies to:

Oracle HTTP Server - Version and later
Information in this document applies to any platform.
Checked for relevance on 02-Jan-2014


Trying rotate logs for 11g Fusion Middleware Http server following the Oracle Documentation

The Logs does not get stored in the specified location.
It tries to create the logs but is unable to rename them.

The issue occurs with only and

For example:
The Location specified in the option - ${ORACLE_INSTANCE}/diagnostics/logs/${COMPONENT_TYPE}/${COMPONENT_NAME},
but in the ohs.log it is seen as, it tries to create log in /USERS/bea/ohs_11.11270021790.1/as_1/instances/instance2/diagnostics /logs/OHS/ohs1/, but it fails on renaming.

[2010-03-31T16:53:18.0062+09:00] [OHS] [INCIDENT_ERROR:10] [OHS-9999] [mod_onsint.c] [host_id: <hostname>] [host_addr: <ip_address>]
[pid: 1708] [tid: 1] [user: <username>] [VirtualHost: main]
piped log program '/USERS/bea/ohs_11.1.1/as_1/ohs/bin/odl_rotatelogs /USERS/bea/ohs_11.1.1/as_1/instances/instance2/diagnostics/logs/OHS/ohs1/access_log 10 30 2010-03-31T16:48:30' failed unexpectedly


Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms