Skip to content

Commit

Permalink
[Fleet] Tweak agent permissions (#104415)
Browse files Browse the repository at this point in the history
  • Loading branch information
Alejandro Fernández Gómez authored Jul 6, 2021
1 parent 1ae7afd commit d20de12
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions x-pack/plugins/fleet/server/services/agent_policy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -773,10 +773,10 @@ class AgentPolicyService {
) {
const names: string[] = [];
if (fullAgentPolicy.agent.monitoring.logs) {
names.push(`logs-elastic_agent.*-${monitoringNamespace}`);
names.push(`logs-elastic_agent*-${monitoringNamespace}`);
}
if (fullAgentPolicy.agent.monitoring.metrics) {
names.push(`metrics-elastic_agent.*-${monitoringNamespace}`);
names.push(`metrics-elastic_agent*-${monitoringNamespace}`);
}

permissions._elastic_agent_checks.indices = [
Expand Down

0 comments on commit d20de12

Please sign in to comment.