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

  • SEARCH
  • Home
  • 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 8262991
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T03:56:35+00:00 2026-06-08T03:56:35+00:00

I have enabled Jetty Access Logs in production and things were going great, until

  • 0

I have enabled Jetty Access Logs in production and things were going great, until today. Today the access logs appear to no longer be taking data, even though the service itself is running without incident. I suspect there is something I don’t understand about the “retainDays” property. Here is the excerpt from etc/jetty.xml that sets up the logging…

<!-- Built-in Jetty AccessLog log -->
<Ref id="AccessLog">
  <Set name="requestLog">
    <New id="RequestLogImpl" class="org.eclipse.jetty.server.NCSARequestLog">
      <Arg><SystemProperty name="jetty.logs" default="/data/logs"/>/dm-app1_access.log</Arg>
      <Set name="retainDays">7</Set>
      <Set name="append">true</Set>
      <Set name="extended">false</Set>
      <Set name="logLatency">true</Set>
      <Set name="LogTimeZone">GMT</Set>
    </New>
  </Set>
</Ref>

Why did logging seemingly stop when this kid hit the retainDays value? I expected it to just truncate and continue on logging to /data/logs/dm-app1_access.log.

  • 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-06-08T03:56:38+00:00Added an answer on June 8, 2026 at 3:56 am

    The logging stopped because my filename did not include the “yyyy_mm_dd” placeholder. The configuration found to work complete with a logfile naming format similar how we have our logback RollingFileAppenders going is like…

    <!-- Built-in Jetty AccessLog log -->
    <Ref id="AccessLog">
      <Set name="requestLog">
        <New id="RequestLogImpl" class="org.eclipse.jetty.server.NCSARequestLog">
          <Set name="filename"><SystemProperty name="jetty.logs" default="./logs"/>/access.yyyy_mm_dd.log</Set>
          <Set name="filenameDateFormat">yyyyMMdd</Set>
          <Set name="retainDays">3</Set>
          <Set name="append">true</Set>
          <Set name="extended">false</Set>
          <Set name="logLatency">true</Set>
          <Set name="LogTimeZone">GMT</Set>
        </New>
      </Set>
    </Ref>
    

    …this gets access logfiles created like logs/access.20120718.log. The big learning moment came when I figured out that ‘yyyy_mm_dd’ in the “filename” property is just a placeholder for the actual SimpleDateFormat contained in the “filenameDateFormat” property.

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

Sidebar

Related Questions

I have enabled trace logging in .NET to output the network data going back
I have enabled the Web Server on my Mac OS X (10.5.6) by going
I have enabled appstats for my Python App Engine application, and I can access
Hey guys I have enabled APC on my VPS but now I can't access
We have enabled the NoTrackingReleasePolicy on our windsor containers, and today I found out
I have enabled permissions for internet access, there are no proxies to deal with.
I have enabled search in my MonoTouch.Dialog. After each keystroke I call the database,
I have enabled the lighttpd mod_webdav module and set up a webdav mount point
I have enabled USB debugging on my phone and have set the Debuggable permission
I have enabled the static analyzer, but it is telling me that at the

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.