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(file): rotate active file if it points to a symbolic link #274

Merged
merged 8 commits into from
Feb 20, 2025

Conversation

mauri870
Copy link
Member

@mauri870 mauri870 commented Feb 6, 2025

What does this PR do?

This PR changes the file rotation logic of the file package to force a rotation if the active file is a symlink.

Related issues

@mauri870 mauri870 added bug Something isn't working Team:Elastic-Agent-Data-Plane Label for the Agent Data Plane team labels Feb 6, 2025
@mauri870 mauri870 self-assigned this Feb 6, 2025
@mauri870 mauri870 requested a review from a team as a code owner February 6, 2025 18:01
@mauri870 mauri870 requested review from faec and VihasMakwana and removed request for a team February 6, 2025 18:01
@mauri870 mauri870 marked this pull request as draft February 6, 2025 18:07
@mauri870
Copy link
Member Author

mauri870 commented Feb 6, 2025

Leaving as draft for now, I need to trigger a beats test run with this commit to make sure nothing broke.

@mauri870 mauri870 force-pushed the file-rotation-symlink branch 7 times, most recently from 61807da to c4fd1bd Compare February 7, 2025 20:19
@mauri870 mauri870 force-pushed the file-rotation-symlink branch from c4fd1bd to a202d20 Compare February 12, 2025 13:19
@mauri870 mauri870 marked this pull request as ready for review February 12, 2025 14:40
@mauri870
Copy link
Member Author

I tested with the beats file output and logger output, seems to be working as intended.

@mauri870
Copy link
Member Author

Friendly ping for a review, thanks in advance!

@elasticmachine
Copy link
Collaborator

💚 Build Succeeded

History

cc @mauri870

@mauri870
Copy link
Member Author

mauri870 commented Feb 18, 2025

@cmacknz I requested a review from you, since you are more familiar with the discussion around this. Appreciate if you can do a quick review. Thanks!

Edit: I recall that you already approved these changes in another discussion.

@mauri870 mauri870 requested a review from cmacknz February 18, 2025 12:57
@mauri870 mauri870 merged commit 55121c5 into elastic:main Feb 20, 2025
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Team:Elastic-Agent-Data-Plane Label for the Agent Data Plane team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants