メインコンテンツまでスキップ

StorageGRID監査ログを複数のファイルに分割

Views:
Visibility:
Public
Votes:
0
Category:
storagegrid<a>2009877855</a>
Specialty:
sgrid
Last Updated:

環境

NetApp StorageGRID

問題

audit.log サードパーティのエンドクライアントアプリケーションは1日に1つのログファイルしかチェックしないが、複数のファイルが毎日保存される

例:

admin@sg-admin:~ $ ls -lshtr /var/local/audit/export/
 92M -rw-r -- r -- 1 ams-user bycast  92M Dec 25 00:10 2023-12-25.txt.gz
 91M -rw-r -- r -- 1 ams-user bycast  91M Dec 25 00:20 2023-12-25.txt.1.gz
 14G -rw-r -- r -- 1 ams-user bycast  14G Dec 26 00:00 2023-12-25.txt.2.gz
 89M -rw-r -- r -- 1 ams-user bycast  89M Dec 26 00:10 2023-12-26.txt.gz
 93M -rw-r -- r -- 1 ams-user bycast  93M Dec 26 00:20 2023-12-26.txt.1.gz
 79G -rw-r -- r -- 1 ams-user bycast  79G Dec 27 00:00 2023-12-26.txt.2
532M -rw-r -- r -- 1 ams-user bycast 532M Dec 27 00:10 audit. log. 2
484M -rw-r -- r -- 1 ams-user bycast 484M Dec 27 00:20 audit. log. 1
 15G -rw-r -- r -- 1 ams-user bycast  14G Dec 27 04:37 audit.log
 
 
アプリケーションごとに必要なログローテーションの例:
 
admin@sg-admin:~ $ ls -lshtr /var/local/audit/export/
 21G -rw-r -- r -- 1 ams-user bycast  21G Dec 24 00:00 2023-12-23.txt.gz
 15G -rw-r -- r -- 1 ams-user bycast  15G Dec 25 00:00 2023-12-24.txt.gz
 14G -rw-r -- r -- 1 ams-user bycast  14G Dec 26 00:00 2023-12-25.txt.gz
 79G -rw-r -- r -- 1 ams-user bycast  79G Dec 27 00:00 2023-12-26.txt
 15G -rw-r -- r -- 1 ams-user bycast  14G Dec 27 04:37 audit.log

 

Sign in to view the entire content of this KB article.

New to NetApp?

Learn more about our award-winning Support

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.