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

Collect Endpoint Security logs on elastic-agent diagnostics collect command #242

Merged
merged 12 commits into from Apr 20, 2022

Conversation

AndersonQ
Copy link
Member

@AndersonQ AndersonQ commented Mar 23, 2022

Fixes #105

@AndersonQ AndersonQ self-assigned this Mar 23, 2022
@AndersonQ AndersonQ added Team:Elastic-Agent-Control-Plane Label for the Agent Control Plane team v8.2.0 backport-skip ci:package Enable the package in the CI ci:end-to-end Enable the e2e-testing labels Mar 23, 2022
@elasticmachine
Copy link
Collaborator

elasticmachine commented Mar 23, 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-04-14T10:36:19.477+0000

  • Duration: 35 min 48 sec

🤖 GitHub comments

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

  • /test : Re-trigger the build.

  • /package : Generate the packages.

  • run integration tests : Run the Elastic Agent Integration tests.

  • run end-to-end tests : Generate the packages and run the E2E Tests.

  • run elasticsearch-ci/docs : Re-trigger the docs validation. (use unformatted text in the comment!)

@AndersonQ
Copy link
Member Author

run end-to-end tests

1 similar comment
@AndersonQ
Copy link
Member Author

run end-to-end tests

@jlind23 jlind23 added v8.3.0 and removed v8.2.0 labels Apr 12, 2022
@jlind23 jlind23 requested review from a team, blakerouse and michel-laterman and removed request for a team April 12, 2022 09:14
@AndersonQ
Copy link
Member Author

run end-to-end tests

@ph
Copy link
Contributor

ph commented Apr 12, 2022

@AndersonQ Looking at the fleet-ci/pr-merge this look like an issue with the golint module. Can you take a look?

@AndersonQ
Copy link
Member Author

/test

if err != nil {
return closeHandlers(fmt.Errorf("unable to create log file in archive: %w", err), lf)

name := strings.TrimPrefix(path, logPath)
Copy link
Contributor

Choose a reason for hiding this comment

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

are endpoint logs in a flat dir? or is there any nesting in subdirs?

Copy link
Member Author

Choose a reason for hiding this comment

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

as far as I know, on a flat dir. Why? if there are nested dir it wouldn't work?

Copy link
Contributor

Choose a reason for hiding this comment

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

the names will get mangled on Windows if it's nested. Using filepath.ToSlash(strings.TrimPrefix(path, logPath)) will ensure that windows separators are properly converted

@AndersonQ
Copy link
Member Author

run end-to-end tests

Copy link
Contributor

@michel-laterman michel-laterman left a comment

Choose a reason for hiding this comment

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

lgtm; just fix the linting issues

@AndersonQ AndersonQ requested a review from a team as a code owner April 14, 2022 10:36
Copy link
Contributor

@blakerouse blakerouse left a comment

Choose a reason for hiding this comment

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

Looks good!

@AndersonQ
Copy link
Member Author

The failing test is unrelated to the PR and it's failing for others as well. An issue was created to investigate it

@AndersonQ AndersonQ merged commit f85f34a into main Apr 20, 2022
@AndersonQ AndersonQ deleted the 105-collect-endpoit-logs branch April 20, 2022 15:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport-skip ci:end-to-end Enable the e2e-testing ci:package Enable the package in the CI Team:Elastic-Agent-Control-Plane Label for the Agent Control Plane team v8.3.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Integrate Elastic Endpoint's log output and available stats into Elastic Agent 'diagnostic' collection
6 participants