跳转到主内容

OCI日志文件保留多长时间

Views:
2
Visibility:
Public
Votes:
0
Category:
cloud-insights
Specialty:
oci
Last Updated:

适用场景

OnCommand洞察力(OCI)

问题解答

日志在采集目录中保留多少天?
采集操作会维护一个后台服务、用于从旧文件中清理采集日志目录。
这对于控制采集日志目录的大小非常重要。
LOG_TIME_LENGTH=7 (days)
...标准设置是
       <property name="rotateSize" value="5m"/> (once a log file reaches 5 mb, it starts a new one)
  <property name="maxFileIndex" value="5"/> (FIVE logs are retained at a time)

                 
                   
示例:

# ls -alh /var/log/netapp/oci/wildfly
total 396M
drwxr-xr-x. 2 ocisys ocisys 4.0K Aug 22 14:08 .
drwxr-xr-x. 10 root root 4.0K Jan 28 2022 ..
-rw-r--r--. 1 ocisys ocisys 0 Jan 28 2022 ahr.log
-rw-r--r--. 1 ocisys ocisys 0 Jan 28 2022 analytics.log
-rw-r--r--. 1 ocisys ocisys 36K May 30 05:10 archiver.log
-rw-r--r--. 1 ocisys ocisys 5.1M May 29 00:00 asup-1.log
-rw-r--r--. 1 ocisys ocisys 5.1M May 10 02:00 asup-2.log
-rw-r--r--. 1 ocisys ocisys 5.1M Apr 23 02:00 asup-3.log
-rw-r--r--. 1 ocisys ocisys 5.1M Apr 4 02:00 asup-4.log
-rw-r--r--. 1 ocisys ocisys 5.1M Mar 16 23:00 asup-5.log
-rw-r--r--. 1 ocisys ocisys 477K May 30 07:00 asup.log
-rw-r--r--. 1 ocisys ocisys 1.4K Aug 22 14:02 dwh.log
-rw-r--r--. 1 ocisys ocisys 0 Jan 28 2022 dwh_troubleshoot.log
-rw-r--r--. 1 ocisys ocisys 0 Jan 28 2022 dwh_upgrade.log
-rw-r--r--. 1 ocisys ocisys 5.1M May 30 17:07 elasticsearch_client-1.log
-rw-r--r--. 1 ocisys ocisys 5.1M May 30 15:42 elasticsearch_client-2.log
-rw-r--r--. 1 ocisys ocisys 5.1M May 30 14:16 elasticsearch_client-3.log
-rw-r--r--. 1 ocisys ocisys 5.1M May 30 12:50 elasticsearch_client-4.log
-rw-r--r--. 1 ocisys ocisys 5.1M May 30 11:25 elasticsearch_client-5.log
-rw-r--r--. 1 ocisys ocisys 4.8M Aug 22 14:18 elasticsearch_client.log
-rw-r--r--. 1 ocisys ocisys 1.3M Aug 22 14:18 events.log
-rw-r--r--. 1 ocisys ocisys 0 Jan 28 2022 file_system.log
-rw-r--r--. 1 ocisys ocisys 261 Jan 31 2022 ldap.log
-rw-r--r--. 1 ocisys ocisys 2.7K Aug 22 14:03 oci.log
-rw-r--r--. 1 ocisys ocisys 6.5M Aug 22 14:13 performance.log
-rw-r--r--. 1 ocisys ocisys 0 Jan 28 2022 portal.log
-rw-r--r--. 1 ocisys ocisys 26M Apr 17 02:30 prelert-1.log
-rw-r--r--. 1 ocisys ocisys 7.0M Aug 22 14:25 prelert.log
-rw-r--r--. 1 ocisys ocisys 835K Jan 31 2022 profiler.2022-01-28_18-45-10-097.csv
-rw-r--r--. 1 ocisys ocisys 361K Feb 1 2022 profiler.2022-01-31_19-45-19-411.csv
-rw-r--r--. 1 ocisys ocisys 4.3K Nov 15 2023 profiler.2023-11-15_14-03-52-960.csv
-rw-r--r--. 1 ocisys ocisys 11M Dec 20 2023 profiler.2023-11-15_14-22-09-304.csv
-rw-r--r--. 1 ocisys ocisys 11M Jan 25 2024 profiler.2023-12-20_15-45-55-769.csv
-rw-r--r--. 1 ocisys ocisys 11M Mar 1 13:00 profiler.2024-01-25_14-23-05-686.csv
-rw-r--r--. 1 ocisys ocisys 11M Apr 6 12:37 profiler.2024-03-01_13-00-17-319.csv
-rw-r--r--. 1 ocisys ocisys 11M May 12 11:14 profiler.2024-04-06_12-37-26-618.csv
-rw-r--r--. 1 ocisys ocisys 5.1M May 30 18:25 profiler.2024-05-12_11-14-39-356.csv
-rw-r--r--. 1 ocisys ocisys 5.6K Aug 22 14:23 profiler.2024-08-22_14-03-01-521.csv
-rw-r--r--. 1 ocisys ocisys 12M Aug 22 14:25 rest_access.log
-rw-r--r--. 1 ocisys ocisys 162K Aug 22 14:03 rest.log
-rw-r--r--. 1 ocisys ocisys 2.8M Aug 22 14:18 ruler.log
-rw-r--r--. 1 ocisys ocisys 26M May 27 17:15 server-1.log
-rw-r--r--. 1 ocisys ocisys 26M May 23 17:55 server-2.log
-rw-r--r--. 1 ocisys ocisys 26M May 19 18:35 server-3.log
-rw-r--r--. 1 ocisys ocisys 26M May 15 19:15 server-4.log
-rw-r--r--. 1 ocisys ocisys 26M May 11 19:54 server-5.log
-rw-r--r--. 1 ocisys ocisys 5.1M Apr 1 06:15 server_acq-1.log
-rw-r--r--. 1 ocisys ocisys 2.1M Aug 22 14:25 server_acq.log
-rw-r--r--. 1 ocisys ocisys 0 Jan 28 2022 server_encoder_query.log
-rw-r--r--. 1 ocisys ocisys 5.1M May 29 04:44 server_indexer-1.log
-rw-r--r--. 1 ocisys ocisys 5.1M May 27 01:21 server_indexer-2.log
-rw-r--r--. 1 ocisys ocisys 5.1M May 24 22:18 server_indexer-3.log
-rw-r--r--. 1 ocisys ocisys 5.1M May 22 18:51 server_indexer-4.log
-rw-r--r--. 1 ocisys ocisys 5.1M May 20 15:46 server_indexer-5.log
-rw-r--r--. 1 ocisys ocisys 3.8M Aug 22 14:18 server_indexer.log
-rw-r--r--. 1 ocisys ocisys 20M Aug 22 14:10 server.log
-rw-r--r--. 1 ocisys ocisys 0 Jan 28 2022 server_query.log
-rw-r--r--. 1 ocisys ocisys 4.4K Aug 22 14:03 upgrade.log
-rw-r--r--. 1 ocisys ocisys 0 Jan 28 2022 userdata_lock.log
-rw-r--r--. 1 ocisys ocisys 11K Jan 31 2022 webuistats.log
-rw-r--r--. 1 ocisys ocisys 5.1M May 30 17:35 wildfly-1.log
-rw-r--r--. 1 ocisys ocisys 5.1M May 30 16:24 wildfly-2.log
-rw-r--r--. 1 ocisys ocisys 5.1M May 30 15:14 wildfly-3.log
-rw-r--r--. 1 ocisys ocisys 5.1M May 30 14:03 wildfly-4.log
-rw-r--r--. 1 ocisys ocisys 5.1M May 30 12:53 wildfly-5.log
-rw-r--r--. 1 ocisys ocisys 11M Mar 16 04:41 wildfly-gc.log.0
-rw-r--r--. 1 ocisys ocisys 13K Aug 22 14:22 wildfly-gc.log.0.current
-rw-r--r--. 1 ocisys ocisys 6.3M May 30 18:29 wildfly-gc.log.1.current
-rw-r--r--. 1 ocisys ocisys 4.1M Aug 22 14:25 wildfly.log
-rw-r--r--. 1 ocisys ocisys 3.5M May 30 16:20 workbench.log
-rw-r--r--. 1 ocisys ocisys 0 Jan 28 2022 wsapi.log

追加信息

其他信息文本

 

NetApp provides no representations or warranties regarding the accuracy or reliability or serviceability of any information or recommendations provided in this publication or with respect to any results that may be obtained by the use of the information or observance of any recommendations provided herein. The information in this document is distributed AS IS and the use of this information or the implementation of any recommendations or techniques herein is a customer's responsibility and depends on the customer's ability to evaluate and integrate them into the customer's operational environment. This document and the information contained herein may be used solely in connection with the NetApp products discussed in this document.