Collect the logs Skip Navigation

Collect the logs

Use the following command to gather the log files from a Linux device. Log files are stored on the device for 30 days.
You must do this as root.
For RHEL/CentOS:
ps aux > ~/ps.txtph product="Cylance">sudo pmap -x $(ps -e | grep cylancesvc | cut -d ‘ ‘ -f 1) > ~/maps.txt cat /proc/cpuinfo > ~/cpu.txt cat /proc/meminfo > ~/mem.txt cat /proc/mounts > ~/mounts.txt cat /proc/modules > ~/modules.txt cat /proc/slabinfo > ~/slabinfo.txt tar -cvzf cylancelogs-$(date --rfc-3339=’date’).tgz /var/log/messages* /opt/cylance/desktop/log ~/maps.txt ~/cpu.txt ~/mounts.txt ~/modules.txt ~/ps.txt ~/mem.txt ~/slabinfo.txt
For Ubuntu:
ps aux > ~/ps.txt sudo pmap -x $(ps -e | grep cylancesvc | cut -d ‘ ‘ -f 2) > ~/maps.txt cat /proc/cpuinfo > ~/cpu.txt cat /proc/meminfo > ~/mem.txt cat /proc/mounts > ~/mounts.txt cat /proc/modules > ~/modules.txt cat /proc/slabinfo > ~/slabinfo.txt tar -cvzf cylancelogs-$(date --rfc-3339=’date’).tgz /var/log/syslog* /opt/cylance/desktop/log ~/ps.txt ~/maps.txt ~/cpu.txt ~/mounts.txt ~/modules.txt ~/slabinfo.txt ~/mem.txt
For Amazon or SUSE:
ps aux > ~/ps.txt sudo pmap -x $(ps -e | grep cylancesvc | cut -d ' ' -f 2) > ~/maps.txt cat /proc/cpuinfo > ~/cpu.txt cat /proc/meminfo > ~/mem.txt cat /proc/mounts > ~/mounts.txt cat /proc/modules > ~/modules.txt cat /proc/slabinfo > ~/slabinfo.txt tar -cvzf cylancelogs-$(date --rfc-3339='date').tgz /var/log/messages* /opt/cylance/desktop/log ~/ps.txt ~/maps.txt ~/cpu.txt ~/mounts.txt ~/modules.txt ~/slabinfo.txt