forked from Seagate/cortx-s3server
-
Notifications
You must be signed in to change notification settings - Fork 1
/
s3server_audit_log.properties
50 lines (43 loc) · 2.31 KB
/
s3server_audit_log.properties
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
#
# Copyright (c) 2020 Seagate Technology LLC and/or its Affiliates
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# For any questions about this software or licensing,
# please email opensource@seagate.com or cortx-questions@seagate.com.
#
# Set root logger level to INFO and its only appender to Audit.
log4j.rootLogger=INFO, Audit
# Audit is set to be a RollingFileAppender.
log4j.appender.Audit=org.apache.log4j.RollingFileAppender
log4j.appender.Audit.File=/var/log/cortx/s3/audit/audit.log
# Set the immediate flush to true (default)
log4j.appender.Audit.ImmediateFlush=true
# Maximum allowed file size (in bytes) before rolling over. Suffixes "KB", "MB" and "GB" are allowed. 10KB = 10240 bytes, etc.
log4j.appender.Audit.MaxFileSize=20MB
# File permissions for the log files created.
log4j.appender.Audit.filePermissions=rw-------
# File owner for the log files created.
log4j.appender.Audit.fileOwner=root
# File group for the log files created.
log4j.appender.Audit.fileGroup=root
# Maximum number of backup files to keep.
log4j.appender.Audit.MaxBackupIndex=10
# If set to true, the rollover files are compressed and saved with the .gz extension.
log4j.appender.Audit.compress=true
# Audit uses PatternLayout.
log4j.appender.Audit.layout=org.apache.log4j.PatternLayout
# Audit log pattern example :
# 9y56JyDeT-mjhLWhj88jPQ seagatebucket [Mon Mar 11 10:33:13 2019] 10.230.16.132 9y56JyDeT-mjhLWhj88jPQ a8a1207f-7eee-4d98-8625-66eb1917c5ec seagatebucket/4MBfilec /4MBfilec 503 - 1000 4002876 282 282 - aws-sdk-java/1.11.37 Linux/3.10.0-862.el7.x86_64 OpenJDK_64-Bit_Server_VM/25.161-b14/1.8.0_161 - V4 - AuthHeader seagatebucket.s3.seagate.com
# https://svn.apache.org/repos/asf/logging/site/trunk/docs/log4cxx/apidocs/classlog4cxx_1_1_pattern_layout.html
log4j.appender.Audit.layout.ConversionPattern=%m