Difference between revisions of "Logfiles"

From Pandorabox
Jump to navigation Jump to search
(Created page with " Accessing log-files from the pandorabox main-server '''NOTE''': This is reserved for moderators/staff only (feel free to submit your public-key if it isn't installed yet) =...")
 
m
 
Line 48: Line 48:
 
zgrep BuckarooBanzai debug.txt-20210501.gz  
 
zgrep BuckarooBanzai debug.txt-20210501.gz  
 
</syntaxhighlight>
 
</syntaxhighlight>
 +
 +
'''NOTE''': the archives get moved to the long-term storage from time to time (manually)
  
 
[[Category:Server]]
 
[[Category:Server]]

Latest revision as of 09:43, 4 June 2021

Accessing log-files from the pandorabox main-server

NOTE: This is reserved for moderators/staff only (feel free to submit your public-key if it isn't installed yet)

SSH Access

The log-files can be accessed via ssh:

# open ssh connection with "readonly" user
ssh readonly@pandorabox.io
# change to logs-directory
cd /data/pandorabox.io/data/minetest/

The log-files are in a rotation and get gzipped periodically (depending on size/elapsed time)

debug.txt is always the current logfile, for example:

-rw-r--r--  1 root root 228M Jun  4 11:36 debug.txt
-rw-r--r--  1 root root 8.0M Apr  1 02:00 debug.txt-20210401.gz
-rw-r--r--  1 root root  44M Apr  5 19:39 debug.txt-20210405.gz
-rw-r--r--  1 root root  45M Apr 11 05:38 debug.txt-20210411.gz
-rw-r--r--  1 root root  45M Apr 16 01:03 debug.txt-20210415.gz
-rw-r--r--  1 root root  44M Apr 21 10:50 debug.txt-20210421.gz
-rw-r--r--  1 root root  44M Apr 26 13:56 debug.txt-20210426.gz
-rw-r--r--  1 root root  40M May  1 02:00 debug.txt-20210501.gz
-rw-r--r--  1 root root  44M May  6 14:43 debug.txt-20210506.gz
-rw-r--r--  1 root root  48M May 12 13:56 debug.txt-20210512.gz
-rw-r--r--  1 root root  49M May 17 19:10 debug.txt-20210517.gz
-rw-r--r--  1 root root  48M May 24 01:55 debug.txt-20210523.gz
-rw-r--r--  1 root root  55M Jun  1 02:00 debug.txt-20210601.gz

Searching for events

Searching in the active logs;

# search for a player (all actions)
grep BuckarooBanzai debug.txt
# filter by placed blocks
grep BuckarooBanzai debug.txt | grep places

Searching in the gzipped archives:

zgrep BuckarooBanzai debug.txt-20210501.gz

NOTE: the archives get moved to the long-term storage from time to time (manually)