Klearchos Chaloulos
366b7db4b6
journal-remote: split-mode=host, remove port from journal filename
...
When constructing the journal filename to store logs from a remote host, remove the port of the tcp connection, as the port will change with every reboot/connection loss between sender/reveiver machines. Having the port in the filename will cause a new journal file to be created for every reboot or connection loss.
For the implementation, a new argument "bool include_port" is added to the getpeername_pretty() function. This is passed to the sockaddr_pretty() function. The value of the include_port argument is set to true in all calls of getpeername_pretty(), except for 2 calls in journal-remote.c, where it is set to false.
2015-12-01 19:29:59 +02:00
..
2015-12-01 19:29:59 +02:00
2015-11-27 19:19:36 +01:00
2015-11-17 07:06:08 +01:00
2015-12-01 19:29:59 +02:00
2015-11-10 17:31:31 +01:00
2015-11-16 22:09:36 +01:00
2015-11-18 23:09:02 +01:00
2015-11-27 19:19:36 +01:00
2015-11-30 19:06:43 +02:00
2015-11-27 19:19:36 +01:00
2015-11-27 19:19:36 +01:00
2015-12-01 19:29:59 +02:00
2015-11-27 19:19:36 +01:00
2015-11-09 20:01:06 +01:00
2015-11-03 14:47:39 +03:00
2015-11-09 20:01:06 +01:00
2015-10-27 13:25:57 +01:00
2015-10-27 13:45:53 +01:00
2015-11-15 18:30:26 +00:00
2015-11-27 19:19:36 +01:00
2015-11-25 21:21:44 +01:00
2015-10-27 13:45:53 +01:00
2015-11-17 07:06:08 +01:00
2015-11-16 22:09:36 +01:00
2015-11-27 19:19:36 +01:00
2015-11-27 19:19:36 +01:00
2015-11-27 19:19:36 +01:00
2015-11-27 19:19:36 +01:00
2015-11-30 19:30:03 +01:00
2015-12-01 19:29:59 +02:00
2015-11-27 20:28:13 +01:00
2015-11-27 19:19:36 +01:00
2015-11-27 19:19:36 +01:00
2015-11-27 19:19:36 +01:00
2015-11-27 19:19:36 +01:00
2015-11-27 19:19:36 +01:00
2015-11-16 22:09:36 +01:00
2015-11-10 17:31:31 +01:00
2015-11-27 19:19:36 +01:00
2015-10-27 13:45:53 +01:00
2015-11-27 19:19:36 +01:00
2015-10-27 13:45:53 +01:00
2015-11-27 19:19:36 +01:00
2015-11-27 19:19:36 +01:00
2015-10-27 13:45:53 +01:00
2015-11-16 22:09:36 +01:00
2015-10-27 13:45:53 +01:00
2015-11-09 20:01:06 +01:00
2015-11-17 00:52:10 +01:00
2015-10-25 13:19:18 +01:00
2015-11-29 08:59:40 +01:00
2015-11-27 19:19:36 +01:00
2015-11-17 07:06:08 +01:00
2015-11-27 19:19:36 +01:00
2015-11-30 19:30:03 +01:00
2015-10-25 13:19:18 +01:00
2015-12-01 19:29:59 +02:00
2015-11-10 17:31:31 +01:00
2015-10-27 13:25:56 +01:00
2015-11-27 19:19:36 +01:00
2015-11-27 20:33:04 +01:00
2015-11-10 17:31:31 +01:00
2015-11-12 17:57:04 +01:00
2015-12-01 00:25:47 +01:00
2015-11-27 19:19:36 +01:00
2015-11-18 23:09:02 +01:00
2015-11-16 15:25:42 +01:00
2015-11-05 13:44:01 +01:00
2015-11-27 19:19:36 +01:00
2015-10-26 01:24:38 +01:00
2015-11-27 19:19:36 +01:00
2015-11-05 13:44:06 +01:00