Hello,
I have an Asus RT-AC86U with Merlin 386.2_6, scribe v2.4.3 from amtm
I think it would be great to have a separate pppd.log file in syslog-ng.
This is important to track past disconnections from the provider (and to debug them)
I wrote this file, it works but not entirely:
file /opt/etc/syslog-ng.d/pppd
now the log file /opt/var/log/pppd.log contains the pppd logs, but it lacks the first pppd connection on router startup
In other words, If I stop and start the connection from the WebUI it gets logged into /opt/var/log/pppd.log, but if I restart the router, the first connection gets logged into /opt/var/log/messages:
Any idea why this happens?
Thank you,
Roberto
I have an Asus RT-AC86U with Merlin 386.2_6, scribe v2.4.3 from amtm
I think it would be great to have a separate pppd.log file in syslog-ng.
This is important to track past disconnections from the provider (and to debug them)
I wrote this file, it works but not entirely:
file /opt/etc/syslog-ng.d/pppd
destination d_pppd {
file("/opt/var/log/pppd.log");
};
filter f_pppd {
program("pppd")
};
log {
source(src);
filter(f_pppd);
destination(d_pppd);
flags(final);
};
#eof
now the log file /opt/var/log/pppd.log contains the pppd logs, but it lacks the first pppd connection on router startup
In other words, If I stop and start the connection from the WebUI it gets logged into /opt/var/log/pppd.log, but if I restart the router, the first connection gets logged into /opt/var/log/messages:
May 5 07:05:15 avahi-daemon[1781]: Alias name "RT-AC86U" successfully established.
May 5 07:05:15 custom_script: Running /jffs/scripts/services-start
May 5 07:05:15 scMerlin: Waiting for NTP to sync...
May 5 07:05:16 pppd[2023]: pppd 2.4.7 started by admin, uid 0
May 5 07:05:16 pppd[2023]: Connect: ppp0 <--> vlan835
May 5 07:05:16 kernel: SCSI subsystem initialized
May 5 07:05:17 kernel: scsi 0:0:0:0: Direct-Access Kingston DataTraveler 3.0 PMAP PQ: 0 ANSI: 6
May 5 07:05:17 kernel: sd 0:0:0:0: Attached scsi generic sg0 type 0
May 5 07:05:18 cfg_server: event: wl_chanspec_changed_action
May 5 07:05:18 cfg_server: skip event due static chan
May 5 07:05:19 pppd[2023]: CHAP authentication succeeded
May 5 07:05:19 pppd[2023]: peer from calling number A4:7B:2C:5A:9B:62 authorized
May 5 07:05:19 wsdd2[1902]: error: wsdd-mcast-v4: wsd_send_soap_msg: send
May 5 07:05:19 wsdd2[1902]: error: wsdd-mcast-v4: wsd_send_soap_msg: send
May 5 07:05:19 pppd[2023]: local IP address 151.40.xx.59
May 5 07:05:19 pppd[2023]: remote IP address 151.7.xx.15
May 5 07:05:19 pppd[2023]: primary DNS address 151.5.xx.150
May 5 07:05:19 pppd[2023]: secondary DNS address 151.5.xx.15
Any idea why this happens?
Thank you,
Roberto