add init log filter and modify rulemgt.yml
[holmes/rule-management.git] / rulemgt-standalone / src / main / assembly / conf / rulemgt.yml
1 apidescription: ZTE Holmes rule Management rest API
2
3 # use the simple server factory if you only want to run on a single port
4 #server:
5 #  type: simple
6 #  connector:
7 #    type: http
8 #    port: 12003
9
10 server:
11   type: simple
12   rootPath: '/api/holmes-rule-mgmt/v1/*'
13   applicationContextPath: /
14   adminContextPath: /admin
15   connector:
16     type: https
17     port: 9101
18     keyStorePath: /home/holmes/conf/holmes.keystore
19     keyStorePassword: holmes
20     validateCerts: false
21     validatePeers: false
22
23 # Logging settings.
24 logging:
25
26   # The default level of all loggers. Can be OFF, ERROR, WARN, INFO, DEBUG, TRACE, or ALL.
27   level: ALL
28
29   # Logger-specific levels.
30   loggers:
31
32     # Sets the level for 'com.example.app' to DEBUG.
33     org.onap.holmes.rulemgt: ALL
34   
35   appenders:
36     - type: console
37       threshold: ALL
38       timeZone: UTC
39       logFormat: "%nopexception%logger\n|%date{yyyy-MM-dd'T'HH:mm:ss.SSSXXX,UTC}\n|%level\n|%message\n|[%mdc]\n|%rootException\n|%marker\n|%thread\n|%n \r\n"
40     - type: file
41       threshold: ERROR
42       logFormat: "%nopexception%logger\n|%date{yyyy-MM-dd'T'HH:mm:ss.SSSXXX,UTC}\n|%level\n|%message\n|%X{InvocationID}\n|%rootException\n|%marker\n|%thread\n|%n \r\n"
43       currentLogFilename: /var/log/ONAP/holmes/rulemgt-relation-error.log
44       archivedLogFilenamePattern: /var/log/ONAP/holmes/zip/rulemgt-relation-error-%d{yyyy-MM-dd}.log.gz
45       archivedFileCount: 7
46     - type: file
47       threshold: DEBUG
48       logFormat: "%nopexception%logger\n|%date{yyyy-MM-dd'T'HH:mm:ss.SSSXXX,UTC}\n|%level\n|%message\n|%X{InvocationID}\n|%rootException\n|%marker\n|%thread\n|%n \r\n"
49       currentLogFilename: /var/log/ONAP/holmes/rulemgt-relation-debug.log
50       archivedLogFilenamePattern: /var/log/ONAP/holmes/zip/rulemgt-relation-debug-%d{yyyy-MM-dd}.log.gz
51       archivedFileCount: 7
52
53 #database
54 database:
55   driverClass: org.postgresql.Driver
56   user: holmes
57   password: holmespwd
58   url: jdbc:postgresql://10.96.33.33:5432/holmes
59   properties:
60     charSet: UTF-8
61   maxWaitForConnection: 1s
62   validationQuery: "/* MyService Health Check */ SELECT 1"
63   minSize: 8
64   maxSize: 100
65   checkConnectionWhileIdle: false
66   evictionInterval: 10s
67   minIdleTime: 1s