osquery #1
Description
osquery is an operating system instrumentation framework for Windows, OS X (macOS), Linux, and FreeBSD. The tools make low-level operating system analytics and monitoring both performant and intuitive.
Overview
This base layer provides a function to add logrotate support to any reactive charm.
Usage
Declarative via layer.yaml
options:
logrotate:
/var/log/foobar.log:
- copytruncate
- rotate 5
- size 100k
In your charm code
from charms.layer import logrotate
@when(logrotate.installed, ...)
def setup_logrotate():
logrotate_opts = {
/var/log/foobar.log: [
'copytruncate',
'rotate 5',
'size 100k',
]
}
logrotate.configure(logrotate_opts)
Configuration
- extra_packages
- (string) Space separated list of extra deb packages to install.
- install_keys
- (string) osquery apt repository key
- 97A80C63C9D8B80B
- install_sources
- (string) osquery apt repository
- deb [arch=amd64] https://pkg.osquery.io/deb deb main
- package_status
- (string) The status of service-affecting packages will be set to this value in the dpkg database. Valid values are "install" and "hold".
- install