Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 950265
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T23:32:14+00:00 2026-05-15T23:32:14+00:00

I have written a wlst script to change the log file rotation strategy from

  • 0

I have written a wlst script to change the log file rotation strategy from BySize to ByTime which works correctly but the names of the rotated files are still fileName.log000n where n is a number.

I would like to have a datestamp in the rotated filenames instead. I didn’t find any way to do this. Neither from the admin console nor with wlst.

Any suggestions ?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T23:32:15+00:00Added an answer on May 15, 2026 at 11:32 pm

    It is possible to set the timestamp in the name of the file.

    From http://download.oracle.com/docs/cd/E12839_01/apirefs.1111/e13952/taskhelp/logging/RotateLogFiles.html

    To include a time and date stamp in
    the file name when the log file is
    rotated, in the File Name field, add
    java.text.SimpleDateFormat variables
    to the file name and surround each
    variable with percentage (%)
    characters.

    For example, if you enter the
    following value in the File Name
    field:
    myserver_%yyyy%%MM%%dd%%hh%%mm%.log,
    the server’s log file will be named:
    myserver_yyyy_MM_dd_hh_mm.log.

    When the server instance rotates the
    log file, the rotated file name
    contains the date stamp. For example,
    if the server instance rotates its
    local log file on 4 March, 2005 at
    10:15 AM, the log file that contains
    the old log messages will be named:
    myserver_2005_03_04_10_15.log.

    If you do not include a time and date
    stamp, the rotated log files are
    numbered in order of creation
    filenamennnnn, where filename is the
    name configured for the log file. For
    example: myserver.log00007

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have written a ruby script which opens up dlink admin page in firefox
have written a stochastic simulation in Java, which loads data from a few CSV
I have written an application which collects windows logs from linux, via the Zenoss
I have written an AIR Application that downloads videos and documents from a server.
I have written an AppleScript which when supplied with a Windows network link, will
I have written a watir script that downloads files. One of the files it
I have written a VERY simple MVC application which just displays a single string
I have written code to save an image which is generated by the application.
I have written a simple module to store and manipulate an ontology which is
I have written a function template and an explicitly specialized templated function which simply

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.