You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Just used the code from your README with a watch on /var/log/syslog. No events are being sent out
require Logger
defmodule Fail2ban.Watcher do
use GenServer
def start_link(name \\ nil) do
GenServer.start_link(__MODULE__, nil, [name: name])
end
def init(state) do
watch()
{:ok, state}
end
def watch do
Logger.info "Setting up syslog listener"
{:ok, receiver_pid} = Fail2ban.Receiver.start_link
Fwatch.watch_file "/var/log/syslog", fn _path, events ->
IO.inspect events # Nothing printed upon modifying syslog
end
end
end
The text was updated successfully, but these errors were encountered:
Just used the code from your README with a watch on
/var/log/syslog
. No events are being sent outThe text was updated successfully, but these errors were encountered: