-
Notifications
You must be signed in to change notification settings - Fork 2
/
pillar.example
133 lines (128 loc) · 3.91 KB
/
pillar.example
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
# -*- coding: utf-8 -*-
# vim: ft=yaml
pimpmylog:
git_repo: https://github.com/potsky/PimpMyLog.git
target: /var/www/pimpmylog
web_user: www-data
## Config will be rendered as a json file, as required by PimpMyLog
# These are the defaults values PimpMyLog uses
config:
badges:
http:
'1': info
'2': success
'3': default
'4': warning
'5': danger
severity:
alert: danger
crit: danger
debug: success
emerg: danger
error: danger
'fatal error': danger
info: success
Notice: info
notice: default
'parse error': danger
Warning: warning
warn: warning
globals:
# These are all the defaults if none is set. In this pillar I enabled a few for testing purposes
AUTH_LOG_FILE_COUNT: 100
AUTO_UPGRADE: false
# CHECK_UPGRADE: true
# EXPORT: true
# FILE_SELECTOR: bs
# FOOTER: '© <a href="http://www.potsky.com" target="doc">Potsky</a> 2007-'' . YEAR . '' - <a href="http://pimpmylog.com" target="doc">Pimp my Log</a>'
# FORGOTTEN_YOUR_PASSWORD_URL: 'http://support.pimpmylog.com/kb/misc/forgotten-your-password'
GEOIP_URL: 'http://www.geoiptool.com/en/?IP=%p'
# PORT_URL: 'http://www.adminsub.net/tcp-udp-port-finder/%p'
# GOOGLE_ANALYTICS: UA-XXXXX-X
# HELP_URL: 'http://pimpmylog.com'
LOCALE: gb_GB
LOGS_MAX: 50
# LOGS_REFRESH: 0
# MAX_SEARCH_LOG_TIME: 5
# NAV_TITLE: ''
# NOTIFICATION: true
# NOTIFICATION_TITLE: 'New logs [%f]'
# PIMPMYLOG_ISSUE_LINK: 'https://github.com/potsky/PimpMyLog/issues/'
# PIMPMYLOG_VERSION_URL: 'http://demo.pimpmylog.com/version.js'
# PULL_TO_REFRESH: true
# SORT_LOG_FILES: default
# TAG_DISPLAY_LOG_FILES_COUNT: true
# TAG_NOT_TAGGED_FILES_ON_TOP: true
# TAG_SORT_TAG: 'default | display-asc | display-insensitive | display-desc | display-insensitive-desc'
# TITLE: Pimp my Log
# TITLE_FILE: 'Pimp my Log [%f]'
# UPGRADE_MANUALLY_URL: 'http://pimpmylog.com/getting-started/#update'
# USER_CONFIGURATION_DIR: config.user.d
# USER_TIME_ZONE: Europe/Paris
## Sites will be rendered as json files, as required by PimpMyLog
sites:
apache_access:
display: Apache Access
format:
exclude:
CMD:
- '/OPTIONS/'
URL:
- '/favicon.ico/'
- '/\.pml\.php.*$/'
export_title: URL
match:
CMD: 7
Code: 10
Date: 6
IP: 3
Referer: 13
Size: 11
UA: 14
URL: 8
User: 5
'\u03BCs': 16
regex: '|^((\S*) )*(\S*) (\S*) (\S*) \[(.*)\] "(\S*) (.*) (\S*)" ([0-9]*) (.*)("(.*)" "(.*)"( [0-9]*/([0-9]*))*)*$|U'
type: NCSA
types:
Code: 'badge:http'
Date: 'date:H:i:s'
IP: 'ip:geo'
Referer: link
Size: 'numeral:0b'
UA: 'ua:{os.name} {os.version} | {browser.name} {browser.version}/100'
URL: txt
'\u03BCs': 'numeral:0,0'
max: 10
notify: false
path: '/var/log/apache2/access.log'
refresh: 0
apache_error:
display: Apache Error
format:
exclude:
Log:
- '/PHP Stack trace:/'
- '/PHP *[0-9]*\. /'
export_title: Log
match:
Date: 1
IP: 4
Log: 5
Referer: 7
Severity: 2
regex: '|^\[(.*)\] \[(.*)\] (\[client (.*)\] )*((?!\[client ).*)(, referer: (.*))*$|U'
type: HTTPD 2.2
types:
Date: 'date:H:i:s'
IP: 'ip:http'
Log: preformatted
Referer: link
Severity: 'badge:severity'
max: 10
notify: true
path: '/var/log/apache2/error.log'
refresh: 5
# This site will be removed from the <config.user.d> dir
some_absent_site:
absent: true