add new log Topic for Dhcp Script logging vs normal scripts logging
Posted: Fri Nov 20, 2020 9:39 pm
hi,
Goal: Have an extra Log -> "Topics" tag added to dhcp-server run scripts. (ie like "dhcp" , so that we can distinguish them in /system logging action vs normal log entries from /sys script , scripts).
we have a script under /ip dhcp-server that makes a log of the "Active Host Name" of every dhcp-client (so that we retain this info in our remote logging system, as some customers want this data).
We also have several standard scripts ie /sys script with various :log info "xyz" entries for logging the status of when scripts are trigged by scheduler.
the issue is with a /system logging add action=scriptDiskLOG topics=script , our logs get filled up with all the /ip dhcp-server logs. (and there is no way to distinguish/sort them in /system logging action, as they both only have the log Topics of "script,info" - thus if you exclude one, you exclude both, in terms of /system logging action topics=script ).
(i hope im explaining this well, if not i can rephrase)
thanks
Goal: Have an extra Log -> "Topics" tag added to dhcp-server run scripts. (ie like "dhcp" , so that we can distinguish them in /system logging action vs normal log entries from /sys script , scripts).
we have a script under /ip dhcp-server that makes a log of the "Active Host Name" of every dhcp-client (so that we retain this info in our remote logging system, as some customers want this data).
We also have several standard scripts ie /sys script with various :log info "xyz" entries for logging the status of when scripts are trigged by scheduler.
the issue is with a /system logging add action=scriptDiskLOG topics=script , our logs get filled up with all the /ip dhcp-server logs. (and there is no way to distinguish/sort them in /system logging action, as they both only have the log Topics of "script,info" - thus if you exclude one, you exclude both, in terms of /system logging action topics=script ).
(i hope im explaining this well, if not i can rephrase)
thanks