Skip to content

[Cisco ftd] Change type for filesize from integer to long#20083

Open
robester0403 wants to merge 2 commits into
elastic:mainfrom
robester0403:cisco-ftd-filesize-integer-to-long
Open

[Cisco ftd] Change type for filesize from integer to long#20083
robester0403 wants to merge 2 commits into
elastic:mainfrom
robester0403:cisco-ftd-filesize-integer-to-long

Conversation

@robester0403

Copy link
Copy Markdown
Contributor

Proposed commit message

Convert FileSize to long instead of integer so large file sizes above the 32-bit integer limit no longer fail

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

Related issues

Resolves: https://github.com/elastic/sdh-beats/issues/7358

Screenshots

image

@robester0403 robester0403 self-assigned this Jul 10, 2026
@robester0403 robester0403 requested a review from a team as a code owner July 10, 2026 12:45
@robester0403 robester0403 added documentation Improvements or additions to documentation. Applied to PRs that modify *.md files. Integration:cisco_ftd Cisco FTD bugfix Pull request that fixes a bug issue Team:Integration-Experience Security Integrations Integration Experience [elastic/integration-experience] labels Jul 10, 2026
@infra-vault-gh-plugin-prod

Copy link
Copy Markdown

Pinging @elastic/integration-experience (Team:Integration-Experience)

@github-actions

Copy link
Copy Markdown
Contributor

✅ Elastic Docs Style Checker (Vale)

No issues found on modified lines!


The Vale linter checks documentation changes against the Elastic Docs style guide. To use Vale locally or report issues, refer to Elastic style guide for Vale.

Comment thread packages/cisco_ftd/changelog.yml
Comment thread packages/cisco_ftd/changelog.yml
@elastic-vault-github-plugin-prod

Copy link
Copy Markdown
Contributor

✅ All changelog entries have the correct PR link.

@elastic-vault-github-plugin-prod

Copy link
Copy Markdown
Contributor

🚀 Benchmarks report

To see the full report comment with /test benchmark fullreport

@infra-vault-gh-plugin-prod

Copy link
Copy Markdown

💚 Build Succeeded

cc @robester0403

@vera-review-bot

Copy link
Copy Markdown

No issues across the latest commits cf4e5a5.

Review summary

Issues found across earlier commits c5f9f64 — 1 medium, 1 low
  • 🔵 Changelog entry links to placeholder PR #​00001 (link) (Unresolved)
  • 🟡 Changelog links a different PR number (link) (Unresolved)

A new commit triggers another review — at most once every 15 minutes. I skip the PR while it's approved or has merge conflicts.

🤖 AI-Generated Review | Vera Review Bot | 📚 Knowledge base: integration-skills

⚠️ Automated review — verify suggestions before applying.

type: keyword
- name: file_size
type: integer
type: long

@Niceplace Niceplace Jul 10, 2026

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Have we considered using scaled_float ? apparently it's more efficient: https://www.elastic.co/docs/reference/elasticsearch/mapping-reference/number#_which_type_should_i_use

I could not find proof that changing a type from integer to long is a breaking change, what I would consider is how this will impact querying legacy data though, if that is needed at all.

Example: If we query file size with float values as arguments, is it possible that we miss some entries that were originally stored as integers ?

@Niceplace Niceplace Jul 10, 2026

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Seems like there's precedent and it was not considered a breaking change: #15673 (comment)

The TL;DR is that cross-family field change would be a breaking change, but not if we stay within the same family.

The integration docs also confirm that in a way by not explicitely listing same-family changes as breaking.

@Niceplace Niceplace left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

One clarified concern re: same family field change, nothing to do here.

My question about using scaled_float still remains but I'll leave the decision of implementing it up to you, otherwise LGTM !

@mergify

mergify Bot commented Jul 10, 2026

Copy link
Copy Markdown
Contributor

Tick the box to add this pull request to the merge queue (same as @mergifyio queue).

  • Queue this pull request

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bugfix Pull request that fixes a bug issue documentation Improvements or additions to documentation. Applied to PRs that modify *.md files. Integration:cisco_ftd Cisco FTD Team:Integration-Experience Security Integrations Integration Experience [elastic/integration-experience]

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants