-
Notifications
You must be signed in to change notification settings - Fork 15
How to collect logs
Dilshat edited this page May 10, 2018
·
13 revisions
In case of troubles with agent, you can collect logs on a resource host by executing the following commands:
journalctl -u subutai.service --since "2015-01-10" --until "2015-01-11 03:00"
where date is in "YYYY-MM-DD HH:MM:SS" format.
You can set timezone for your convenience:
timedatectl set-timezone "Asia/Almaty"
--since and --until excepts expressions in human readable format like:
journalctl -u subutai.service --since "1 hour ago" --until "10 minutes ago"
Also you can filter logs by level of severity using -p switch. There are the following log levels:
0: emerg
1: alert
2: crit
3: err
4: warning
5: notice
6: info
7: debug
e.g. journalctl -p err
The returned logs will contain also logs of higher severity (i.e. err log will contain crit, alert and emerg)
Using syslog: cat /var/log/syslog | grep subutai.service