Skip to content

Conversation

@kcreddy
Copy link
Contributor

@kcreddy kcreddy commented Jan 29, 2026

Proposed commit message

tenable_sc.vulnerability: Fix API sort order

The Tenable /analysis endpoint doesn't sort the data 
using any order. So remove the existing "sort_direction" and 
"sortField" options. Instead use the "lastSeen" inside 
"filters" using epoch timestamp[1] to move the cursor. An 
"Additional Look-back Time" option is also added to fetch 
late arriving data.

Other changes:
- Add "HTTP Client Timeout" option to input templates.
  This configuration helps avoid API timeouts.
- Update default interval to 4 hours in vulnerability 
  data streams to avoid frequent polls as recommended 
  by Tenable.

[1]: https://developer.tenable.com/docs/sc-integrations#data-exports

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

Updated system tests with pagination paths and assert.hit_count should pass.

--- Test results for package: tenable_sc - START ---
╭────────────┬───────────────┬───────────┬───────────┬────────┬───────────────╮
│ PACKAGE    │ DATA STREAM   │ TEST TYPE │ TEST NAME │ RESULT │  TIME ELAPSED │
├────────────┼───────────────┼───────────┼───────────┼────────┼───────────────┤
│ tenable_sc │ vulnerability │ system    │ default   │ PASS   │ 39.414923208s │
╰────────────┴───────────────┴───────────┴───────────┴────────┴───────────────╯
--- Test results for package: tenable_sc - END   ---
Done

Related issues

@kcreddy kcreddy marked this pull request as ready for review January 29, 2026 11:46
@kcreddy kcreddy requested a review from a team as a code owner January 29, 2026 11:46
@kcreddy kcreddy self-assigned this Jan 29, 2026
@kcreddy kcreddy added enhancement New feature or request Integration:tenable_sc Tenable Security Center bugfix Pull request that fixes a bug issue Team:Security-Service Integrations Security Service Integrations team [elastic/security-service-integrations] labels Jan 29, 2026
@elasticmachine
Copy link

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

@andrewkroh andrewkroh added the documentation Improvements or additions to documentation. Applied to PRs that modify *.md files. label Jan 29, 2026
@kcreddy kcreddy requested a review from ShourieG January 30, 2026 11:43
@elastic-vault-github-plugin-prod

🚀 Benchmarks report

To see the full report comment with /test benchmark fullreport

@elasticmachine
Copy link

💚 Build Succeeded

History

cc @kcreddy

Copy link
Contributor

@ShourieG ShourieG left a comment

Choose a reason for hiding this comment

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

LGTM

@kcreddy kcreddy merged commit a6223f4 into elastic:main Jan 30, 2026
12 checks passed
@elastic-vault-github-plugin-prod

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

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. enhancement New feature or request Integration:tenable_sc Tenable Security Center 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.

tenable_sc.vulnerability: API sort order

4 participants