What's new

uiScribe uiScribe - Custom System Log page for "scribed" logs

  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

I knew they happened right on the hour. The line that concerned me was "Follow-mode file source not found, deferring open; filename='/var/lib/logrotate.status'" , but I suppose it's normal, also, from what you guys say, and that's good enough for me.
thanks again,
jts
Right, it's just saying the /var/lib/logrotate.status file doesn't exist, so it can't open it. If it gets written to, it will open it and read from it. You can eliminate the message by just using
Code:
touch /var/lib/logrotate.status
to create an empty file.
 
Right, it's just saying the /var/lib/logrotate.status file doesn't exist, so it can't open it. If it gets written to, it will open it and read from it. You can eliminate the message by just using
Code:
touch /var/lib/logrotate.status
to create an empty file.

Thanks, I will do that. I appreciate it.
jts
 
here are some extra base filters
use nano in ssh and
nano /jffs/scripts/syslog-ng.d-filters
copy and paste into terminal and ctrl-x to save
Code:
#!/bin/sh
cat > /opt/etc/syslog-ng.d/diversion <<'EOF'
# log all diversion and uiDivStats logs to diversion.log

destination d_diversion {
    file("/opt/var/log/diversion.log");
};

filter f_diversion {
    program("Diversion") or
    program("uiDivStats");
};

log {
    source(src);
    filter(f_diversion);
    destination(d_diversion);
    flags(final);
};

#eof
EOF
chmod 600 /opt/etc/syslog-ng.d/diversion

cat > /opt/etc/syslog-ng.d/ethernet <<'EOF'
# log ethernet change to /opt/var/log/ethernet.log only

destination d_ethernet {
    file("/opt/var/log/ethernet.log");
};

filter f_kernel {
    program("kernel");
};

filter f_ethernet {
    message("eth1") or
    message("eth2") or
    message("eth3") or
    message("eth4") or
    message("eth5") or
    message("eth6") or
    message("eth7") or
    message("eth8") or
    message("br0:");
};

log {
    source(src);
    filter(f_kernel);
    filter(f_ethernet);
    destination(d_ethernet);
    flags(final);
};

#eof
EOF
chmod 600 /opt/etc/syslog-ng.d/ethernet

cat > /opt/etc/syslog-ng.d/openvpn <<'EOF'
# log all openvpn server and client logs into one file - /opt/var/log/openvpn.log and stop processing openvpn logs

destination d_openvpn {
    file("/opt/var/log/openvpn.log");
};

filter f_openvpn {
    program("ovpn-server1") or
    program("ovpn-server2") or
    program("ovpn-client1") or
    program("ovpn-client2") or
    program("ovpn-client3") or
    program("ovpn-client4") or
    program("ovpn-client5") or
    program("openvpn-routing");
};

log {
    source(src);
    filter(f_openvpn);
    destination(d_openvpn);
    flags(final);
};

#eof
EOF
chmod 600 /opt/etc/syslog-ng.d/openvpn

cat > /opt/etc/syslog-ng.d/pixelserv <<'EOF'
# log all pixelserv-tls logs to /opt/var/log/pixelserv.log and stop processing pixelserv-tls logs

destination d_pixelserv {
    file("/opt/var/log/pixelserv.log");
};

filter f_pixelserv {
    program("pixelserv-tls");
};

log {
    source(src);
    filter(f_pixelserv);
    destination(d_pixelserv);
    flags(final);
};

#eof
EOF
chmod 600 /opt/etc/syslog-ng.d/pixelserv
then copy and paste sh /jffs/scripts/syslog-ng.d-filters

next the logrotate
same
nano /jffs/scripts/logrotate.d-filters
Code:
#!/bin/sh
cat > /opt/etc/logrotate.d/diversion <<'EOF'
/opt/var/log/diversion.log {
    postrotate
        /usr/bin/killall -HUP syslog-ng
    endscript
}
EOF
chmod 600 /opt/etc/logrotate.d/diversion

cat > /opt/etc/logrotate.d/ethernet <<'EOF'
/opt/var/log/ethernet.log {
    postrotate
        /usr/bin/killall -HUP syslog-ng
    endscript
}
EOF
chmod 600 /opt/etc/logrotate.d/ethernet

cat > /opt/etc/logrotate.d/openvpn <<'EOF'
/opt/var/log/openvpn.log {
    monthly
    rotate 9
    postrotate
        /usr/bin/killall -HUP syslog-ng
    endscript
}
EOF
chmod 600 /opt/etc/logrotate.d/openvpn

cat > /opt/etc/logrotate.d/pixelserv <<'EOF'
/opt/var/log/pixelserv.log {
    rotate 9
    postrotate
        /usr/bin/killall -HUP syslog-ng
    endscript
}
EOF
chmod 600 /opt/etc/logrotate.d/pixelserv
then sh /jffs/scripts/logrotate.d-filters

to top it off you can use options LR and RS inside scribe to get things started

force up date uiscribe as i am not sure if you will see new logs present yet
After doing this my diversion.log section only shows this -
Jul 28 00:26:07 RT-AC68U-20E0 Diversion: restarted Dnsmasq to apply settings
Jul 28 00:26:14 RT-AC68U-20E0 Diversion: restarted Dnsmasq to apply settings
 
Hi,
new to this plugins, just want to ask. I've lighttpd installed and i want to incorporated in uiscribe
understand there's some example in examples folder, but i cant find any step inside also the description of it (eg. what is "src" ref)
is there any step by step example that i need to do other than making the file in syslog.d folder?

thanks
 
Hi,
new to this plugins, just want to ask. I've lighttpd installed and i want to incorporated in uiscribe
understand there's some example in examples folder, but i cant find any step inside also the description of it (eg. what is "src" ref)
is there any step by step example that i need to do other than making the file in syslog.d folder?
Scribe is the script that installs syslog-ng to replace the built-in daemon. uiScribe is a script that installs the add on to display in the GUI the logs created by syslog-ng. syslog-ng.d is the folder that contains the configuration files for syslog-ng; scribe puts several examples of configuration files in the examples folder.

So start with the scribe thread instead, and get scribe and syslog-ng running. There you will find, for example, the src source. Then come over to uiScribe to display them in the GUI.
 
Would you want it to force a log rotate, or delete the existing log file contents? Would you want it to apply to only the log file(s) you have enabled for the WebUI, or all of them?
Hi Jack,

To delete the existing log file contents and only to the log file(s) I have enabled for the WebUI.

Thanks
 
v1.4.0 is now available
Changelog:
  • NEW: Configure which logs to display from the WebUI
  • NEW: Check for updates to uiScribe in the WebUI
  • IMPROVED: WebUI will now only refresh logs that are "expanded". This provides a much more responsive experience
  • CHANGED: uiScribe now waits for Entware and NTP to be available before starting
 
Do any other users want this feature?
No. logrotate can be configured for each log as needed / wanted / desired without loosing history.
 
v1.4.0 is now available
Changelog:
  • NEW: Configure which logs to display from the WebUI
  • NEW: Check for updates to uiScribe in the WebUI
  • IMPROVED: WebUI will now only refresh logs that are "expanded". This provides a much more responsive experience
  • CHANGED: uiScribe now waits for Entware and NTP to be available before starting
Working as described... Good job Jack.
 
v1.4.0 is now available
Changelog:
  • NEW: Configure which logs to display from the WebUI
  • NEW: Check for updates to uiScribe in the WebUI
  • IMPROVED: WebUI will now only refresh logs that are "expanded". This provides a much more responsive experience
  • CHANGED: uiScribe now waits for Entware and NTP to be available before starting

After updating, my page is broken. I uninstalled and reinstalled multiple times but no luck.

1606489904549.png
 
Check for any errors in the browser console please.

Unrelated but your qos looks in a bad way

I started getting those qos errors the last 2 days and was about to post in that thread.

Here's the Safari console errors:

1606490592326.png
 

Latest threads

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Top