Skip to content

Conversation

@rdner
Copy link
Member

@rdner rdner commented Oct 15, 2025

Otherwise, it overrides the configured value.

Checklist

  • I have reviewed tips for building integrations and this pull request is aligned with them.
  • I have verified that all data streams collect metrics or logs.
  • I have added an entry to my package's changelog.yml file.
  • I have verified that Kibana version constraints are current according to guidelines.
    - [ ] I have verified that any added dashboard complies with Kibana's Dashboard good practices

How to test this PR locally

Build the package and run the stack using elastic-package:

cd ./packages/filestream
elastic-package build 
elastic-package stack up -v --version 9.2.0-SNAPSHOT

Create a policy with the filestream integration setting a custom dataset value. I've set elastic-agent.test.

sudo ./elastic-agent install --develop
sudo elastic-development-agent enroll --url=https://fleet-server:8220 --enrollment-token=<string> --insecure

Then check the ingested documents in Kibana Discover:

Screenshot 2025-10-15 at 13 53 05 Screenshot 2025-10-15 at 13 56 20

verify that dataset fields and the _index are correct and match the configuration.

Before this change the events didn't show up at all due to mismatch in routing.

I also tested with the default dataset value:

Screenshot 2025-10-15 at 14 57 22 Screenshot 2025-10-15 at 14 57 33

Related issues

Otherwise, it overrides the configured value.
@rdner rdner self-assigned this Oct 15, 2025
@rdner rdner added bug Something isn't working, use only for issues Team:Elastic-Agent-Data-Plane Agent Data Plane team [elastic/elastic-agent-data-plane] labels Oct 15, 2025
@andrewkroh andrewkroh added the Integration:filestream Custom Logs (Filestream) label Oct 15, 2025
@rdner rdner marked this pull request as ready for review October 15, 2025 13:00
@rdner rdner requested a review from a team as a code owner October 15, 2025 13:00
@rdner rdner requested a review from mauri870 October 15, 2025 13:00
@elasticmachine
Copy link

Pinging @elastic/elastic-agent-data-plane (Team:Elastic-Agent-Data-Plane)

@rdner
Copy link
Member Author

rdner commented Oct 15, 2025

@jsoriano I think we should remove the [email protected] package from the registry to avoid data loss on the user's end.

In theory, [email protected] should never be installed anyway because there is a newer available version. It's better to be safe though.

@elasticmachine
Copy link

💚 Build Succeeded

History

cc @rdner

Copy link
Contributor

@belimawr belimawr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

One thing, that's not necessarily related to this PR: I tested installing the version 2.0.0, changing the default dataset and then upgrading the integration to 2.0.1 (this PR's version). When this is done data is not ingested after the upgrade, the problem persists.

I didn't investigate much, but it seem that the problem is not with the integration/its upgrade, the problem is using the same dataset as with the buggy version. I even tried just installing this version (2.0.1) and using the same dataset name as with a 2.0.0, even with this fresh installation install data was not ingested.

We likely need to add some extra documentation/warning and investigate if there is a way to "clean up" ES so the same dataset name can be used.

@belimawr
Copy link
Contributor

@jsoriano I think we should remove the [email protected] package from the registry to avoid data loss on the user's end.

In theory, [email protected] should never be installed anyway because there is a newer available version. It's better to be safe though.

+1 to removing [email protected] from the package registry because users can still install it if they look for the old package (e.g: by editing the URL to get the 'old' version).

@belimawr
Copy link
Contributor

LGTM

One thing, that's not necessarily related to this PR: I tested installing the version 2.0.0, changing the default dataset and then upgrading the integration to 2.0.1 (this PR's version). When this is done data is not ingested after the upgrade, the problem persists.

I didn't investigate much, but it seem that the problem is not with the integration/its upgrade, the problem is using the same dataset as with the buggy version. I even tried just installing this version (2.0.1) and using the same dataset name as with a 2.0.0, even with this fresh installation install data was not ingested.

We likely need to add some extra documentation/warning and investigate if there is a way to "clean up" ES so the same dataset name can be used.

After writing this I realised that [email protected] requires Kibanan 9.2.0, which has not been released yet. So unless users are running a snapshot version, there is no way they installed the buggy integration version.

@rdner rdner merged commit d113743 into elastic:main Oct 15, 2025
7 checks passed
@rdner rdner deleted the fix-filestream-dataset branch October 15, 2025 14:29
@elastic-vault-github-plugin-prod

Package filestream - 2.0.1 containing this change is available at https://epr.elastic.co/package/filestream/2.0.1/

@belimawr
Copy link
Contributor

@rdner, [email protected] is available in Serverless. So we'll have to deal with users upgrading from it to 2.0.1.

@philippkahr
Copy link
Contributor

We would need to make sure we force a rollover :D then the wrong setting in the index mapping from the 2.0.0 shouldn't matter anymore.

@jsoriano
Copy link
Member

@jsoriano I think we should remove the [email protected] package from the registry to avoid data loss on the user's end.

Package removed from the registry. It can be still available during some time in some locations depending on CDN caches.

agithomas pushed a commit to agithomas/integrations that referenced this pull request Oct 30, 2025
Otherwise, it overrides the configured value.
Add a test for the change.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working, use only for issues Integration:filestream Custom Logs (Filestream) Team:Elastic-Agent-Data-Plane Agent Data Plane team [elastic/elastic-agent-data-plane]

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants