Hmm, the thing is that it knows “what should be sanitized” based on the config…
I can add a warning for the un-cleared long ID formats (i.e. IDIDID-IDIDID-IDIDID-IDIDID…), since it has a distinct pattern, but I can’t do anything about other such stuff, like folder/device names, partial IDs, etc. since there’s no (known to me) way to accurately detect them without knowing them in advance first.
Would you mind to add an additional “modus” to your script to just redact the given config.xml ? (Or maybe a question to the user, if the config.xml should also be redacted)
Pre-posting my config, I need to search/replace it manually like:
Reading the redacted logs, I think, they’re not very well readable, because of the looong Device IDID-IDID-IDID-IDID_n’s.
Would it be possible to define just a “ID_n” instead of IDID-IDID-IDID-IDID_n" ?
And the is a small ‘l’ after the folder label. Is this correct?
2018-04-11 13:07:23 Puller (folder "FOLDER_LABEL_1l" (FOLDER_ID_1), file "###"): delete dir: directory is not empty
2018-04-11 13:07:26 Folder "FOLDER_LABEL_1l" (FOLDER_ID_1) isn't making progress. Pausing puller for 16m0s.
2018-04-11 13:23:28 Puller (folder "FOLDER_LABEL_1l" (FOLDER_ID_1), file "###"): delete dir: directory is not empty
2018-04-11 13:23:32 Folder "FOLDER_LABEL_1l" (FOLDER_ID_1) isn't making progress. Pausing puller for 32m0s.
2018-04-11 13:23:35 File "foo\información.png" path has UTF8 encoding conflict with another file; ignoring.
2018-04-11 13:39:07 Established secure connection to IDID-IDID-IDID-IDID_1 at IPv4_1:PORT_0-IPv4_0:PORT_4/FOLDER_ID_9p-server (TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305)
2018-04-11 13:39:07 Device IDID-IDID-IDID-IDID_1 client is "syncthing v0.14.46" named "DEVICE_1" at IPv4_1:PORT_0-IPv4_0:PORT_4/FOLDER_ID_9p-server
2018-04-11 13:39:18 Puller (folder "FOLDER_LABEL_1l" (FOLDER_ID_1), file "###"): delete dir: directory is not empty
2018-04-11 13:39:24 Folder "FOLDER_LABEL_1l" (FOLDER_ID_1) isn't making progress. Pausing puller for 1h4m0s.
2018-04-11 13:41:46 Connection to IDID-IDID-IDID-IDID_1 at IPv4_1:PORT_0-IPv4_0:PORT_4/FOLDER_ID_9p-server closed: writing message: write FOLDER_ID_9p IPv4_1:PORT_0->IPv4_0:PORT_4: wsasend: Eine vorhandene Verbindung wurde vom Remotehost geschlossen.
2018-04-11 13:45:52 Established secure connection to IDID-IDID-IDID-IDID_1 at IPv4_1:PORT_7-IPv4_0:PORT_0/FOLDER_ID_9p-client (TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305)
2018-04-11 13:45:52 Device IDID-IDID-IDID-IDID_1 client is "syncthing v0.14.46" named "DEVICE_1" at IPv4_1:PORT_7-IPv4_0:PORT_0/FOLDER_ID_9p-client
2018-04-11 13:45:52 Connection to IDID-IDID-IDID-IDID_1 at IPv4_1:PORT_7-IPv4_0:PORT_0/FOLDER_ID_9p-client closed: reading length: read FOLDER_ID_9p IPv4_1:PORT_7->IPv4_0:PORT_0: wsarecv: Eine vorhandene Verbindung wurde vom Remotehost geschlossen.
2018-04-11 13:46:52 Established secure connection to IDID-IDID-IDID-IDID_1 at IPv4_1:PORT_8-IPv4_0:PORT_0/FOLDER_ID_9p-client (TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305)
2018-04-11 13:46:52 Device IDID-IDID-IDID-IDID_1 client is "syncthing v0.14.46" named "DEVICE_1" at IPv4_1:PORT_8-IPv4_0:PORT_0/FOLDER_ID_9p-client
better readable, IMHO
2018-04-11 13:07:23 Puller (folder "FL_1l" (FID_1), file "###"): delete dir: directory is not empty
2018-04-11 13:07:26 Folder "FL_1l" (FID_1) isn't making progress. Pausing puller for 16m0s.
2018-04-11 13:23:28 Puller (folder "FL_1l" (FID_1), file "###"): delete dir: directory is not empty
2018-04-11 13:23:32 Folder "FL_1l" (FID_1) isn't making progress. Pausing puller for 32m0s.
2018-04-11 13:23:35 File "foo\información.png" path has UTF8 encoding conflict with another file; ignoring.
2018-04-11 13:39:07 Established secure connection to ID_1 at IPv4_1:PORT_0-IPv4_0:PORT_4/FID_9p-server (TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305)
2018-04-11 13:39:07 Device ID_1 client is "syncthing v0.14.46" named "DEVICE_1" at IPv4_1:PORT_0-IPv4_0:PORT_4/FID_9p-server
2018-04-11 13:39:18 Puller (folder "FL_1l" (FID_1), file "###"): delete dir: directory is not empty
2018-04-11 13:39:24 Folder "FL_1l" (FID_1) isn't making progress. Pausing puller for 1h4m0s.
2018-04-11 13:41:46 Connection to ID_1 at IPv4_1:PORT_0-IPv4_0:PORT_4/FID_9p-server closed: writing message: write FID_9p IPv4_1:PORT_0->IPv4_0:PORT_4: wsasend: Eine vorhandene Verbindung wurde vom Remotehost geschlossen.
2018-04-11 13:45:52 Established secure connection to ID_1 at IPv4_1:PORT_7-IPv4_0:PORT_0/FID_9p-client (TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305)
2018-04-11 13:45:52 Device ID_1 client is "syncthing v0.14.46" named "DEVICE_1" at IPv4_1:PORT_7-IPv4_0:PORT_0/FID_9p-client
2018-04-11 13:45:52 Connection to ID_1 at IPv4_1:PORT_7-IPv4_0:PORT_0/FID_9p-client closed: reading length: read FID_9p IPv4_1:PORT_7->IPv4_0:PORT_0: wsarecv: Eine vorhandene Verbindung wurde vom Remotehost geschlossen.
2018-04-11 13:46:52 Established secure connection to ID_1 at IPv4_1:PORT_8-IPv4_0:PORT_0/FID_9p-client (TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305)
2018-04-11 13:46:52 Device ID_1 client is "syncthing v0.14.46" named "DEVICE_1" at IPv4_1:PORT_8-IPv4_0:PORT_0/FID_9p-client