summaryrefslogtreecommitdiff
path: root/sshguard/sshguard-journalctl
diff options
context:
space:
mode:
authorDeposite Pirate2018-09-16 23:29:24 +0200
committerDeposite Pirate2018-09-16 23:29:24 +0200
commit569e598d38adb1918d127ee31af1cd332b072dcf (patch)
tree23a7204866591100db57f3acac53cd410ea8d3e4 /sshguard/sshguard-journalctl
Initial commit.HEADmaster
Diffstat (limited to 'sshguard/sshguard-journalctl')
-rw-r--r--sshguard/sshguard-journalctl4
1 files changed, 4 insertions, 0 deletions
diff --git a/sshguard/sshguard-journalctl b/sshguard/sshguard-journalctl
new file mode 100644
index 0000000..8a800ff
--- /dev/null
+++ b/sshguard/sshguard-journalctl
@@ -0,0 +1,4 @@
+#!/bin/sh
+SSHGUARD_OPTS=$1
+shift
+LANG=C /usr/bin/journalctl -afb -p info -n1 -o cat "$@" | /usr/bin/sshguard -l- $SSHGUARD_OPTS