Skip to content

How to redirect sql_exporter log to required file #637

Closed Answered by burningalchemist
ignalexeyp asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @ignalexeyp, I've recently switched to another logging library (log/slog), and it's possible now to define the log filepath to write to (by default it's stdout).

The feature is already available on master, but wasn't released yet as a part of v0.17.

So at the moment there are three options:

  • you might build a release yourself from master (it's straightforward - just follow the docs);
  • wait a little bit before the new release is cut;
  • and you can also configure syslog to redirect stdout data to the file in the meantime.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@ignalexeyp
Comment options

Answer selected by burningalchemist
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants