Skip to content
Snippets Groups Projects
Commit f59f5ed5 authored by Michal 'vorner' Vaner's avatar Michal 'vorner' Vaner
Browse files

Use output of syslog-ng for logs being sent

parent 93da109a
No related branches found
No related tags found
No related merge requests found
......@@ -15,8 +15,8 @@ CERT="/etc/ssl/vorner.pem"
# nice.
sleep $(( $(tr -cd 0-9 </dev/urandom | head -c 8) % 120 ))
# Grep regexp: Month date time hostname something.something daemon
logread | \
# Grep regexp: Month date time hostname daemon
cat /var/log/messages | \
/usr/bin/whatsnew /tmp/logs.last.sha1 | \
grep "^[^ ][^ ]* *[0-9][0-9]* *[0-9:][0-9:]* [^ ][^ ]* [a-z][a-z]*\.[a-z][a-z]* \($DAEMONS\)\(\[[0-9]*\]\|\):" | \
grep "^[^ ][^ ]* *[0-9][0-9]* *[0-9:][0-9:]* [a-z][a-z]* *\($DAEMONS\)\(\[[0-9]*\]\|\):" | \
curl --cacert "$CERT" -T - "$BASEURL$RID" -X POST
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment