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

[Cloud Security] [Bug] Setting the agentless policy inactivity_timeout to 1 hour so they don't show in the Fleet Agents list in Kibana #195808

Conversation

seanrathier
Copy link
Contributor

@seanrathier seanrathier commented Oct 10, 2024

Summary

We are filtering out of the Agents list in the Fleet UI for agentless agents that are offline more than 1 hour. We are doing this because the agentless agent might be restarted for various reasons such as updating the Elastic Agent version or updating the policy.

The agents are still online, however, the have a different ID, and the previous instance shows as offline.

image

closes https://github.com/elastic/security-team/issues/10453

Checklist

@seanrathier seanrathier added release_note:skip Skip the PR/issue when compiling release notes Team:Fleet Team label for Observability Data Collection Fleet team Team:Cloud Security Cloud Security team related backport:prev-minor Backport to (8.x) the previous minor version (i.e. one version back from main) ci:cloud-deploy Create or update a Cloud deployment 8.16 candidate labels Oct 10, 2024
@seanrathier seanrathier self-assigned this Oct 10, 2024
@seanrathier seanrathier requested review from a team as code owners October 10, 2024 17:14
@elasticmachine
Copy link
Contributor

Pinging @elastic/fleet (Team:Fleet)

@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-cloud-security-posture (Team:Cloud Security)

@seanrathier seanrathier changed the title [Cloud Security] [Bug]Setting the agentless policy inactivity_timeout to 1 hour so they don't show in the Fleet Agents list in Kibana [Cloud Security] [Bug] Setting the agentless policy inactivity_timeout to 1 hour so they don't show in the Fleet Agents list in Kibana Oct 10, 2024
@elasticmachine
Copy link
Contributor

elasticmachine commented Oct 11, 2024

💚 Build Succeeded

Metrics [docs]

Async chunks

Total size of all lazy-loaded chunks that will be downloaded as the user navigates the app

id before after diff
fleet 1.7MB 1.7MB +38.0B

History

cc @seanrathier

@seanrathier seanrathier merged commit 808c96b into elastic:main Oct 12, 2024
23 checks passed
@kibanamachine
Copy link
Contributor

Starting backport for target branches: 8.x

https://github.com/elastic/kibana/actions/runs/11307579312

kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Oct 12, 2024
…t to 1 hour so they don't show in the Fleet Agents list in Kibana (elastic#195808)

(cherry picked from commit 808c96b)
@kibanamachine
Copy link
Contributor

💚 All backports created successfully

Status Branch Result
8.x

Note: Successful backport PRs will be merged automatically after passing CI.

Questions ?

Please refer to the Backport tool documentation

kibanamachine added a commit that referenced this pull request Oct 12, 2024
…timeout to 1 hour so they don't show in the Fleet Agents list in Kibana (#195808) (#196018)

# Backport

This will backport the following commits from `main` to `8.x`:
- [[Cloud Security] [Bug] Setting the agentless policy
inactivity_timeout to 1 hour so they don't show in the Fleet Agents
list in Kibana (#195808)](#195808)

<!--- Backport version: 9.4.3 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)

<!--BACKPORT
[{"author":{"name":"seanrathier","email":"[email protected]"},"sourceCommit":{"committedDate":"2024-10-12T17:43:46Z","message":"[Cloud
Security] [Bug] Setting the agentless policy inactivity_timeout to 1
hour so they don't show in the Fleet Agents list in Kibana
(#195808)","sha":"808c96b749033810f70e23ee06ac0cba6219c4e7","branchLabelMapping":{"^v9.0.0$":"main","^v8.16.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","Team:Fleet","v9.0.0","Team:Cloud
Security","backport:prev-minor","ci:cloud-deploy","8.16
candidate"],"title":"[Cloud Security] [Bug] Setting the agentless policy
inactivity_timeout to 1 hour so they don't show in the Fleet Agents list
in
Kibana","number":195808,"url":"https://github.com/elastic/kibana/pull/195808","mergeCommit":{"message":"[Cloud
Security] [Bug] Setting the agentless policy inactivity_timeout to 1
hour so they don't show in the Fleet Agents list in Kibana
(#195808)","sha":"808c96b749033810f70e23ee06ac0cba6219c4e7"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/195808","number":195808,"mergeCommit":{"message":"[Cloud
Security] [Bug] Setting the agentless policy inactivity_timeout to 1
hour so they don't show in the Fleet Agents list in Kibana
(#195808)","sha":"808c96b749033810f70e23ee06ac0cba6219c4e7"}}]}]
BACKPORT-->

Co-authored-by: seanrathier <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
8.16 candidate backport:prev-minor Backport to (8.x) the previous minor version (i.e. one version back from main) ci:cloud-deploy Create or update a Cloud deployment release_note:skip Skip the PR/issue when compiling release notes Team:Cloud Security Cloud Security team related Team:Fleet Team label for Observability Data Collection Fleet team v8.16.0 v9.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants