Skip to content

Conversation

@ShourieG
Copy link
Contributor

Type of change

  • Bug

Proposed commit message

Existing sorting logic in the transform was by event.ingested field.
This however created issues with bulk ingestion where the order of ingestion 
is not gauaranteed by elasticsearch, which can sometimes lead to recent events 
being not updated in the destination index of the transform. Sorting by '@timestamp'
helps mitigate this issue.

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

Author's Checklist

  • [ ]

How to test this PR locally

Related issues

Screenshots

@ShourieG ShourieG self-assigned this Oct 30, 2025
@ShourieG ShourieG requested a review from a team as a code owner October 30, 2025 10:07
@ShourieG ShourieG added Integration:ti_misp MISP bugfix Pull request that fixes a bug issue Team:Security-Service Integrations Security Service Integrations team [elastic/security-service-integrations] labels Oct 30, 2025
@elasticmachine
Copy link

Pinging @elastic/security-service-integrations (Team:Security-Service Integrations)

@ShourieG ShourieG requested a review from kcreddy October 30, 2025 10:09
- misp.attribute.uuid
- misp.attribute.Event.uuid
sort: "event.ingested"
sort: "@timestamp"
Copy link
Contributor

Choose a reason for hiding this comment

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

Also needs to update fleet_transform_version.

# newer versions go on top
- version: "1.38.1"
changes:
- description: Updated transform to sort by '@timestamp' to ensure the latest documents are selected for each unique key.
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
- description: Updated transform to sort by '@timestamp' to ensure the latest documents are selected for each unique key.
- description: Updated transform to sort by `@timestamp` to ensure the latest documents are selected for each unique key.

@ShourieG
Copy link
Contributor Author

@kcreddy, addressed all suggestions

@elastic-vault-github-plugin-prod

🚀 Benchmarks report

Package ti_misp 👍(0) 💚(0) 💔(2)

Expand to view
Data stream Previous EPS New EPS Diff (%) Result
threat 1964.64 1633.99 -330.65 (-16.83%) 💔
threat_attributes 3311.26 1818.18 -1493.08 (-45.09%) 💔

To see the full report comment with /test benchmark fullreport

@elasticmachine
Copy link

💚 Build Succeeded

History

cc @ShourieG

@ShourieG ShourieG merged commit 601fa61 into elastic:main Oct 30, 2025
7 checks passed
@ShourieG ShourieG deleted the bugfix/ti_misp_6571 branch October 30, 2025 13:30
@elastic-vault-github-plugin-prod

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

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 Integration:ti_misp MISP Team:Security-Service Integrations Security Service Integrations team [elastic/security-service-integrations]

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants