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

[Filebeat] Add field definitions for known Netflow/IPFIX vendor fields #23773

Merged

Conversation

andrewkroh
Copy link
Member

@andrewkroh andrewkroh commented Jan 31, 2021

What does this PR do?

Several vendor specific fields are known to Filebeat (we built in the names/types of vendor field IDs into the input). Those fields were not included in the index template that we export. This updates the fields.yml file for the Filebeat netflow input to include those fields.

Why is it important?

By adding the field mapping it ensure that fields are mapped to the correct Elasticsearch data type (like ip).

Checklist

  • My code follows the style guidelines of this project
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • I have made corresponding change to the default configuration files
  • I have added tests that prove my fix is effective or that my feature works
  • I have added an entry in CHANGELOG.next.asciidoc or CHANGELOG-developer.next.asciidoc.

Related issues

@elasticmachine
Copy link
Collaborator

Pinging @elastic/security-external-integrations (Team:Security-External Integrations)

@botelastic botelastic bot added needs_team Indicates that the issue/PR needs a Team:* label and removed needs_team Indicates that the issue/PR needs a Team:* label labels Jan 31, 2021
@andrewkroh andrewkroh force-pushed the feature/fb/netflow-vendor-fields-yml branch from 51a8bd7 to 9939270 Compare January 31, 2021 15:56
@elasticmachine
Copy link
Collaborator

elasticmachine commented Jan 31, 2021

💚 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

Expand to view the summary

Build stats

  • Build Cause: Pull request #23773 updated

  • Start Time: 2021-02-12T20:41:08.223+0000

  • Duration: 48 min 17 sec

  • Commit: a4699b2

Test stats 🧪

Test Results
Failed 0
Passed 13009
Skipped 2033
Total 15042

Trends 🧪

Image of Build Times

Image of Tests

💚 Flaky test report

Tests succeeded.

Expand to view the summary

Test stats 🧪

Test Results
Failed 0
Passed 13009
Skipped 2033
Total 15042

@andrewkroh andrewkroh force-pushed the feature/fb/netflow-vendor-fields-yml branch from 9939270 to c145288 Compare February 1, 2021 12:45
@andrewkroh andrewkroh removed the needs_backport PR is waiting to be backported to other branches. label Feb 1, 2021
@@ -5,3 +5,6 @@
package netflow

//go:generate go run fields_gen.go -output _meta/fields.yml --column-name=2 --column-type=3 --header _meta/fields.header.yml decoder/fields/ipfix-information-elements.csv
//go:generate go run fields_gen.go -output _meta/fields.yml --append --column-name=3 --column-type=4 --header _meta/fields.header.yml decoder/fields/cert_pen6871.csv
Copy link
Member Author

Choose a reason for hiding this comment

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

Looks like this approach of appending won't work b/c we need to merge the fields together to avoid duplicates.

@andrewkroh andrewkroh removed the review label Feb 1, 2021
@andrewkroh andrewkroh force-pushed the feature/fb/netflow-vendor-fields-yml branch from 596e848 to a166af7 Compare February 12, 2021 20:25
Copy link
Contributor

@adriansr adriansr left a comment

Choose a reason for hiding this comment

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

LGTM

@andrewkroh andrewkroh merged commit b8ff649 into elastic:master Feb 16, 2021
andrewkroh added a commit to andrewkroh/integrations that referenced this pull request Feb 16, 2021
Updates the vendor fields as a result of elastic/beats#23773.
andrewkroh added a commit to andrewkroh/integrations that referenced this pull request Feb 16, 2021
Updates the vendor fields as a result of elastic/beats#23773.
v1v added a commit to v1v/beats that referenced this pull request Feb 17, 2021
…-arm

* upstream/master:
  [CI] install docker-compose with retry (elastic#24069)
  Add nodes to filebeat-kubernetes.yaml ClusterRole - fixes elastic#24051 (elastic#24052)
  updating manifest files for filebeat threatintel module (elastic#24074)
  Add Zeek Signatures (elastic#23772)
  Update Beats to ECS 1.8.0 (elastic#23465)
  Support running Docker logging plugin on ARM64 (elastic#24034)
  Fix ec2 metricset fields.yml and add integration test (elastic#23726)
  Only build targz and zip versions of Beats if PACKAGES is set in agent (elastic#24060)
  [Filebeat] Add field definitions for known Netflow/IPFIX vendor fields (elastic#23773)
  [Elastic Agent] Enroll with Fleet Server (elastic#23865)
  [Filebeat] Convert logstash logEvent.action objects to strings (elastic#23944)
  [Ingest Management] Fix reloading of log level for services (elastic#24055)
  Add Agent standalone k8s manifest (elastic#23679)
v1v added a commit to v1v/beats that referenced this pull request Feb 17, 2021
…dows-7

* upstream/master: (332 commits)
  Use ECS v1.8.0 (elastic#24086)
  Add support for postgresql csv logs (elastic#23334)
  [Heartbeat] Refactor config system (elastic#23467)
  [CI] install docker-compose with retry (elastic#24069)
  Add nodes to filebeat-kubernetes.yaml ClusterRole - fixes elastic#24051 (elastic#24052)
  updating manifest files for filebeat threatintel module (elastic#24074)
  Add Zeek Signatures (elastic#23772)
  Update Beats to ECS 1.8.0 (elastic#23465)
  Support running Docker logging plugin on ARM64 (elastic#24034)
  Fix ec2 metricset fields.yml and add integration test (elastic#23726)
  Only build targz and zip versions of Beats if PACKAGES is set in agent (elastic#24060)
  [Filebeat] Add field definitions for known Netflow/IPFIX vendor fields (elastic#23773)
  [Elastic Agent] Enroll with Fleet Server (elastic#23865)
  [Filebeat] Convert logstash logEvent.action objects to strings (elastic#23944)
  [Ingest Management] Fix reloading of log level for services (elastic#24055)
  Add Agent standalone k8s manifest (elastic#23679)
  [Metricbeat][Kubernetes] Extend state_node with more conditions (elastic#23905)
  [CI] googleStorageUploadExt step (elastic#24048)
  Check fields are documented for aws metricsets (elastic#23887)
  Update go-concert to 0.1.0 (elastic#23770)
  ...
andrewkroh added a commit to andrewkroh/integrations that referenced this pull request Feb 18, 2021
Updates the vendor fields as a result of elastic/beats#23773.
andrewkroh added a commit to elastic/integrations that referenced this pull request Mar 4, 2021
* Update fields for Netflow module

Updates the vendor fields as a result of elastic/beats#23773.

* Update changelog
eyalkraft pushed a commit to build-security/integrations that referenced this pull request Mar 30, 2022
* Update fields for Netflow module

Updates the vendor fields as a result of elastic/beats#23773.

* Update changelog
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Filebeat] Missing netflow field definitions for vendor fields
3 participants