Log Agent is an experimental, proof of concept, log processor. Log Agent scans each line of a log file for an explicit string, finds the IP address and in the log line and applies an designated action.
It provides a logagent command line program.
Deno is used to compile the TypeScript and dependent JavaScript files into an executable.
deno task build
This will provide the logagent command in the “bin”
folder in your repository directory.
You can check to make sure logagent works for your
system. The compiled version is self contain and can be copied someplace
in your path.
mkdir -p $HOME/bin
export PATH="$HOME/bin:$PATH"
cp bin/logagent $HOME/bin/
export MANPATH="$MANPATH:$HOME/man"
cp -vR man $HOME/
mkdir $HOME/bin
$PATH = [Environment]::GetEnvironmentVariable("PATH")
[Environment]::SetEnvironmentVariable("PATH", "$PATH;$HOME/bin")
copy ./bin/logagent.exe $HOME/bin/