duplique une ligne ...
 
Notifications
Clear all

duplique une ligne toutes les 5 secondes in nginx_clamav_signature_provider_access.log

3 Posts
3 Users
0 Reactions
88 Views
(@i1tsov)
Joined: 2 months ago
Posts: 3
Topic starter  

Hi. Tell me about the nginx_clamav_signature_provider_access.log. The log has a size of more than 200 MB, it contains only one line duplicated:

An entry is added every 5 seconds.

127.0.0.1 - - [23/Oct/2024:14:46:30 +0300] "GET / HTTP/1.1" 200 2 "-" "Consul Health Check"
127.0.0.1 - - [23/Oct/2024:14:46:35 +0300] "GET / HTTP/1.1" 200 2 "-" "Consul Health Check"
127.0.0.1 - - [23/Oct/2024:14:46:40 +0300] "GET / HTTP/1.1" 200 2 "-" "Consul Health Check"
127.0.0.1 - - [23/Oct/2024:14:46:45 +0300] "GET / HTTP/1.1" 200 2 "-" "Consul Health Check"
127.0.0.1 - - [23/Oct/2024:14:46:50 +0300] "GET / HTTP/1.1" 200 2 "-" "Consul Health Check"
127.0.0.1 - - [23/Oct/2024:14:46:56 +0300] "GET / HTTP/1.1" 200 2 "-" "Consul Health Check"
127.0.0.1 - - [23/Oct/2024:14:47:01 +0300] "GET / HTTP/1.1" 200 2 "-" "Consul Health Check"
127.0.0.1 - - [23/Oct/2024:14:47:06 +0300] "GET / HTTP/1.1" 200 2 "-" "Consul Health Check"
127.0.0.1 - - [23/Oct/2024:14:47:11 +0300] "GET / HTTP/1.1" 200 2 "-" "Consul Health Check"
127.0.0.1 - - [23/Oct/2024:14:47:16 +0300] "GET / HTTP/1.1" 200 2 "-" "Consul Health Check"
127.0.0.1 - - [23/Oct/2024:14:47:21 +0300] "GET / HTTP/1.1" 200 2 "-" "Consul Health Check"
127.0.0.1 - - [23/Oct/2024:14:47:26 +0300] "GET / HTTP/1.1" 200 2 "-" "Consul Health Check"
127.0.0.1 - - [23/Oct/2024:14:47:31 +0300] "GET / HTTP/1.1" 200 2 "-" "Consul Health Check"
127.0.0.1 - - [23/Oct/2024:14:47:36 +0300] "GET / HTTP/1.1" 200 2 "-" "Consul Health Check"
127.0.0.1 - - [23/Oct/2024:14:47:41 +0300] "GET / HTTP/1.1" 200 2 "-" "Consul Health Check"
127.0.0.1 - - [23/Oct/2024:14:47:46 +0300] "GET / HTTP/1.1" 200 2 "-" "Consul Health Check"
127.0.0.1 - - [23/Oct/2024:14:47:51 +0300] "GET / HTTP/1.1" 200 2 "-" "Consul Health Check"
127.0.0.1 - - [23/Oct/2024:14:47:56 +0300] "GET / HTTP/1.1" 200 2 "-" "Consul Health Check"
127.0.0.1 - - [23/Oct/2024:14:48:01 +0300] "GET / HTTP/1.1" 200 2 "-" "Consul Health Check"
127.0.0.1 - - [23/Oct/2024:14:48:06 +0300] "GET / HTTP/1.1" 200 2 "-" "Consul Health Check"
127.0.0.1 - - [23/Oct/2024:14:48:11 +0300] "GET / HTTP/1.1" 200 2 "-" "Consul Health Check"
127.0.0.1 - - [23/Oct/2024:14:48:16 +0300] "GET / HTTP/1.1" 200 2 "-" "Consul Health Check"
127.0.0.1 - - [23/Oct/2024:14:48:21 +0300] "GET / HTTP/1.1" 200 2 "-" "Consul Health Check"
127.0.0.1 - - [23/Oct/2024:14:48:26 +0300] "GET / HTTP/1.1" 200 2 "-" "Consul Health Check"
127.0.0.1 - - [23/Oct/2024:14:48:31 +0300] "GET / HTTP/1.1" 200 2 "-" "Consul Health Check"
127.0.0.1 - - [23/Oct/2024:14:48:36 +0300] "GET / HTTP/1.1" 200 2 "-" "Consul Health Check"
127.0.0.1 - - [23/Oct/2024:14:48:41 +0300] "GET / HTTP/1.1" 200 2 "-" "Consul Health Check"
127.0.0.1 - - [23/Oct/2024:14:48:46 +0300] "GET / HTTP/1.1" 200 2 "-" "Consul Health Check"
127.0.0.1 - - [23/Oct/2024:14:48:51 +0300] "GET / HTTP/1.1" 200 2 "-" "Consul Health Check"
127.0.0.1 - - [23/Oct/2024:14:48:56 +0300] "GET / HTTP/1.1" 200 2 "-" "Consul Health Check"
127.0.0.1 - - [23/Oct/2024:14:49:01 +0300] "GET / HTTP/1.1" 200 2 "-" "Consul Health Check"
127.0.0.1 - - [23/Oct/2024:14:49:06 +0300] "GET / HTTP/1.1" 200 2 "-" "Consul Health Check"
127.0.0.1 - - [23/Oct/2024:14:49:11 +0300] "GET / HTTP/1.1" 200 2 "-" "Consul Health Check"
127.0.0.1 - - [23/Oct/2024:14:49:16 +0300] "GET / HTTP/1.1" 200 2 "-" "Consul Health Check"
127.0.0.1 - - [23/Oct/2024:14:49:21 +0300] "GET / HTTP/1.1" 200 2 "-" "Consul Health Check"
127.0.0.1 - - [23/Oct/2024:14:49:26 +0300] "GET / HTTP/1.1" 200 2 "-" "Consul Health Check"
127.0.0.1 - - [23/Oct/2024:14:49:31 +0300] "GET / HTTP/1.1" 200 2 "-" "Consul Health Check"
127.0.0.1 - - [23/Oct/2024:14:49:36 +0300] "GET / HTTP/1.1" 200 2 "-" "Consul Health Check"
127.0.0.1 - - [23/Oct/2024:14:49:41 +0300] "GET / HTTP/1.1" 200 2 "-" "Consul Health Check"
127.0.0.1 - - [23/Oct/2024:14:49:46 +0300] "GET / HTTP/1.1" 200 2 "-" "Consul Health Check"
127.0.0.1 - - [23/Oct/2024:14:49:51 +0300] "GET / HTTP/1.1" 200 2 "-" "Consul Health Check"
127.0.0.1 - - [23/Oct/2024:14:49:56 +0300] "GET / HTTP/1.1" 200 2 "-" "Consul Health Check"


   
Quote
(@anahuac)
Joined: 2 years ago
Posts: 328
 

just touch it like this:

>/opt/zextras/log/nginx_clamav_signature_provider_access.log

 

😀


   
ReplyQuote
(@sigtrap)
Joined: 1 year ago
Posts: 38
 

That is a good workaround. But the nginx_clamav_signature_provider_access.log and mysql_error.log should probably be rotated somehow? Adding this to cron is maybe one way but better to add it in syslog configuration, but I don't know how. Anyone else that have lots of errors in mysql_error.log as me https://community.zextras.com/forum/postid/9294/

Regards

//Sigtrap


   
ReplyQuote