question

wangying avatar image
wangying asked

Game server log not exist

A server‘s log which run for 17hours was lost . The server was start at 3/5/2018. Is there any way to confirm that log was not writen or there is some limit for log.

10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

·
brendan avatar image
brendan answered

There are only three possible cases that would prevent the log file for a hosted game server to not be captured:

1. There was no log written.

2. The log was not written to the correct location (specified by log_file_path in the command line parameters passed to the executable on start).

3. The log file was too large (think 1GB+), causing the server to time out on trying to upload the full file before having to shut down.

2 comments
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

wangying avatar image wangying commented ·

I can get log from the same executable server which doesn't run for too long. So I thought it might be case 3.

Is it possible to get a large log.

0 Likes 0 ·
brendan avatar image brendan wangying commented ·

If the log is getting into the GB range, then it's going to take too long to copy, once your executable shuts down. What you may want to do is explicitly write the log file to the Content service (https://api.playfab.com/documentation/admin/method/GetContentUploadUrl) as part of the server logic. It's only once the exe has stopped that we consider the server done and start processing the log file.

0 Likes 0 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.