Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
Showing results for
how to send logs from TG585v7 to syslog server ?
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Plusnet Community
- :
- Forum
- :
- Help with my Plusnet services
- :
- Broadband
- :
- Re: how to send logs from TG585v7 to syslog server...
how to send logs from TG585v7 to syslog server ?
26-07-2015 11:38 AM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
I have a PN TG585v7 (8.2.6.5). I would like to transmit its logs in real-time to a server on my network.
I can do it one-shot from the CLI like this
However I would like to do it in real-time. I've searched and found this but I am not having any success.
Does anyone know how to do this ?
I can do it one-shot from the CLI like this
{admin}=> systemlog send hist=enabled dest=10.255.255.255
However I would like to do it in real-time. I've searched and found this but I am not having any success.
Does anyone know how to do this ?
Message 1 of 6
(1,254 Views)
5 REPLIES 5
Re: how to send logs from TG585v7 to syslog server ?
26-07-2015 12:16 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
This may help:
http://npr.me.uk/telnet.html#syslog
If you're hoping for SNMP type reports you'll be disappointed, R8 firmware for that router doesn't have a SNMP server.
IIRC R7 firmware may have a SNMP server.
http://npr.me.uk/telnet.html#syslog
If you're hoping for SNMP type reports you'll be disappointed, R8 firmware for that router doesn't have a SNMP server.
IIRC R7 firmware may have a SNMP server.
Message 2 of 6
(903 Views)
Re: how to send logs from TG585v7 to syslog server ?
26-07-2015 1:41 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
Thanks, although I don't have a "syslog" command:
{admin}=>help
Following commands are available :
help : Displays this help information
menu : Displays menu
? : Displays this help information
exit : Exits this shell.
.. : Exits group selection.
saveall : Saves current configuration.
ping : Send ICMP ECHO_REQUEST packets.
traceroute : Send ICMP/UDP packets to trace the ip path.
Following command groups are available :
firewall service connection cwmp dhcp
dns dsd dyndns eth atm
config debug env expr hostmgr
ids igmp interface ip ipqos
label language mbus memm mlp
nat ppp pptp script sntp
software statecheck system systemlog tls
upgrade upnp user wireless xdsl
{admin}=>
Message 3 of 6
(903 Views)
Re: how to send logs from TG585v7 to syslog server ?
26-07-2015 6:22 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
Quote from: starfry Thanks, although I don't have a "syslog" command:
In that case I think you're out of luck with that router, or you could try a earlier R7 firmware to see if that runs a SNMP server.
As suggested in your link, you could try a telnet script to periodically request the log, with the command you have, but I suspect that will keep reproducing a lot of the same information each time it's run.
You can find details of using a windows telnet scrip here:
http://npr.me.uk/scripting.html
If using linux, have a look at using "spawn" and "netcat" (nc), I've used those commands successfully in the past for telnet scripts run on a Raspberry Pi.
Message 4 of 6
(903 Views)
Re: how to send logs from TG585v7 to syslog server ?
26-07-2015 8:57 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
Hi, thanks. I've done a fair bit of telnet scripting for this router already (see here if you're interested).
My rationale for doing this was to get to the bottom of some spontaneous reboots but the local log doesn't seem to persist across reboots despite my trying. I can get the ad-hoc method to work fine but it requires messing about and won't help capture those final messages prior to a reboot.
Maybe it's time to change routers. I have a tp-link td-w8961 that I can swap in. I've been reluctant so far after investing so much effort in getting to the bottom of how much of the speedtouch works, despite it being so bad in many respects.
My rationale for doing this was to get to the bottom of some spontaneous reboots but the local log doesn't seem to persist across reboots despite my trying. I can get the ad-hoc method to work fine but it requires messing about and won't help capture those final messages prior to a reboot.
Maybe it's time to change routers. I have a tp-link td-w8961 that I can swap in. I've been reluctant so far after investing so much effort in getting to the bottom of how much of the speedtouch works, despite it being so bad in many respects.
Message 5 of 6
(903 Views)
Re: how to send logs from TG585v7 to syslog server ?
27-07-2015 8:49 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
Well I've played around a bit more today. The "systemlog send" method that I described before sends the entire log but it does so without line breaks. This requires a bit of messing around on the server to store the log cleanly. I do, however, now have a listener set up that dumps whatever the router sends into the systemd journal. I can use a timer or cron job to kick the router (via telnet) into sending the current log and then flushing.
I'd still be interested in knowing if there is a proper way to configure the router to send to a syslog server in real time. Any PN staffers (or anyone else!) know the answer to this?
I'd still be interested in knowing if there is a proper way to configure the router to send to a syslog server in real time. Any PN staffers (or anyone else!) know the answer to this?
Message 6 of 6
(903 Views)
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Plusnet Community
- :
- Forum
- :
- Help with my Plusnet services
- :
- Broadband
- :
- Re: how to send logs from TG585v7 to syslog server...