Converts a LoggiFly v1.8.0 config.yaml to the v2 format.
Mount the directory containing your config and run:
docker run --rm \
-v /path/to/your/config/dir:/config \
ghcr.io/clemcer/loggifly-migrate:v1-to-v2By default the script reads /config/config.yaml and writes /config/configv2.yaml.
To specify custom paths inside the container:
docker run --rm \
-v /path/to/your/config/dir:/config \
ghcr.io/clemcer/loggifly-migrate:v1-to-v2 \
-i /config/my_config.yaml -o /config/my_configv2.yamlRequires Python 3.11+ and the project dependencies installed (pip install -r requirements.txt).
Run from the project root:
python scripts/v2_migration/convert.py -i /path/to/config.yaml -o /path/to/output.yamlOptions:
| Flag | Default | Description |
|---|---|---|
-i, --input |
/config/config.yaml |
Path to the v1 config file |
-o, --output |
/config/configv2.yaml |
Path to write the converted v2 config |
- Validates the input against the v1.8.0 model which also performs all legacy migrations up until v1.8
- Renames deprecated fields (
action→container_action,hide_regex_in_title→hide_full_regex,excluded_keywords→ignore_keywords) - Moves modular settings from
settings:to a newdefaults:section - Converts
containersandswarm_servicesentries to the v2 rules format - Converts
hostsentries to scoped rules - Validates the result against the v2 model
- Writes the converted config
The original file is never modified.
Review the output file before using it. Check the logs printed during conversion. Warnings indicate fields that could not be migrated automatically and may require manual adjustment.