Coder Social home page Coder Social logo

hvsharma12 / journald Goto Github PK

View Code? Open in Web Editor NEW

This project forked from linux-system-roles/journald

0.0 0.0 0.0 110 KB

Ansible role for managing systemd journald settings

Home Page: https://linux-system-roles.github.io/journald/

License: MIT License

Shell 13.42% JavaScript 11.84% HTML 64.84% Jinja 9.90%

journald's Introduction

Journald

ansible-lint.yml ansible-test.yml markdownlint.yml woke.yml

This role provides an easy way to configure the systemd-journald logging service.

Requirements

See below

Collection requirements

If you want to manage rpm-ostree systems with this role, you will need to install additional collections. Please run the following command line to install them:

ansible-galaxy collection install -vv -r meta/collection-requirements.yml

Role Variables

The role allows system administrator to configure basic systemd-journald settings, through the following set of variables which form the role's public API.

  • journald_persistent - boolean variable which governs where journald stores log file. When set to true the logs will be stored on disk in /var/log/journal/. Defaults to false, i.e. volatile journal storage.

NOTE: The following settings apply to both persistent and volatile modes unless otherwise indicated.

  • journald_max_disk_size - integer variable, in megabytes, that governs how much disk space can journal files occupy before some of them are deleted. No implicit value is configured by the role, hence default sizing calculation described in man 5 journald.conf applies.

  • journald_max_files - integer variable that governs how many journal files can be kept at maximum while respecting max disk size settings for journal. No implicit value is configured by default.

  • journald_max_file_size - integer variable, in megabytes, describes the maximum size of single journal file. No implicit configuration is set up by the role.

  • journald_per_user - boolean variable, allows to configure whether journald should keep log data separate for each user, e.g. allowing unprivileged users to read system log from their own user services. Defaults to true. Note that per user journal files are available only when journald_persistent: true.

  • journald_compression - boolean variable instructs journald to apply compression to journald data objects that are bigger than default 512 bytes. Defaults to true.

  • journald_sync_interval - integer variable, in minutes, configures the time span after which journald synchronizes the currently used journal file to disk. By default role doesn't alter currently used value. This setting is only applicable for journald_persistent: true. You will get a warning if set otherwise.

  • journald_forward_to_syslog - boolean variable, control whether log messages received by the journal daemon shall be forwarded to a traditional syslog daemon. Defaults to false.

  • journald_rate_limit_interval_sec - integer variable, in seconds, configures the time interval within which only journald_rate_limit_burst messages are handled. See man 5 journald.conf for more information.

  • journald_rate_limit_burst - integer variable, sets the upper limit of messages from a service which are handled within the time defined by journald_rate_limit_interval_sec. See man 5 journald.conf for more information.

Example Playbook

- hosts: all
  vars:
    journald_persistent: true
    journald_max_disk_size: 2048
    journald_per_user: true
    journald_sync_interval: 1
  roles:
    - linux-system-roles.journald

rpm-ostree

See README-ostree.md

License

MIT

Author Information

Michal Sekletar

journald's People

Contributors

dependabot[bot] avatar ephracis avatar jamacku avatar msekletar avatar nhosoi avatar richm avatar spetrosi avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.