I am looking to send logs to a NAS device for the first time and found no details in the manual or the router UI about this.
Does Peplink use BSD or IETF log formats?
Should I use tcp or udp? The NAS defaults to UDP
Can the logs be sent securely? The NAS can export a certificate, where/how would I import it?
What is the schedule for sending logs to the syslog server? I ask because the NAS is scheduled to shut down at night. Will that be fatal, or will the router just try to send the logs again should there be a failure because the NAS is off?
I know of two types of logs, the Event log and URL logs. If they are both sent to the same NAS box, will they appear on the NAS as one file/log or two?
UDP is the standard for syslog - lower overheads for the traffic faster sending etc
Yes if sent over a VPN - otherwise its should be considered insecure.
Syslog isn’t scheduled - its a live feed of events and syslog events are sent as they occur. If the syslog server isn’t available the logs will simply not be recorded.
That’s down to your syslog server configuration. On some you can set match patterns to route them into specific logs/views, on others its just a big bucket of logs that you need to process manually in a third party product (like Splunk). Others will let you configure the use different ports for different activities so port 514 for events and 515 for URL logging, with those logs stored in different files.
That the log feed is constant is a concern. If the NAS log receiver is down overnight, I would worry about how the router responds to the log events generated overnight that can not be shipped to the syslog server. Hopefully it doesn’t log those errors too, as I could see that causing a never-ending loop. Will have to test…
No concern there. Syslog transmission is send and forget from the perspective of the client router. Its the responsibility of the syslog owner to guarantee uptime/availability and to spot anomalies (such as a device not sending logs). That’s why there is such a big market for cloud based log retention services…
I use Graylog to collect logs from our Balance One, AP One AC minis and other devices on the network. Graylog is available as a VM appliance for easy deployment. Using regex and grok patterns, it’s easy to create custom searches (with custom actions) for tracking network events. I have a grok pattern that creates a chart of logged in VPN users, as well as another one which I use to display the monthly VPN logins. Great for glanceable info on the web dashboard.
I’m trying to set up a firewall rule to let syslogs from a Peplink to get to a syslog server inside a bridged firewall. Peplink is sending from UDP 34117 to UDP 514. I don’t understand this. Does anyone know if this is a consistent assignment by Peplink?
Thanks in advance
David
Thank you very much for the fast response and for the clarification Martin. I’d understood the receiving port but didn’t know the source port would be random.