-
Notifications
You must be signed in to change notification settings - Fork 340
/
anonymize_ignore.conf
34 lines (31 loc) · 1.4 KB
/
anonymize_ignore.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#
# Author: Hari Sekhon
# Date: 2013-07-18 22:00:56 +0100 (Thu, 18 Jul 2013)
#
# https://github.com/HariSekhon/DevOps-Python-tools
#
# License: see accompanying LICENSE file
#
# anonymize_ignore.conf - used by anonymize.py
#
# List of phrases to ignore anonymization, one PCRE format Regex per line
#
# Regex are case insensitive
#
# blank lines and lines prefixed with a hash sign (#) are ignored
# Implemented in the form of negative lookaheads as variable length lookbehind isn't implemented in Python regex engine
#
# XXX: Be careful not to add sloppy regex like .* or .+ in here as it will prevent anonymization. Use this file sparingly, it's better to code generic tested rules in to the relative subroutines where possible
#
# XXX: Also be careful to not put capturing brackets in here as it may short circuit replacement operations
#
# XXX: if adding anything to this file, it's recommended to run tests/test_anonymize.sh to see if it breaks existing stuff
#
# XXX: this currently only applies to --hostname/--domain/--fqdn as they often match non-host related things like class names in debug messages that you want to preserve for pasting in Apache Jira tickets etc
#Script=/var/lib/ambari-server/resources/scripts/
\S*exception
#\bmain\.(?:py|java)
#\b[A-Z][a-z]+(?:[A-Z][a-z]+)+\.(?:py|java):\d+
\b[A-Za-z0-9_-]+\.(?:py|java):\d+
# ignore versions like /usr/hdp/2.3.0 - now handled
/\w+/\w+/\d+\.\d+\.\d+\.\d+