influxdata / influxdata/influxdb

[FeatureRequest] redirect DB logs to a separate log file

Open
#16,885 0 comments 0 reactions 0 assignees View on GitHub
1.x
Dominant language
Rust
Stars
31.7k
Forks
3.7k
Avg merge
13h 37m
Merged PRs (30d)
8

Description

We can redirect http logs to a file in the influxdb.conf
I want to be able to redirect he DB logs also similarly. Currently if it is run as a systemd service, they only go to /var/log/messages.

Justification:
I am hosting the DB on a AWS EC2 machine. In case the EC2 goes down for some reason, I will lose all the logs on the machine.
Instead I want to be able to forward these logs to splunk or any such service continually so that it is available when needed.

Only way I can do this currently is by running journalctl in a cron and then redirecting to splunk. Since it is a cron, there will always be a delay and loss of the most critical part of logs just before shutdown.

Contributor guide

Open the contributing guide

Research direction

Start by reviewing the logging settings in influxdb.conf and how the systemd service handles database logs. Done means database logs can be redirected to a separate file continuously, so they can be forwarded to Splunk or another external service without relying on delayed cron output.

Written by the indexing model from the issue text.

Assessment

Tech stack
aws
Domain
observability
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
28/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.