Change the output format for journalctl

The "-o cat" removes the timestamp, making it pretty useless when we
want to investigate dropped packets based on time.

Change-Id: I1534a39e01ae9ade52ef0c8cd353d49ab26b68f8
This commit is contained in:
Cédric Jeanneret 2022-08-08 08:40:37 +02:00
parent dcbce14875
commit ffb9f0e5c1
1 changed files with 1 additions and 1 deletions

View File

@ -24,7 +24,7 @@
fi
done;
command -v nft && nft list ruleset &>/var/log/extra/nftables.txt;
journalctl -p warning -t kernel -o cat -g DROPPING --no-pager &> /var/log/extra/dropped-packets.txt;
journalctl -p warning -t kernel -o short -g DROPPING --no-pager &> /var/log/extra/dropped-packets.txt;
(for NS in $(ip netns list | cut -f 1 -d " "); do
for ipv in 4 6; do
echo "==== $NS (${ipv})====";