-
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
Remove x-pack code from OSS filebeat. #40483
Remove x-pack code from OSS filebeat. #40483
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) |
Hey @vinit-chauhan, thanks for your contribution. I'm comparing the code you added in I'm worried that the changes to the package's API might make migration harder for any other code that currently relies on the x-pack library. The changes I noticed:
@leehinman Do you have any thoughts on this? |
This adds support for hyphens (`-`) in extension keys. The CEF spec says that extension keys alphanumeric. So this is a deviation, but a minor one that is inline with past deviations to allow dots in extension keys. I have also added .ri file to gitignore file as they are intermediate files generated by regel. Closes elastic#40348
In order to handle timezones we import Go's own timezone database. This import is done indirectly by libbeat/common/cfgtype. We trust that this package will end up being required by the dependency chain of every beats main binary. To ensure that the binaries continue to handle timezones correctly and to avoid any unexpected issues, let's import time/tzdata explicitly in the main packages. See elastic#40326. Co-authored-by: Pierre HILBERT <[email protected]>
* chore: add effective capabiltiies in agentbeat * chore: comments * fix: changelog * fix: add license * fix: lint * fix: goimports * fix: remove HasRoot for other OSes --------- Co-authored-by: Pierre HILBERT <[email protected]>
…er/costmanagement/armcostmanagement from 1.1.0 to 1.1.1 (elastic#40422) * build(deps): bump github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/costmanagement/armcostmanagement Bumps [github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/costmanagement/armcostmanagement](https://github.com/Azure/azure-sdk-for-go) from 1.1.0 to 1.1.1. - [Release notes](https://github.com/Azure/azure-sdk-for-go/releases) - [Changelog](https://github.com/Azure/azure-sdk-for-go/blob/main/documentation/release.md) - [Commits](Azure/azure-sdk-for-go@v1.1...sdk/azcore/v1.1.1) --- updated-dependencies: - dependency-name: github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/costmanagement/armcostmanagement dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> * Update NOTICE.txt --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: dependabot[bot] <dependabot[bot]@users.noreply.github.com> Co-authored-by: Maurizio Branca <[email protected]>
elastic#40471) * build(deps): bump the gcp-sdks group across 1 directory with 8 updates Bumps the gcp-sdks group with 3 updates in the / directory: [cloud.google.com/go/monitoring](https://github.com/googleapis/google-cloud-go), [cloud.google.com/go/pubsub](https://github.com/googleapis/google-cloud-go) and [cloud.google.com/go/auth/oauth2adapt](https://github.com/googleapis/google-cloud-go). Updates `cloud.google.com/go/monitoring` from 1.20.2 to 1.20.4 - [Release notes](https://github.com/googleapis/google-cloud-go/releases) - [Changelog](https://github.com/googleapis/google-cloud-go/blob/main/CHANGES.md) - [Commits](googleapis/google-cloud-go@video/v1.20.2...video/v1.20.4) Updates `cloud.google.com/go/pubsub` from 1.40.0 to 1.41.0 - [Release notes](https://github.com/googleapis/google-cloud-go/releases) - [Changelog](https://github.com/googleapis/google-cloud-go/blob/main/CHANGES.md) - [Commits](googleapis/google-cloud-go@pubsub/v1.40.0...pubsub/v1.41.0) Updates `cloud.google.com/go/compute` from 1.27.3 to 1.27.4 - [Release notes](https://github.com/googleapis/google-cloud-go/releases) - [Changelog](https://github.com/googleapis/google-cloud-go/blob/main/CHANGES.md) - [Commits](googleapis/google-cloud-go@compute/v1.27.3...compute/v1.27.4) Updates `cloud.google.com/go/redis` from 1.16.3 to 1.16.4 - [Release notes](https://github.com/googleapis/google-cloud-go/releases) - [Changelog](https://github.com/googleapis/google-cloud-go/blob/main/CHANGES.md) - [Commits](googleapis/google-cloud-go@redis/v1.16.3...redis/v1.16.4) Updates `cloud.google.com/go/auth` from 0.7.2 to 0.8.0 - [Release notes](https://github.com/googleapis/google-cloud-go/releases) - [Changelog](https://github.com/googleapis/google-cloud-go/blob/main/CHANGES.md) - [Commits](googleapis/google-cloud-go@auth/v0.7.2...v0.8.0) Updates `cloud.google.com/go/auth/oauth2adapt` from 0.2.3 to 0.2.4 - [Release notes](https://github.com/googleapis/google-cloud-go/releases) - [Changelog](https://github.com/googleapis/google-cloud-go/blob/main/CHANGES.md) - [Commits](googleapis/google-cloud-go@netapp/v0.2.3...netapp/v0.2.4) Updates `cloud.google.com/go/iam` from 1.1.11 to 1.1.12 - [Release notes](https://github.com/googleapis/google-cloud-go/releases) - [Changelog](https://github.com/googleapis/google-cloud-go/blob/main/CHANGES.md) - [Commits](googleapis/google-cloud-go@iam/v1.1.11...iam/v1.1.12) Updates `cloud.google.com/go/longrunning` from 0.5.10 to 0.5.11 - [Release notes](https://github.com/googleapis/google-cloud-go/releases) - [Changelog](https://github.com/googleapis/google-cloud-go/blob/main/CHANGES.md) - [Commits](googleapis/google-cloud-go@longrunning/v0.5.10...longrunning/v0.5.11) --- updated-dependencies: - dependency-name: cloud.google.com/go/monitoring dependency-type: direct:production update-type: version-update:semver-patch dependency-group: gcp-sdks - dependency-name: cloud.google.com/go/pubsub dependency-type: direct:production update-type: version-update:semver-minor dependency-group: gcp-sdks - dependency-name: cloud.google.com/go/compute dependency-type: direct:production update-type: version-update:semver-patch dependency-group: gcp-sdks - dependency-name: cloud.google.com/go/redis dependency-type: direct:production update-type: version-update:semver-patch dependency-group: gcp-sdks - dependency-name: cloud.google.com/go/auth dependency-type: indirect update-type: version-update:semver-minor dependency-group: gcp-sdks - dependency-name: cloud.google.com/go/auth/oauth2adapt dependency-type: indirect update-type: version-update:semver-patch dependency-group: gcp-sdks - dependency-name: cloud.google.com/go/iam dependency-type: indirect update-type: version-update:semver-patch dependency-group: gcp-sdks - dependency-name: cloud.google.com/go/longrunning dependency-type: indirect update-type: version-update:semver-patch dependency-group: gcp-sdks ... Signed-off-by: dependabot[bot] <[email protected]> * Update NOTICE.txt --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: dependabot[bot] <dependabot[bot]@users.noreply.github.com>
* update elastic-agent-system-metrics * add changelog
…tion ordering (elastic#40487) Previously, the configuration was eager, this caused a panic when the request trace logging option was turned on since it was started without a context. Move the construction of components to when we have all the parts we need.
* [CI] Agentbeat integration testing * Split packaging and integration test * Fix artifacts path * Added NodeJS version * docker compose replace --no-ansi with --ansi never * Mistype * Removed metricbeat from agentbeat's GoIntegTest
Hey @andrzej-stencel - I'm always happy to contribute to Elastic. :) The reason for not moving the code as-is is, that this code is used only in the For the points you mentioned,
interfaces used: That is the explanation for the changes I have made. Let me know your thoughts. |
@vinit-chauhan given the limited usage of this new mock and that @andrzej-stencel does it sound good to u? |
Hey @AndersonQ - wouldn't that cause the same issue? So, I think it's better to keep the libbeat mocks in libbeat, so that we don't cross reference others. But, let me know what you think, I'll update accordingly. :) |
Oh, I meant moving just the mock you created and keeping the mockbeat where it is |
Oh I see, it makes sense then! Let's wait for a bit if someone else has any comments, otherwise I'll update the code as per our discusstion. |
sorry for missing this. I like @AndersonQ suggestion. |
Sorry for the delay, sounds good to me 👍 |
/test |
run docs-build |
Hey team - Apologies for the delay. I have moved the mock to the Let me know if you require anything else. |
/test |
run docs-build |
Proposed commit message
Remove x-pack code from OSS filebeat.
This PR creates a
MockPipelineConnector
andMockClient
interface in the libbeat to drop the x-pack dependency in OSS code.Checklist
CHANGELOG.next.asciidoc
orCHANGELOG-developer.next.asciidoc
.Disruptive User Impact
Author's Checklist
How to test this PR locally
Related issues
Use cases
Screenshots
Logs