Configuration
A default configuration is automatically generated if it does not exist. It is located at ~/.preq/config.yaml
cat ~/.preq/config.yaml
config.yaml
timestamps:
- format: epochany
pattern: |
"time":(\d{16,19})
- format: rfc3339
pattern:
(\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|[+\-]\d{2}:\d{2}))
Custom Timestamp Formats
See custom timestamp formats. for more information.
Rules
By default, preq
will run up-to-date community CREs against input data sources. You can also provide preq
with additional custom rules in development.
In the configuration, you can add one or more rule file.
~/.preq/config.yaml
rules:
paths:
- /path/to/custom/rules1.yaml
- /path/to/more/custom/rules2.yaml
These rules will run in addition to community CREs. You can disable community rules on the command line with -d
or in configuration.
~/.preq/config.yaml
rules:
disable_community_rules: true
Data Sources
You can specify one or more input data sources to detect CREs.
~/.preq/config.yaml
data_sources: /path/to/sources.yaml
rules:
paths:
- /path/to/custom/rules1.yaml
- /path/to/more/custom/rules2.yaml
Updates
You can automatically accept updates in configuration.
~/.preq/config.yaml
accept_updates: true