Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Tenable IO] Add scanner dataset to experimental Tenable IO Integration #6113

Merged
merged 17 commits into from May 12, 2023

Conversation

MakoWish
Copy link
Contributor

@MakoWish MakoWish commented May 6, 2023

Type of Change

  • Enhancement

What does this PR do?

This PR adds scanner and scan datasets to the Tenable.io Integration

List Scanners API Documentation
List Scans API Documentation

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.

@MakoWish MakoWish requested a review from a team as a code owner May 6, 2023 02:16
@elasticmachine
Copy link

elasticmachine commented May 6, 2023

💚 Build Succeeded

the below badges are clickable and redirect to their specific view in the CI or DOCS
Pipeline View Test View Changes Artifacts preview preview

Expand to view the summary

Build stats

  • Start Time: 2023-05-12T01:47:25.046+0000

  • Duration: 16 min 57 sec

Test stats 🧪

Test Results
Failed 0
Passed 30
Skipped 0
Total 30

🤖 GitHub comments

Expand to view the GitHub comments

To re-run your PR in the CI, just comment with:

  • /test : Re-trigger the build.

Copy link
Contributor

@efd6 efd6 left a comment

Choose a reason for hiding this comment

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

Can you provide a link to the API docs for the data set in the PR description?

@efd6
Copy link
Contributor

efd6 commented May 7, 2023

/test

@elasticmachine
Copy link

elasticmachine commented May 7, 2023

🌐 Coverage report

Name Metrics % (covered/total) Diff
Packages 100.0% (5/5) 💚
Files 100.0% (5/5) 💚 6.25
Classes 100.0% (5/5) 💚 6.25
Methods 96.774% (60/62) 👍 13.729
Lines 91.697% (2286/2493) 👍 5.771
Conditionals 100.0% (0/0) 💚

MakoWish and others added 5 commits May 8, 2023 08:06
@MakoWish
Copy link
Contributor Author

MakoWish commented May 8, 2023

Going to add a dataset for scan to the same branch, so please continue to make any suggestions, and I will be sure to apply them to the scan dataset as well.

@MakoWish
Copy link
Contributor Author

MakoWish commented May 8, 2023

Aside from the above question, should be good. Let me know what you think on that one.

Eric

@@ -18,6 +18,8 @@ The Tenable.io integration collects logs for three types of events: Asset, Plugi

**Scanner** is used to retrieve the current state of scanners, including licensing and activity. See more details in the API documentation [here](https://developer.tenable.com/reference/scanners-list).

**Scan** is used to retrieve details about existing scans, including scan statuses, assigned targets, and more. See more details in the API documentation [here](https://developer.tenable.com/reference/scans-list).
Copy link
Contributor

Choose a reason for hiding this comment

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

Scans instead of Scan?

Comment on lines +90 to +98
### scan

This is the `scan` dataset.

#### Example

{{event "scan"}}

{{fields "scan"}}
Copy link
Contributor

Choose a reason for hiding this comment

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

Same here.

@@ -1,4 +1,9 @@
# newer versions go on top
- version: "0.5.0"
changes:
- description: Added dataset for scanner and scan logs.
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: Added dataset for scanner and scan logs.
- description: Added dataset for scanner and scans logs.

Copy link
Contributor

Choose a reason for hiding this comment

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

Rename to match scans.

@efd6
Copy link
Contributor

efd6 commented May 8, 2023

/test

@MakoWish
Copy link
Contributor Author

MakoWish commented May 9, 2023

I also had a question on the three existing datasets. Each of them are using the fingerprint processor in the Ingest Pipeline, but as far as I am aware, Data Streams cannot update existing documents; only create new documents. Can you think of a reason for using the fingerprint processor on those datasets?

@MakoWish
Copy link
Contributor Author

@efd6,

If you think this will get merged soon, I will hold off for now to prevent conflicts with the changelog and manifest, but I just opened #6147 for the fingerprint issue. The way it currently sits, any updates to existing objects in Tenable will not be reflected in Elastic, because the updated record will fail to ingest. This is pretty much creating static/non-updatable content. New assets, plugins, or vulnerabilities will be ingested, but changes to existing objects will never be reflected in Elastic.

@efd6
Copy link
Contributor

efd6 commented May 11, 2023

I'm OK with the naming you have now given what already exists. You are right to open an issue for fongerprinting, it needs to have some thought and be handled separately from this.

@efd6
Copy link
Contributor

efd6 commented May 11, 2023

There looks to be an issue with the dashboards. Can you investigate or show screenshots with the relevant panels showing data and no errors?

Screenshot 2023-05-11 at 10 37 45 Screenshot 2023-05-11 at 10 41 34

@MakoWish
Copy link
Contributor Author

MakoWish commented May 11, 2023

Hi @efd6,

Sure thing! Here are some screenshots (hiding details from our production Tenable):

[Logs Tenable IO] Scan

Logs Tenable IO  Scan

[Logs Tenable IO] Scanner

Logs Tenable IO  Scanner

@efd6
Copy link
Contributor

efd6 commented May 12, 2023

/test

Copy link
Contributor

@efd6 efd6 left a comment

Choose a reason for hiding this comment

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

Thanks

@efd6 efd6 merged commit ca90abb into elastic:main May 12, 2023
3 checks passed
@elasticmachine
Copy link

Package tenable_io - 0.6.0 containing this change is available at https://epr.elastic.co/search?package=tenable_io

@MakoWish MakoWish deleted the tenable_io_add_datasets branch May 12, 2023 14:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants