Skip to content

util/log: rotate log file periodically - #15611

Closed
Abhijeet94 wants to merge 1 commit into
OISF:mainfrom
Abhijeet94:log-rot-no-traffic-4
Closed

util/log: rotate log file periodically#15611
Abhijeet94 wants to merge 1 commit into
OISF:mainfrom
Abhijeet94:log-rot-no-traffic-4

Conversation

@Abhijeet94

Copy link
Copy Markdown

Fix log file not rotating during zero traffic periods by triggering rotation logic every second

Ticket: https://redmine.openinfosecfoundation.org/issues/8115

Make sure these boxes are checked accordingly before submitting your Pull Request -- thank you.

Contribution style:

Our Contribution agreements:

Changes (if applicable):

Link to ticket: https://redmine.openinfosecfoundation.org/issues/8115

Describe changes:
Used the periodic log flush thread to do log rotation every 1 second. Write is triggered with a Rotate function pointer. This PR is a follow-up for this.

Fix log file not rotating during zero traffic periods by triggering rotation logic every second

Ticket: https://redmine.openinfosecfoundation.org/issues/8115
@Abhijeet94
Abhijeet94 requested a review from victorjulien as a code owner June 11, 2026 18:20
@Abhijeet94

Copy link
Copy Markdown
Author

Follow up from #15284

@jlucovsky jlucovsky left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This looks good

One small change is needed before this can be considered for merging

Please update the copyright dates in all modified source modules.

@victorjulien victorjulien added this to the 9.0 milestone Jun 12, 2026
@Abhijeet94

Copy link
Copy Markdown
Author

Following up here #15635

@Abhijeet94 Abhijeet94 closed this Jun 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants