-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
[Fleet] Give output API key the correct privileges #60094
[Fleet] Give output API key the correct privileges #60094
Conversation
Pinging @elastic/ingest-management (Feature:EPM) |
💚 Build SucceededTo update your PR or re-run it, just comment with: |
@nchaulet I changed this label to |
@@ -22,8 +22,8 @@ export async function generateOutputApiKey( | |||
cluster: ['monitor'], | |||
index: [ | |||
{ | |||
names: ['logs-*', 'metrics-*'], | |||
privileges: ['write'], | |||
names: ['logs-*', 'metrics-*', 'events-*', 'metricbeat*'], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@nchaulet What is metricbeat*
doing in the list here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I had to add it while demoing the agent last friday, the agent was sending some data to metricbeat* I am going to check which index in details
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@michalpristas @ph ? ^
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nothing should be sent to metricbeat*, i will check, maybe some stale metricbeat binary i gave you
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
defaultIndex for elasticsearch output is in form beat-version-yyyy-mm-dd
if no index is specified. i need to figure out why metricbeat sends data to this index but filebeat is not, configuration of output is the same for both
Description
The output API key, that is used by elastic agents to send data to ES need the permission to create indices.
Add the
created_index
permission to createlogs-*
,metrics-*
, ...