Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix issue 6533 #7234

Merged
merged 5 commits into from
Dec 6, 2022
Merged

Fix issue 6533 #7234

merged 5 commits into from
Dec 6, 2022

Conversation

villajo
Copy link
Contributor

@villajo villajo commented Dec 6, 2022

Closes: #6533

This ticket fixes an issue with logrotation in Traffic Router where the file handle wouldn't stay with the file being written to upon rotation. This would cause forwarding applications EG: Splunk or propriatory)


Which Traffic Control components are affected by this PR?

  • Traffic Router

What is the best way to verify this PR?

Install Traffic-Router on a Rocky8 or CentOS7 system. In /etc/cron.daily, you'll see a file called logrotate. There will be a command that can be ran.. /usr/sbin/logrotate /etc/logrotate.conf. Running this will run the logrotate file for traffic router ( /etc/logrotate.d/traffic_router).

If this is a bugfix, which Traffic Control versions contained the bug?

All

PR submission checklist

Villa, Joseph added 4 commits November 14, 2022 14:53
Added new file for log4j2.xml as well as logrotate configuration. We may need to tweak further, maybe add an hourly logrotate file if we feel like. But this is a good start. I need to know the other places that I need to modify Traffic Router to make sure the changes get into the RPM.
Addition of logrotate. Still need to test.
@ocket8888 ocket8888 added Traffic Router related to Traffic Router regression bug a bug in existing functionality introduced by a new version logging related to logging infrastructure labels Dec 6, 2022
Copy link
Member

@zrhoffman zrhoffman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great, thanks for your PR!

@zrhoffman zrhoffman merged commit b1842db into apache:master Dec 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
logging related to logging infrastructure regression bug a bug in existing functionality introduced by a new version Traffic Router related to Traffic Router
Projects
None yet
Development

Successfully merging this pull request may close these issues.

TR should not rename/recreate log files on rollover
3 participants