Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update eks-log-collector.sh #1915

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions log-collector-script/linux/eks-log-collector.sh
Original file line number Diff line number Diff line change
Expand Up @@ -567,7 +567,7 @@ get_networking_info() {
timeout 75 conntrack -L -f ipv6 >> "${COLLECT_DIR}"/networking/conntrack6.txt

# ifconfig
timeout 75 ifconfig > "${COLLECT_DIR}"/networking/ifconfig.txt
command -v ifconfig && timeout 75 ifconfig || timeout 75 ip addr show > "${COLLECT_DIR}"/networking/ifconfig.txt

# ip rule show
timeout 75 ip rule show > "${COLLECT_DIR}"/networking/iprule.txt
Expand Down Expand Up @@ -692,10 +692,10 @@ get_system_services() {
timeout 75 top -b -n 1 > "${COLLECT_DIR}"/system/top.txt 2>&1
timeout 75 ps fauxwww --headers > "${COLLECT_DIR}"/system/ps.txt 2>&1
timeout 75 ps -eTF --headers > "${COLLECT_DIR}"/system/ps-threads.txt 2>&1
timeout 75 netstat -plant > "${COLLECT_DIR}"/system/netstat.txt 2>&1
command -v netstat && timeout 75 netstat -plant || timeout 75 ss -plant > "${COLLECT_DIR}"/system/netstat.txt 2>&1
timeout 75 cat /proc/stat > "${COLLECT_DIR}"/system/procstat.txt 2>&1
timeout 75 cat /proc/[0-9]*/stat > "${COLLECT_DIR}"/system/allprocstat.txt 2>&1

timeout 75 nstat -rsz > "${COLLECT_DIR}"/system/nstat.txt 2>&1
# collect pids which have large environments
echo -e "PID\tCount" > "${COLLECT_DIR}/system/large_environments.txt"
for i in /proc/*/environ; do
Expand Down