spire icon indicating copy to clipboard operation
spire copied to clipboard

Support retuning of log level on spire-agent

Open edwbuck opened this issue 1 year ago • 6 comments

The previous issue covered server and agent tuning, and was rebased to server-only and closed successfully.

This issue covers bringing the agent up to the same log level tuning parity as the server.

Post-launch, it would be beneficial to adjust the SPIRE agent log level. The agent should read the initial log level from the config file path / command line options but then accept a cli command to adjust the SPIRE Agent instance previously launched with spire-agent run ...

From prior discussions:

  • The Agent instance will accept commands issued from the agent CLI on the agent "admin" UDS.
  • This Agent setup will use the same CLI commands as the current spire-server implementation.

Work for the supporting API is already in place in spire-api-sdk, the Agent simply needs to implement and service the API.

edwbuck avatar Mar 15 '24 15:03 edwbuck

Some of the text in this description are referencing the server? This is for the agent, correct?

azdagron avatar Mar 28 '24 19:03 azdagron

Yes, this is for the agent. I'll update the items that didn't get edited as I copied from the original effort, which did reference the server.

edwbuck avatar Mar 28 '24 19:03 edwbuck

Great, thanks.

azdagron avatar Mar 28 '24 21:03 azdagron

+1 to this :) Would be great to be able to adjust the spire-agent log level on the fly

faali1 avatar May 15 '24 16:05 faali1

+1 to this :) Would be great to be able to adjust the spire-agent log level on the fly

+1 same wish from my side.

szvincze avatar Feb 25 '25 13:02 szvincze

+1 it would be great

alitta-german avatar Feb 25 '25 13:02 alitta-german