Skip to content

Commit

Permalink
export systemd journal for services
Browse files Browse the repository at this point in the history
Not sure why we have not thought about this...

Signed-off-by: Asad Sajjad Ahmed <[email protected]>
  • Loading branch information
asadsa92 committed Sep 2, 2024
1 parent 5e40479 commit a4ab744
Showing 1 changed file with 23 additions and 1 deletion.
24 changes: 23 additions & 1 deletion varnishgather
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ TOPDIR=$(mktemp -d ${TMPDIR:-/tmp}/varnishgather.XXXXXXXX)
ID="$(cat /etc/hostname)-$(date +'%Y%m%d-%H%M%S')"
RELDIR="varnishgather-$ID"
ORIGPWD=$PWD
VERSION=1.101
VERSION=1.102
USERID=$(id -u)
PID_ALL_VARNISHD=$(pidof varnishd 2> /dev/null)
PID_ALL_VARNISHD_COMMA=$(pidof varnishd 2> /dev/null | sed 's/ /,/g')
Expand Down Expand Up @@ -687,6 +687,28 @@ capturelog /var/log/yum.log
capturelog /var/log/dnf.log
capturelog /var/log/user.log

run journalctl --since=-1w -u vac.service
run journalctl --since=-1w -u varnish.service
run journalctl --since=-1w -u varnish-agent.service
run journalctl --since=-1w -u varnish-controller-agent.service
run journalctl --since=-1w -u varnish-controller-api-gw.service
run journalctl --since=-1w -u varnish-controller-brainz.service
run journalctl --since=-1w -u varnish-controller-nats.service
run journalctl --since=-1w -u varnish-controller-ui.service
run journalctl --since=-1w -u varnish-controller-router.service
run journalctl --since=-1w -u varnish-discovery.service
run journalctl --since=-1w -u varnish-traffic-router.service
run journalctl --since=-1w -u vcs.service
run journalctl --since=-1w -u vcs-agent.service
run journalctl --since=-1w -u vstatd.service
run journalctl --since=-1w -u vstatdprobe.service

run journalctl --since=-1h -u broadcaster.service
run journalctl --since=-1h -u varnishlog-errors.service
run journalctl --since=-1h -u varnishncsa.service
run journalctl --since=-1h -u vha-agent.service
run journalctl --since=-1h -u irqbalance.service

# ip tables
if (lsmod | grep ip_tables > /dev/null); then
run iptables-save
Expand Down

0 comments on commit a4ab744

Please sign in to comment.