-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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 nil pointer deref if the file output lacks a path
setting.
#40992
Fix nil pointer deref if the file output lacks a path
setting.
#40992
Conversation
This pull request does not have a backport label.
To fixup this pull request, you need to add the backport labels for the needed
|
|
Pinging @elastic/elastic-agent-data-plane (Team:Elastic-Agent-Data-Plane) |
) * fix nil pointer deref if the fileout lacks a path * format * fix tests (cherry picked from commit bdcad10)
) (#41030) * fix nil pointer deref if the fileout lacks a path * format * fix tests (cherry picked from commit bdcad10) Co-authored-by: Alex K. <[email protected]>
Proposed commit message
Fixes a small bug where if the
output.file
config is enabled but doesn't have a correctly setpath
setting, thepathFormatString.Run()
method will be null, and explode. This sets the default config to have a non-null path format string, and also checks to make sureEventFormatString
is non-null.Checklist
CHANGELOG.next.asciidoc
orCHANGELOG-developer.next.asciidoc
.