Skip to content

[cisco_secure_endpoint] Fix propagation of information from host.name - #2915

Merged
andrewkroh merged 18 commits into
elastic:mainfrom
LaZyDK:main
Apr 6, 2022
Merged

[cisco_secure_endpoint] Fix propagation of information from host.name#2915
andrewkroh merged 18 commits into
elastic:mainfrom
LaZyDK:main

Conversation

@LaZyDK

@LaZyDK LaZyDK commented Mar 30, 2022

Copy link
Copy Markdown
Contributor

What does this PR do?

Propagating information from the host.name field.
Also taking into account that Install Started events use the cisco.secure_endpoint.hostname field.
Adding process.command_line, process.args, process.args_count and process.executable from
cisco.secure_endpoint.command_line.arguments field.

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.
@LaZyDK
LaZyDK requested a review from a team as a code owner March 30, 2022 07:55
Referenced pull request
@elasticmachine

elasticmachine commented Mar 30, 2022

Copy link
Copy Markdown

💚 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-04-06T18:00:12.707+0000

  • Duration: 13 min 27 sec

Test stats 🧪

Test Results
Failed 0
Passed 12
Skipped 0
Total 12

🤖 GitHub comments

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

  • /test : Re-trigger the build.
@elasticmachine

Copy link
Copy Markdown

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

@andrewkroh

Copy link
Copy Markdown
Contributor

/test

Comment thread packages/cisco_secure_endpoint/changelog.yml Outdated
@andrewkroh andrewkroh changed the title Fix propagation of information from host.name Mar 30, 2022
@P1llus

P1llus commented Apr 4, 2022

Copy link
Copy Markdown
Member

/test

[git-generate]

cd packages/cisco_secure_endpoint
elastic-package build
elastic-package test pipeline -g

@andrewkroh andrewkroh left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

We need some test data to validate the new command_line parsing script processors.

I pushed some updates to make the pipeline valid, added descriptions, added two missing event.* fields, and generated the pipeline test data.

@andrewkroh

Copy link
Copy Markdown
Contributor

/test

LaZyDK and others added 3 commits April 6, 2022 16:03
Changed the script processor to fix a bug. The backing array is immutable to removeIf fails.

Unhandled Exception unsupported_operation_exception

remove

Stack:
[
  "java.base/java.util.Iterator.remove(Iterator.java:102)",
  "java.base/java.util.Collection.removeIf(Collection.java:577)",
  "arg -> (arg == \"\"));\n    ",
  "^---- HERE"
]
andrewkroh
andrewkroh previously approved these changes Apr 6, 2022
@andrewkroh
andrewkroh dismissed their stale review April 6, 2022 16:39

Added a question

LaZyDK and others added 2 commits April 6, 2022 19:47
[git-generate]

cd packages/cisco_secure_endpoint
elastic-package test pipeline -g
@andrewkroh
andrewkroh merged commit a8abe54 into elastic:main Apr 6, 2022
orestisfl pushed a commit to orestisfl/integrations that referenced this pull request May 15, 2026
Propagating information from the host.name field.

Also taking into account that Install Started events use the cisco.secure_endpoint.hostname field.

Adding process.command_line, process.args, process.args_count and process.executable from
cisco.secure_endpoint.command_line.arguments field.

Co-authored-by: Andrew Kroh <andrew.kroh@elastic.co>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

5 participants