Page History
...
Code Block | ||
---|---|---|
| ||
Usage: log-anonymizer.sh [Options] Options: -l | --log-file=<log-file> | optional: location of a log filefiles that shouldto be anonymized; filesa single file, directoriesdirectory andor wildcards can be specified; the argument can occur any number of times -o | --output-dir=<directory> | optional: output directory offor anonymized log files -r | --rules-file=<rules-file> | optional: the path to a YAML file holding rules for anonymization; by default built-in rules will be applied -e | --export-rules=<rules-file> | optional: the path to a YAML file to which built-in rules arewill be exported |
Explanation:
- Options
-l | --log-file=<log-file>
: Specifies the location of a log file to be anonymized.- This option can be specified repeatedly for a number of files. Wildcards can be specified and directories can be specified if all included files be anonymized.
- Plain text log files with the .log file extension and compressed log files with the .gz file extension are considered - see the JS7 - Log Rotation article.
- Anonymized log file names are prefixed with the string:
anonymized-
- By default anonymized log files are stored in the directory in which original log files are found.
-o | --output-dir=<directory>
: Optionally specifies the output directory in which anonymized log files are stored. If this argument is omitted then anonymized log files are stored in their original directory.-r | --rules-file=<rules-file>
: Optionally specifies the location of a file in YAML format that holds the rules to be applied for anonymization.-e | --export-rules=<rules-file>
: Optionally specifies the location of a file in YAML format to which the built-in rules for anonymization will be exported.
...
Overview
Content Tools