Skip to content

Conversation

balaji17091982
Copy link

@balaji17091982 balaji17091982 commented Jun 11, 2023

  • Filename will be prepended with the system timestamp in YYYYMMDD_hhmmss- format
  • A new attribute "Rotation" of type Integer added
  • Value of Rotation specifies the frequency of log rotation in minutes
  • Value of rotation can be in the range of [1 - 1440 (1 day)]

Enter [N/A] in the box, if an item is not applicable to your change.

Testing
Before we can approve your change; please submit the following in a comment:

  • Example configuration file for the change
  • Debug log output from testing the change
  • Attached Valgrind output that shows no leaks or memory corruption was found

If this is a change to packaging of containers or native binaries then please confirm it works for all targets.

  • Run local packaging test showing all targets (including any new ones) build.
  • Set ok-package-test label to test for all targets (requires maintainer to do).

Documentation

  • Documentation required for this feature

Backporting

  • Backport to latest stable release.

Fluent Bit is licensed under Apache 2.0, by submitting this pull request I understand that this code will be released under the terms of that license.

- Filename will be prepended with the system timestamp in YYYYMMDD_hhmmss-<Tag> format
- A new attribute "Rotation" of type Integer added
- Value of Rotation specifies the frequency of log rotation in minutes
- Value of rotation can be in the range of [1 - 1440 (1 day)]
if (str == NULL) {
return 0;
}
return(atoi(str));
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think this probably needs a lot more defensive code around it to handle all the possible failure outcomes and "undefined behaviour" of atoi: https://cplusplus.com/reference/cstdlib/atoi/

It should also test invalid strings, etc. to confirm.

Copy link
Contributor

This PR is stale because it has been open 45 days with no activity. Remove stale label or comment or this will be closed in 10 days.

@github-actions github-actions bot added the Stale label Dec 10, 2023
@github-actions github-actions bot removed the Stale label Aug 16, 2024
Copy link
Contributor

This PR is stale because it has been open 45 days with no activity. Remove stale label or comment or this will be closed in 10 days.

Copy link
Contributor

This PR is stale because it has been open 45 days with no activity. Remove stale label or comment or this will be closed in 10 days.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants