I use the syslog configuration to send all logs to a remote syslog server.
syslog {
global {
facility all {
level warning
}
}
host 10.0.3.4 {
facility all {
level all
}
format {
octet-counted
}
port 5140
}
}
I have a local script that runs every few minutes and it creates a log file when it runs. I want to include that log file so that it’s lines are sent to the remote syslog server as well. The log file is output in the directory of the running script, but I can put it anywhere if a different location is needed. Right now it’s written to:
/config/scripts/dns-processor.log
Is there any way to tell the syslog system to monitor that log and process it like all of the default logs processed by syslog?