Skip to content

Commit

Permalink
Merge pull request #65 from Akrog/logs-journal
Browse files Browse the repository at this point in the history
Logs journal
  • Loading branch information
openshift-merge-bot[bot] authored Jun 19, 2024
2 parents 580d117 + d4d2727 commit b2eacc4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion collection-scripts/gather_edpm_sos
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ gather_edpm_sos () {
done
fi

SSH sudo "bash -c \"rm -rf $TMPDIR && mkdir $TMPDIR && sos report --batch --tmp-dir=$TMPDIR $SOS_LIMIT\""
SSH sudo "bash -c \"rm -rf $TMPDIR && mkdir $TMPDIR && sos report --batch --all-logs --tmp-dir=$TMPDIR $SOS_LIMIT\""
# shellcheck disable=SC2181
if [ $? -ne 0 ]; then
echo "Failed to run sos report on ${node}, won't retrieve data"
Expand Down
4 changes: 2 additions & 2 deletions collection-scripts/gather_sos
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ else
fi

# Default to some plugins if SOS_ONLY_PLUGINS is not set
SOS_ONLY_PLUGINS="${SOS_ONLY_PLUGINS-block,cifs,crio,devicemapper,devices,iscsi,lvm2,memory,multipath,nfs,nis,nvme,podman,process,processor,selinux,scsi,udev,openstack_edpm}"
SOS_ONLY_PLUGINS="${SOS_ONLY_PLUGINS-block,cifs,crio,devicemapper,devices,iscsi,lvm2,memory,multipath,nfs,nis,nvme,podman,process,processor,selinux,scsi,udev,openstack_edpm,logs}"
if [[ -n "$SOS_ONLY_PLUGINS" ]]; then
SOS_LIMIT="--only-plugins $SOS_ONLY_PLUGINS"
fi
Expand Down Expand Up @@ -80,7 +80,7 @@ gather_node_sos () {
mkdir -p \"${TMPDIR}\" && \
sudo podman rm --force toolbox-osp; \
sudo --preserve-env podman pull --authfile /var/lib/kubelet/config.json registry.redhat.io/rhel9/support-tools && \
toolbox sos report --batch $SOS_LIMIT --tmp-dir=\"${TMPDIR}\" && \
toolbox sos report --batch --all-logs $SOS_LIMIT --tmp-dir=\"${TMPDIR}\" && \
tar --warning=no-file-changed -cJf \"${TMPDIR}/podlogs.tar.xz\" --transform 's,^,podlogs/,' /var/log/pods; [ \$? -lt 2 ]"

# shellcheck disable=SC2181
Expand Down

0 comments on commit b2eacc4

Please sign in to comment.