Skip to content

[checkpoint] Fix checkpoint.source_object mapping#2951

Merged
andrewkroh merged 9 commits intoelastic:mainfrom
andrewkroh:checkpoint/bug/source_object-mapping
Mar 31, 2022
Merged

[checkpoint] Fix checkpoint.source_object mapping#2951
andrewkroh merged 9 commits intoelastic:mainfrom
andrewkroh:checkpoint/bug/source_object-mapping

Conversation

@andrewkroh
Copy link
Member

@andrewkroh andrewkroh commented Mar 31, 2022

What does this PR do?

According to https://supportcenter.checkpoint.com/supportcenter/portal?eventSubmit_doGoviewsolutiondetails=&solutionid=sk144192, Check Point module field checkpoint.source_object should be mapped as a string type instead of integer.

Syncs change from: elastic/beats@a5e6e5b

Relates: elastic/beats#25124

Other changes:

  • use ECS log.file.path
  • add event.original mapping
  • sort fields.yml

This was observed while preparing elastic/beats#31076.

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.

Related issues

@andrewkroh andrewkroh added bug Something isn't working, use only for issues Integration:checkpoint Check Point labels Mar 31, 2022
@andrewkroh andrewkroh requested a review from a team as a code owner March 31, 2022 01:32
@elasticmachine
Copy link

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

@elasticmachine
Copy link

elasticmachine commented Mar 31, 2022

💚 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: 2022-03-31T14:23:15.182+0000

  • Duration: 15 min 30 sec

Test stats 🧪

Test Results
Failed 0
Passed 8
Skipped 0
Total 8

🤖 GitHub comments

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

  • /test : Re-trigger the build.

@efd6
Copy link
Contributor

efd6 commented Mar 31, 2022

Out of curiosity, what did you use to do the sorting?

@andrewkroh
Copy link
Member Author

andrewkroh commented Mar 31, 2022

I had sorted the fields.yml so I could compare it to the one in beats using yq -i -P 'sort_keys(..)' fields.yml (ref https://mikefarah.gitbook.io/yq/operators/sort-keys). But that's not what I wanted to commit because the order isn't all that friendly to humans. What I wanted to commit was sorting the checkpoint.* fields by their name (e.g. yq '.[0].fields | sort_by(.name)'). That's what is there now.

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

Labels

bug Something isn't working, use only for issues Integration:checkpoint Check Point

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants