-
Notifications
You must be signed in to change notification settings - Fork 54
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
Updates storage path for internal data to use subfolder in Logstash's data.path
#106
Updates storage path for internal data to use subfolder in Logstash's data.path
#106
Conversation
The failure on |
data.path
6cff405
to
f210543
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changes and flow looks good. I've left a couple nitpicks.
The 🔴 CI is due to a |
All changes have been implemented, requesting re-review.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One change about specifying which file to delete, and a couple nitpicks :)
4f72e4e
to
77f9c18
Compare
@yaauie the PR is ready for another round of review :-) |
…S data.path folder and not in /home/andrea
…e new destination
Copy the old file to new location, if not yet created, and then tries to delete the old one.
Co-authored-by: Ry Biesemeyer <[email protected]>
Co-authored-by: Ry Biesemeyer <[email protected]>
…h.data}/plugins/shared/derby_home
77f9c18
to
bf964f1
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👍🏼
Release notes
Change default path of 'last_run_metadata_path' to be rooted in the LS
data.path
folder and not in $HOME. Also apply a path forward action to move existing metadata file to the new destination.What does this PR do?
Change default path of 'last_run_metadata_path' to be rooted in the LS data.path folder and not in $HOME, in the input plugin.
Provide a path forward for existing metada file in
$HOME
to be moved in the newdata.path
destination.Updates the path used by derby inside the jdbc_static filter plugin to use Logstash
data.path
subfolder.Why is it important/What is the impact to the user?
It avoid to store state data into path that Logstash process doesn't have the rights to access.
After PR elastic/logstash#12782, released with Logstash
7.13.0
, the owner of Logstash installation dir changed fromlogstash
user toroot
, so the $HOME directory used by Logstash process is not writable by it.The process must store data only in the
data.path
folder.There's the expectation to create the smoothest path forward, so that users doesn't need to manually update their pipelines nor to manually intervene in moving files on their machines.
Checklist
[] I have made corresponding changes to the documentation[ ] I have made corresponding change to the default configuration files (and/or docker env variables)Author's Checklist
How to test this PR locally
Related issues
Use cases
As a user that uses the
record_last_run
I want to be able to upgrade to Logstash >= 7.13 without any throubles about access rights on internal storage files.