Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
**scribe** is a **syslog-ng** and **logrotate** installer for ASUS routers running **Asuswrt-Merlin**

## v3.2.9
### Updated on 2026-Jan-30
### Updated on 2026-Jan-31

## Getting Started

Expand Down
4 changes: 2 additions & 2 deletions init.d/rc.func.syslog-ng
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/sh -
#
# NB: rc.func only runs PRECMD on "start"
# Last Modified: 2026-Jan-27
# Last Modified: 2026-Jan-31
# VERSION="3.1.5"
#-------------------------------------------

Expand Down Expand Up @@ -44,7 +44,7 @@ kill_logger()
if [ ! -f "$syslogNG_StartSEM_FPath" ]
then
$loggerCmd -t "$logTagStr" $logPrioNum "Calling Scribe SysLogNgStartDelay..."
echo "150" > "$syslogNG_WaitnSEM_FPath"
[ ! -f "$syslogNG_WaitnSEM_FPath" ] && echo "150" > "$syslogNG_WaitnSEM_FPath"
nohup "$scribeScriptFPath" SysLogNgStartDelay >/dev/null 2>&1 &
exit 1
fi
Expand Down
25 changes: 13 additions & 12 deletions scribe.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
# curl --retry 3 "https://raw.githubusercontent.com/AMTM-OSR/scribe/master/scribe.h" -o "/jffs/scripts/scribe" && chmod 0755 /jffs/scripts/scribe && /jffs/scripts/scribe install
#
##################################################################
# Last Modified: 2026-Jan-30
# Last Modified: 2026-Jan-31
#-----------------------------------------------------------------

################ Shellcheck directives ################
Expand All @@ -35,7 +35,7 @@

readonly script_name="scribe"
readonly scribe_ver="v3.2.9"
readonly scriptVer_TAG="26013023"
readonly scriptVer_TAG="26013123"
scribe_branch="develop"
script_branch="$scribe_branch"

Expand Down Expand Up @@ -1817,7 +1817,7 @@ Menu_Restart()
printf "\n ${white}%s ${red}NOT${white} running! ${yellow}Starting...${std}\n" "$sng"
$S01sng_init start
fi
sleep 1 #Allow time to start up#
sleep 2 #Allow time to start up#
Restart_uiScribe
}

Expand Down Expand Up @@ -2117,7 +2117,7 @@ Update_Version()

menu_forgrnd()
{
restrt=false
local doStart=false
if SyslogNg_Running
then
warning_sign
Expand All @@ -2126,20 +2126,20 @@ menu_forgrnd()
printf " Debugging mode is intended for troubleshooting when\n"
printf " %s will not start.\n\n" "$sng"
printf " Are you certain you wish to start debugging mode [y|n]? $std"
if ! Yes_Or_No; then return; fi
restrt=true
if ! Yes_Or_No; then return 1; fi
doStart=true
fi
printf "\n$yellow NOTE: If there are no errors, debugging mode will\n"
printf " continue indefinitely. If this happens, type\n"
printf " <Ctrl-C> to halt debugging mode output.\n\n"
PressEnterTo "start:"
if "$restrt"
if "$doStart"
then $S01sng_init stop; echo
fi
trap '' 2
$sng_loc -Fevd
trap - 2
if "$restrt"
if "$doStart"
then echo ; $S01sng_init start
fi
echo
Expand Down Expand Up @@ -2980,13 +2980,16 @@ case "$action" in
then
Menu_Restart
Menu_Status
cliParamCheck=false
fi
;;

#Stop syslog-ng & logrotate Cron Job#
stop)
if SyslogNg_Running || "$usbUnmountCaller"
then Menu_Stop
then
Menu_Stop
cliParamCheck=false
fi
;;

Expand Down Expand Up @@ -3077,9 +3080,7 @@ esac
if ! "$scribeInstalled" && "$cliParamCheck"
then
printf "\n${yellow} %s ${white}is NOT installed, command \"%s\" not valid!${std}\n\n" "$script_name" "$action"
elif ! SyslogNg_Running && \
"$cliParamCheck" && \
[ "$action" != "stop" ]
elif ! SyslogNg_Running && "$cliParamCheck"
then
printf "\n${yellow} %s ${white}is NOT running, command \"%s\" not valid!${std}\n\n" "$sng" "$action"
else
Expand Down
18 changes: 10 additions & 8 deletions syslog-ng.share/syslog-ng.conf-scribe
Original file line number Diff line number Diff line change
Expand Up @@ -35,24 +35,26 @@ source src {
recursive(no) max-files(1) follow_freq(1)
log_iw_size(1200) log_fetch_limit(1000) flags(syslog-protocol));
internal();
# uncomment this line to pass all network messages through syslog-ng filters #
#OFF# udp(ip(192.168.x.y) port(514));
# uncomment the line below to pass ALL network log messages through syslog-ng filters #
#OFF# udp(port(514) flags(syslog-protocol));
};

# if you only want to pass network messages through some syslog-ng filters, uncomment the source line below
# then add "source(net);" to the log statement in any filter you want to pass network messages through
#OFF# source net { udp(ip(192.168.x.y) port(514)); };
# then add "source(s_net);" to the log statement in any filter you want to pass network messages through
#OFF# source s_net { udp(port(514) flags(syslog-protocol)); };

# set the filename for the default log file - anything not filtered out will end up here
# set the filename for the default log file - anything not filtered out will end up here #
destination messages { file("/opt/var/log/messages"); };

# to send log messages to the local network, uncomment the destination line below
# to send log messages to the local network, uncomment the destination line below #
# then add "destination(log_server);" to the log statement in any filter you want to pass network messages through
#OFF# destination log_server { udp("192.168.x.y" port(514)); };

log {
source(src);
#OFF# source(net); # uncomment this and "source net" function above to get udp log messages from local network
# uncomment this and "source s_net" function above to get udp log messages from local network #
#OFF# source(s_net);
destination(messages);
#OFF# destination(log_server); # uncomment this and "destination log_server" function above to send udp log messages to local network
# uncomment this and "destination log_server" function above to send udp log messages to local network #
#OFF# destination(log_server);
};