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

Add new actuator endpoint for detailed logs: /actuator/logfiles/** #292

Merged
merged 5 commits into from
Jan 24, 2024

Conversation

dabico
Copy link
Member

@dabico dabico commented Jan 24, 2024

This endpoint extension works as follows:

  • /actuator/logfile/ displays the default log file which delegates to the existing endpoint, displaying the general log file (Add new file log appender to production #291)
  • /actuator/logfile/**/{directory} displays the current open log file for the specified directory.
  • /actuator/logfile/**/{directory}/{file} displays the specified file within the directory.

Introduces a new `/actuator/logfile/**` endpoint that allows users to
browse arbitrary log files. Due to security concerns, the scope is
restricted to the `/logs` directory by default. The current
implementation only allows looking at uncompressed files, while the
compressed log archives will appear as a bunch of garbled characters.
Returns special error codes in the event that a file can not be located.
In most cases, we will only be interested in the current log. Therefore,
allowing the URL to be abbreviated will make the file easier to access.
# Conflicts:
#	src/main/java/ch/usi/si/seart/config/ActuatorConfig.java
@dabico dabico merged commit 5b51c46 into master Jan 24, 2024
4 checks passed
@dabico dabico deleted the feature/logfiles branch January 24, 2024 15:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant