hashicorp / hashicorp/nomad

configure default log rotation

Open
#23,709 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

hcc/jira stage/accepted theme/logging type/enhancement
Dominant language
Go
Stars
17k
Forks
2.1k
Avg merge
1d 9h
Merged PRs (30d)
105

Description

Proposal

Currently, the logs config block for alloc logs rotation must be configured on a per-task basis. This can be quite cumbersome. Requesting the ability to change the defaults in the client config.

Use-cases

When running promtail as a system job, if a job dumps a large amount of logs all at once (i.e. more than 10 * 10MB), the files willl quickly get rotated out with the default settings and promtail completely misses some log lines.

Attempted Solutions

Configuring the logs block for every task, although this is quite a lot of redundant configuration and is error-prone

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the client configuration handling and the alloc log rotation settings, then trace how the logs block is currently applied per task. Define how client-level defaults should be represented and how they interact with task-level configuration. Done means log rotation defaults can be configured once in the client config for jobs such as system jobs.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.