[Filestream] Remove duplicated ECS mappings from package template#17701
Merged
belimawr merged 5 commits intoelastic:mainfrom Mar 12, 2026
Merged
[Filestream] Remove duplicated ECS mappings from package template#17701belimawr merged 5 commits intoelastic:mainfrom
belimawr merged 5 commits intoelastic:mainfrom
Conversation
|
Pinging @elastic/elastic-agent-data-plane (Team:Elastic-Agent-Data-Plane) |
💚 Build Succeeded
cc @belimawr |
andrzej-stencel
approved these changes
Mar 11, 2026
…ove-duplicated-ecs-mappings
…imawr/integrations into 15704-remove-duplicated-ecs-mappings
khushijain21
approved these changes
Mar 12, 2026
|
Package filestream - 2.3.3 containing this change is available at https://epr.elastic.co/package/filestream/2.3.3/ |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Proposed commit message
Remove the imported ECS mappings from the Filestream integration and rely on the
ecs@mappingsadded by FleetChecklist
changelog.ymlfile.I have verified that any added dashboard complies with Kibana's Dashboard good practices## Author's ChecklistHow to test this PR locally
1.Build the package and start the stack
2. Add a new Filestream integration
Add a new Filestream integration accepting all of the defaults. Skip installing Elastic Agent
Shortcut: https://localhost:5601/app/fleet/integrations/filestream-2.3.3/add-integration
3. Validate the integration index template
filestream, openlogs-filestream.generic@packagelogs-filestream.generic@package mappings
{ "properties": { "input": { "properties": { "type": { "ignore_above": 1024, "type": "keyword" } } }, "@timestamp": { "ignore_malformed": false, "type": "date" }, "ecs": { "properties": { "version": { "ignore_above": 1024, "type": "keyword" } } }, "log": { "properties": { "file": { "properties": { "inode": { "ignore_above": 1024, "type": "keyword" }, "path": { "ignore_above": 1024, "type": "keyword" }, "device_id": { "ignore_above": 1024, "type": "keyword" }, "fingerprint": { "index": false, "type": "keyword" } } }, "offset": { "ignore_above": 1024, "type": "keyword" }, "level": { "ignore_above": 1024, "type": "keyword" } } }, "data_stream": { "properties": { "namespace": { "type": "constant_keyword" }, "type": { "type": "constant_keyword" }, "dataset": { "type": "constant_keyword" } } }, "event": { "properties": { "original": { "index": false, "type": "keyword", "doc_values": false }, "module": { "type": "constant_keyword", "value": "filestream" }, "dataset": { "type": "constant_keyword" } } }, "message": { "type": "match_only_text" }, "tags": { "ignore_above": 1024, "type": "keyword" } } }Shortcut: https://localhost:5601/app/management/data/index_management/component_templates/logs-filestream.generic%40package (you still have to click on 'Mappings').
4. Ensure there are no ECS fields defined
Before this PR the mappings were:
mappings before the PR
{ "dynamic_templates": [ { "_embedded_ecs-ecs_timestamp": { "path_match": "@timestamp", "mapping": { "ignore_malformed": false, "type": "date" } } }, { "_embedded_ecs-data_stream_to_constant": { "path_match": "data_stream.*", "mapping": { "type": "constant_keyword" } } }, { "_embedded_ecs-resolved_ip_to_ip": { "mapping": { "type": "ip" }, "match": "resolved_ip" } }, { "_embedded_ecs-forwarded_ip_to_ip": { "mapping": { "type": "ip" }, "match_mapping_type": "string", "match": "forwarded_ip" } }, { "_embedded_ecs-ip_to_ip": { "mapping": { "type": "ip" }, "match_mapping_type": "string", "match": "ip" } }, { "_embedded_ecs-x509_public_key_exponent_non_indexed_long": { "path_match": "*.x509.public_key_exponent", "mapping": { "index": false, "type": "long", "doc_values": false } } }, { "_embedded_ecs-port_to_long": { "mapping": { "type": "long" }, "match": "port" } }, { "_embedded_ecs-thread_id_to_long": { "path_match": "*.thread.id", "mapping": { "type": "long" } } }, { "_embedded_ecs-status_code_to_long": { "mapping": { "type": "long" }, "match": "status_code" } }, { "_embedded_ecs-line_to_long": { "path_match": "*.file.line", "mapping": { "type": "long" } } }, { "_embedded_ecs-priority_to_long": { "path_match": "log.syslog.priority", "mapping": { "type": "long" } } }, { "_embedded_ecs-code_to_long": { "path_match": "*.facility.code", "mapping": { "type": "long" } } }, { "_embedded_ecs-bytes_to_long": { "mapping": { "type": "long" }, "path_unmatch": "*.data.bytes", "match": "bytes" } }, { "_embedded_ecs-packets_to_long": { "mapping": { "type": "long" }, "match": "packets" } }, { "_embedded_ecs-public_key_exponent_to_long": { "mapping": { "type": "long" }, "match": "public_key_exponent" } }, { "_embedded_ecs-severity_to_long": { "path_match": "event.severity", "mapping": { "type": "long" } } }, { "_embedded_ecs-duration_to_long": { "path_match": "event.duration", "mapping": { "type": "long" } } }, { "_embedded_ecs-pid_to_long": { "mapping": { "type": "long" }, "match": "pid" } }, { "_embedded_ecs-uptime_to_long": { "mapping": { "type": "long" }, "match": "uptime" } }, { "_embedded_ecs-sequence_to_long": { "mapping": { "type": "long" }, "match": "sequence" } }, { "_embedded_ecs-entropy_to_long": { "mapping": { "type": "long" }, "match": "*entropy" } }, { "_embedded_ecs-size_to_long": { "mapping": { "type": "long" }, "match": "*size" } }, { "_embedded_ecs-entrypoint_to_long": { "mapping": { "type": "long" }, "match": "entrypoint" } }, { "_embedded_ecs-ttl_to_long": { "mapping": { "type": "long" }, "match": "ttl" } }, { "_embedded_ecs-major_to_long": { "mapping": { "type": "long" }, "match": "major" } }, { "_embedded_ecs-minor_to_long": { "mapping": { "type": "long" }, "match": "minor" } }, { "_embedded_ecs-as_number_to_long": { "path_match": "*.as.number", "mapping": { "type": "long" } } }, { "_embedded_ecs-pgid_to_long": { "mapping": { "type": "long" }, "match": "pgid" } }, { "_embedded_ecs-exit_code_to_long": { "mapping": { "type": "long" }, "match": "exit_code" } }, { "_embedded_ecs-chi_to_long": { "mapping": { "type": "long" }, "match": "chi2" } }, { "_embedded_ecs-args_count_to_long": { "mapping": { "type": "long" }, "match": "args_count" } }, { "_embedded_ecs-virtual_address_to_long": { "mapping": { "type": "long" }, "match": "virtual_address" } }, { "_embedded_ecs-io_text_to_wildcard": { "path_match": "*.io.text", "mapping": { "type": "wildcard" } } }, { "_embedded_ecs-strings_to_wildcard": { "path_match": "registry.data.strings", "mapping": { "type": "wildcard" } } }, { "_embedded_ecs-path_to_wildcard": { "path_match": "*url.path", "mapping": { "type": "wildcard" } } }, { "_embedded_ecs-message_id_to_wildcard": { "mapping": { "type": "wildcard" }, "match": "message_id" } }, { "_embedded_ecs-command_line_to_multifield": { "mapping": { "fields": { "text": { "type": "match_only_text" } }, "type": "wildcard" }, "match": "command_line" } }, { "_embedded_ecs-error_stack_trace_to_multifield": { "mapping": { "fields": { "text": { "type": "match_only_text" } }, "type": "wildcard" }, "match": "stack_trace" } }, { "_embedded_ecs-http_content_to_multifield": { "path_match": "*.body.content", "mapping": { "fields": { "text": { "type": "match_only_text" } }, "type": "wildcard" } } }, { "_embedded_ecs-url_full_to_multifield": { "path_match": "*url.full", "mapping": { "fields": { "text": { "type": "match_only_text" } }, "type": "wildcard" } } }, { "_embedded_ecs-url_original_to_multifield": { "path_match": "*url.original", "mapping": { "fields": { "text": { "type": "match_only_text" } }, "type": "wildcard" } } }, { "_embedded_ecs-user_agent_original_to_multifield": { "path_match": "user_agent.original", "mapping": { "fields": { "text": { "type": "match_only_text" } }, "type": "wildcard" } } }, { "_embedded_ecs-error_message_to_match_only": { "path_match": "error.message", "mapping": { "type": "match_only_text" } } }, { "_embedded_ecs-message_match_only_text": { "path_match": "message", "mapping": { "type": "match_only_text" } } }, { "_embedded_ecs-event_original_non_indexed_keyword": { "path_match": "event.original", "mapping": { "index": false, "type": "keyword", "doc_values": false } } }, { "_embedded_ecs-agent_name_to_keyword": { "path_match": "agent.name", "mapping": { "type": "keyword" } } }, { "_embedded_ecs-service_name_to_keyword": { "path_match": "*.service.name", "mapping": { "type": "keyword" } } }, { "_embedded_ecs-sections_name_to_keyword": { "path_match": "*.sections.name", "mapping": { "type": "keyword" } } }, { "_embedded_ecs-resource_name_to_keyword": { "path_match": "*.resource.name", "mapping": { "type": "keyword" } } }, { "_embedded_ecs-observer_name_to_keyword": { "path_match": "observer.name", "mapping": { "type": "keyword" } } }, { "_embedded_ecs-question_name_to_keyword": { "path_match": "*.question.name", "mapping": { "type": "keyword" } } }, { "_embedded_ecs-group_name_to_keyword": { "path_match": "*.group.name", "mapping": { "type": "keyword" } } }, { "_embedded_ecs-geo_name_to_keyword": { "path_match": "*.geo.name", "mapping": { "type": "keyword" } } }, { "_embedded_ecs-host_name_to_keyword": { "path_match": "host.name", "mapping": { "type": "keyword" } } }, { "_embedded_ecs-severity_name_to_keyword": { "path_match": "*.severity.name", "mapping": { "type": "keyword" } } }, { "_embedded_ecs-title_to_multifield": { "mapping": { "fields": { "text": { "type": "match_only_text" } }, "type": "keyword" }, "match": "title" } }, { "_embedded_ecs-executable_to_multifield": { "mapping": { "fields": { "text": { "type": "match_only_text" } }, "type": "keyword" }, "match": "executable" } }, { "_embedded_ecs-file_path_to_multifield": { "path_match": "*.file.path", "mapping": { "fields": { "text": { "type": "match_only_text" } }, "type": "keyword" } } }, { "_embedded_ecs-file_target_path_to_multifield": { "path_match": "*.file.target_path", "mapping": { "fields": { "text": { "type": "match_only_text" } }, "type": "keyword" } } }, { "_embedded_ecs-name_to_multifield": { "mapping": { "fields": { "text": { "type": "match_only_text" } }, "type": "keyword" }, "match": "name" } }, { "_embedded_ecs-full_name_to_multifield": { "mapping": { "fields": { "text": { "type": "match_only_text" } }, "type": "keyword" }, "match": "full_name" } }, { "_embedded_ecs-os_full_to_multifield": { "path_match": "*.os.full", "mapping": { "fields": { "text": { "type": "match_only_text" } }, "type": "keyword" } } }, { "_embedded_ecs-working_directory_to_multifield": { "mapping": { "fields": { "text": { "type": "match_only_text" } }, "type": "keyword" }, "match": "working_directory" } }, { "_embedded_ecs-timestamp_to_date": { "mapping": { "type": "date" }, "match": "timestamp" } }, { "_embedded_ecs-delivery_timestamp_to_date": { "mapping": { "type": "date" }, "match": "delivery_timestamp" } }, { "_embedded_ecs-not_after_to_date": { "mapping": { "type": "date" }, "match": "not_after" } }, { "_embedded_ecs-not_before_to_date": { "mapping": { "type": "date" }, "match": "not_before" } }, { "_embedded_ecs-accessed_to_date": { "mapping": { "type": "date" }, "match": "accessed" } }, { "_embedded_ecs-origination_timestamp_to_date": { "mapping": { "type": "date" }, "match": "origination_timestamp" } }, { "_embedded_ecs-created_to_date": { "mapping": { "type": "date" }, "match": "created" } }, { "_embedded_ecs-installed_to_date": { "mapping": { "type": "date" }, "match": "installed" } }, { "_embedded_ecs-creation_date_to_date": { "mapping": { "type": "date" }, "match": "creation_date" } }, { "_embedded_ecs-ctime_to_date": { "mapping": { "type": "date" }, "match": "ctime" } }, { "_embedded_ecs-mtime_to_date": { "mapping": { "type": "date" }, "match": "mtime" } }, { "_embedded_ecs-ingested_to_date": { "mapping": { "type": "date" }, "match": "ingested" } }, { "_embedded_ecs-start_to_date": { "mapping": { "type": "date" }, "match": "start" } }, { "_embedded_ecs-end_to_date": { "mapping": { "type": "date" }, "match": "end" } }, { "_embedded_ecs-score_base_to_float": { "path_match": "*.score.base", "mapping": { "type": "float" } } }, { "_embedded_ecs-score_temporal_to_float": { "path_match": "*.score.temporal", "mapping": { "type": "float" } } }, { "_embedded_ecs-score_to_float": { "mapping": { "type": "float" }, "match": "*_score" } }, { "_embedded_ecs-score_norm_to_float": { "mapping": { "type": "float" }, "match": "*_score_norm" } }, { "_embedded_ecs-usage_to_float": { "mapping": { "scaling_factor": 1000, "type": "scaled_float" }, "match": "usage" } }, { "_embedded_ecs-location_to_geo_point": { "mapping": { "type": "geo_point" }, "match": "location" } }, { "_embedded_ecs-same_as_process_to_boolean": { "mapping": { "type": "boolean" }, "match": "same_as_process" } }, { "_embedded_ecs-established_to_boolean": { "mapping": { "type": "boolean" }, "match": "established" } }, { "_embedded_ecs-resumed_to_boolean": { "mapping": { "type": "boolean" }, "match": "resumed" } }, { "_embedded_ecs-max_bytes_per_process_exceeded_to_boolean": { "mapping": { "type": "boolean" }, "match": "max_bytes_per_process_exceeded" } }, { "_embedded_ecs-interactive_to_boolean": { "mapping": { "type": "boolean" }, "match": "interactive" } }, { "_embedded_ecs-exists_to_boolean": { "mapping": { "type": "boolean" }, "match": "exists" } }, { "_embedded_ecs-trusted_to_boolean": { "mapping": { "type": "boolean" }, "match": "trusted" } }, { "_embedded_ecs-valid_to_boolean": { "mapping": { "type": "boolean" }, "match": "valid" } }, { "_embedded_ecs-go_stripped_to_boolean": { "mapping": { "type": "boolean" }, "match": "go_stripped" } }, { "_embedded_ecs-coldstart_to_boolean": { "mapping": { "type": "boolean" }, "match": "coldstart" } }, { "_embedded_ecs-exports_to_flattened": { "mapping": { "type": "flattened" }, "match": "exports" } }, { "_embedded_ecs-structured_data_to_flattened": { "mapping": { "type": "flattened" }, "match": "structured_data" } }, { "_embedded_ecs-imports_to_flattened": { "mapping": { "type": "flattened" }, "match": "*imports" } }, { "_embedded_ecs-attachments_to_nested": { "mapping": { "type": "nested" }, "match": "attachments" } }, { "_embedded_ecs-segments_to_nested": { "mapping": { "type": "nested" }, "match": "segments" } }, { "_embedded_ecs-elf_sections_to_nested": { "path_match": "*.elf.sections", "mapping": { "type": "nested" } } }, { "_embedded_ecs-pe_sections_to_nested": { "path_match": "*.pe.sections", "mapping": { "type": "nested" } } }, { "_embedded_ecs-macho_sections_to_nested": { "path_match": "*.macho.sections", "mapping": { "type": "nested" } } } ], "properties": { "input": { "properties": { "type": { "ignore_above": 1024, "type": "keyword" } } }, "@timestamp": { "ignore_malformed": false, "type": "date" }, "ecs": { "properties": { "version": { "ignore_above": 1024, "type": "keyword" } } }, "log": { "properties": { "file": { "properties": { "inode": { "ignore_above": 1024, "type": "keyword" }, "path": { "ignore_above": 1024, "type": "keyword" }, "device_id": { "ignore_above": 1024, "type": "keyword" }, "fingerprint": { "index": false, "type": "keyword" } } }, "offset": { "ignore_above": 1024, "type": "keyword" }, "level": { "ignore_above": 1024, "type": "keyword" } } }, "data_stream": { "properties": { "namespace": { "type": "constant_keyword" }, "type": { "type": "constant_keyword" }, "dataset": { "type": "constant_keyword" } } }, "event": { "properties": { "original": { "index": false, "type": "keyword", "doc_values": false }, "module": { "type": "constant_keyword", "value": "filestream" }, "dataset": { "type": "constant_keyword" } } }, "message": { "type": "match_only_text" }, "tags": { "ignore_above": 1024, "type": "keyword" } } }Related issues
## Screenshots