File tree Expand file tree Collapse file tree 2 files changed +15
-0
lines changed Expand file tree Collapse file tree 2 files changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,16 @@ maxsize = 1048576 # size in bytes (1048576 = 1 megabyte)
4
4
maxtime = 86400 # time in seconds (86400 = 1 day)
5
5
maxfiles = 5 # num files per directory
6
6
7
+ # Format of the timestamp: YYYY-MM-DD HH:MM:SS.NNN
8
+ #stamp_fmt = "%F %T.%3N"
9
+
10
+ # Configures a remote log server
11
+ #remote_host = 192.168.1.2
12
+ #remote_port = 514
13
+
14
+ # Send all logs via UDP to a remote log server
15
+ #remote_log = 1
16
+
7
17
# This will capture all of the internal log messages that metalog itself
8
18
# generates. If you use any "command" options below, you will want this
9
19
# as metalog generates a lot of status messages whenever it executes a
@@ -52,6 +62,8 @@ Kernel messages :
52
62
facility = "kern"
53
63
logdir = "/var/log/kernel"
54
64
break = 1
65
+ # Additionally send this log entries via UDP to a remote log server
66
+ # remote_log = 1
55
67
56
68
Crond :
57
69
Original file line number Diff line number Diff line change @@ -1287,6 +1287,9 @@ static int log_udp(char *buf, int bsize)
1287
1287
buf [bsize ] = '\0' ;
1288
1288
if (write (1 , buf , strlen (buf )) != (ssize_t ) strlen (buf ))
1289
1289
return -1 ;
1290
+ if (write (1 , "\n" , 1 ) != 1 )
1291
+ return -1 ;
1292
+
1290
1293
return log_line (LOGLINETYPE_SYSLOG , buf );
1291
1294
}
1292
1295
You can’t perform that action at this time.
0 commit comments