我的 /var/log/messages 中充满了以下日志,我无法弄清楚是什么在写入日志。任何帮助都将不胜感激。
Jun 13 00:12:28 db-k450-hd2-2 IngrianActivity: [2020-06-13 00:12:28] INFO 10.7.114.45 [-] - 205012001322 KeyInfo kestrel.database.key3 [-] - [Success] [-]
Jun 13 00:12:28 db-k450-hd2-2 IngrianActivity: [2020-06-13 00:12:28] INFO 10.7.114.45 [-] - 205010003504 KeyInfo kestrel.database.key3 [-] - [Success] [-]
Jun 13 00:12:28 db-k450-hd2-2 IngrianActivity: [2020-06-13 00:12:28] INFO 10.7.114.45 [-] - 205009000002 Crypto kestrel.database.key3 [op#1 DECRYPT DESede/ECB/PKCS5Padding] - [Success] [-]
Jun 13 00:12:28 db-k450-hd2-1 IngrianActivity: [2020-06-13 00:12:28] INFO 10.7.114.45 [-] - 205008000002 Crypto kestrel.database.key3 [op#1 DECRYPT DESede/ECB/PKCS5Padding] - [Success] [-]
Jun 13 00:12:28 db-k450-hd2-2 IngrianActivity: [2020-06-13 00:12:28] INFO 10.7.114.44 [-] - 204148001137 KeyInfo kestrel.database.key3 [-] - [Success] [-]
Jun 13 00:12:28 db-k450-hd2-2 IngrianActivity: [2020-06-13 00:12:28] INFO 10.7.114.44 [-] - 204148001138 KeyInfo kestrel.database.key3 [-] - [Success] [-]
Jun 13 00:12:28 db-k450-hd2-1 IngrianActivity: [2020-06-13 00:12:28] INFO 10.7.114.44 [-] - 204141000002 Crypto kestrel.database.key3 [op#1 DECRYPT DESede/ECB/PKCS5Padding] - [Success] [-]
Jun 13 00:12:28 db-k450-hd2-1 IngrianActivity: [2020-06-13 00:12:28] INFO 10.7.114.44 [-] - 204140000002 Crypto kestrel.database.key3 [op#1 DECRYPT DESede/ECB/PKCS5Padding] - [Success] [-]
答案1
您首先应该决定是否需要这些消息。如果它们有用,您需要为日志提供额外的空间,以免空间被填满。或者,您需要增加轮换旧日志文件的频率。
如果您确定不需要这些消息,您可以将应用程序 (IngrianActivity) 的日志级别从 INFO 降低到 WARN。这样,就不会写入任何 INFO 级别的消息。对此要非常谨慎,因为您不想错过相关信息。