-
Notifications
You must be signed in to change notification settings - Fork 148
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update event logger configuration via Fleet and environment variable …
…(container command) (#4932) (#5109) This commit adds the ability to receive event logger output configuration via Fleet. Previously only the log level was received via Fleet and persisted. Fleet can store the event logger configuration in the overrides section from the policy, allowing users to change and persist this configuration. The Elastic-Agent needs this configuration at startup, so whenever the Elastic-Agent receives a new policy from Fleet, it compares the event logging output configuration with its current one, if it is different, it is persisted to disk and the Elastic-Agent re-execs. When it re-starts it reads the new values from the persistent store and applies them. --------- Co-authored-by: Pierre HILBERT <[email protected]> (cherry picked from commit 72c1ebd) Co-authored-by: Tiago Queiroz <[email protected]>
- Loading branch information
1 parent
475d247
commit ced6bc6
Showing
11 changed files
with
746 additions
and
256 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21730,11 +21730,11 @@ THE SOFTWARE. | |
|
||
-------------------------------------------------------------------------------- | ||
Dependency : github.com/gobuffalo/here | ||
Version: v0.6.0 | ||
Version: v0.6.7 | ||
Licence type (autodetected): MIT | ||
-------------------------------------------------------------------------------- | ||
|
||
Contents of probable licence file $GOMODCACHE/github.com/gobuffalo/[email protected].0/LICENSE: | ||
Contents of probable licence file $GOMODCACHE/github.com/gobuffalo/[email protected].7/LICENSE: | ||
|
||
The MIT License (MIT) | ||
|
||
|
@@ -29554,11 +29554,11 @@ SOFTWARE. | |
|
||
-------------------------------------------------------------------------------- | ||
Dependency : github.com/karrick/godirwalk | ||
Version: v1.16.1 | ||
Version: v1.17.0 | ||
Licence type (autodetected): BSD-2-Clause | ||
-------------------------------------------------------------------------------- | ||
|
||
Contents of probable licence file $GOMODCACHE/github.com/karrick/godirwalk@v1.16.1/LICENSE: | ||
Contents of probable licence file $GOMODCACHE/github.com/karrick/godirwalk@v1.17.0/LICENSE: | ||
|
||
BSD 2-Clause License | ||
|
||
|
@@ -30478,11 +30478,11 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI | |
|
||
-------------------------------------------------------------------------------- | ||
Dependency : github.com/markbates/pkger | ||
Version: v0.17.0 | ||
Version: v0.17.1 | ||
Licence type (autodetected): MIT | ||
-------------------------------------------------------------------------------- | ||
|
||
Contents of probable licence file $GOMODCACHE/github.com/markbates/[email protected].0/LICENSE: | ||
Contents of probable licence file $GOMODCACHE/github.com/markbates/[email protected].1/LICENSE: | ||
|
||
The MIT License (MIT) | ||
|
||
|
@@ -38665,11 +38665,11 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | |
|
||
-------------------------------------------------------------------------------- | ||
Dependency : github.com/sergi/go-diff | ||
Version: v1.2.0 | ||
Version: v1.3.1 | ||
Licence type (autodetected): MIT | ||
-------------------------------------------------------------------------------- | ||
|
||
Contents of probable licence file $GOMODCACHE/github.com/sergi/go-diff@v1.2.0/LICENSE: | ||
Contents of probable licence file $GOMODCACHE/github.com/sergi/go-diff@v1.3.1/LICENSE: | ||
|
||
Copyright (c) 2012-2016 The go-diff Authors. All rights reserved. | ||
|
||
|
@@ -39511,11 +39511,11 @@ Exhibit B - "Incompatible With Secondary Licenses" Notice | |
|
||
-------------------------------------------------------------------------------- | ||
Dependency : github.com/spf13/afero | ||
Version: v1.9.5 | ||
Version: v1.10.0 | ||
Licence type (autodetected): Apache-2.0 | ||
-------------------------------------------------------------------------------- | ||
|
||
Contents of probable licence file $GOMODCACHE/github.com/spf13/afero@v1.9.5/LICENSE.txt: | ||
Contents of probable licence file $GOMODCACHE/github.com/spf13/afero@v1.10.0/LICENSE.txt: | ||
|
||
Apache License | ||
Version 2.0, January 2004 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
# Kind can be one of: | ||
# - breaking-change: a change to previously-documented behavior | ||
# - deprecation: functionality that is being removed in a later release | ||
# - bug-fix: fixes a problem in a previous version | ||
# - enhancement: extends functionality but does not break or fix existing behavior | ||
# - feature: new functionality | ||
# - known-issue: problems that we are aware of in a given version | ||
# - security: impacts on the security of a product or a user’s deployment. | ||
# - upgrade: important information for someone upgrading from a prior version | ||
# - other: does not fit into any of the other categories | ||
kind: feature | ||
|
||
# Change summary; a 80ish characters long description of the change. | ||
summary: Event logger output now can be set via Fleet overrides or environment variable for container command. | ||
|
||
# Long description; in case the summary is not enough to describe the change | ||
# this field accommodate a description without length limits. | ||
# NOTE: This field will be rendered only for breaking-change and known-issue kinds at the moment. | ||
#description: | ||
|
||
# Affected component; usually one of "elastic-agent", "fleet-server", "filebeat", "metricbeat", "auditbeat", "all", etc. | ||
component: elastic-agent | ||
|
||
# PR URL; optional; the PR number that added the changeset. | ||
# If not present is automatically filled by the tooling finding the PR where this changelog fragment has been added. | ||
# NOTE: the tooling supports backports, so it's able to fill the original PR number instead of the backport PR number. | ||
# Please provide it if you are adding a fragment for a different PR. | ||
pr: https://github.com/elastic/elastic-agent/pull/4932 | ||
|
||
# Issue URL; optional; the GitHub issue related to this changeset (either closes or is part of). | ||
# If not present is automatically filled by the tooling with the issue linked to the PR number. | ||
#issue: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.