Access to arkps/ShooterGame/Saved/Logs/ShooterGame.log via the API

Nitrado now has an official Discord server to bring communities, friends and other gamers together!
Join the Nitrado Community Discord now and share your experiences and knowledge with others!

Click here to go to the Discord Server!
  • Hi all


    I am trying to use the API to access the shootergame log. I have successfully used https://api.nitrado.net/servic…eservers/file_server/list to give me a list of files which provides the restart log but this is not what I am after. I understand that certain areas are locked down on console (this is for PS4) and so RCON etc can't be used but the information I've read everywhere suggests the API can be used to access the file.


    Any thoughts on what I need to put to call shootergame.log rather than /games/ni*******_1/ftproot/restart.log?

  • Code
    1. curl -H 'Authorization: Bearer <token>' 'https://api.nitrado.net/services/7315782/gameservers/file_server/download?file=%2Fgames%2Fni*******_1%2Fnoftp%2Farkxb%2FShooterGame%2FSaved%2FLogs%2FShooterGame.log'

    I used the above command to get mine but you may have to change the arkxb out for arkps4 or arkps not sure... That only gave me a link in a json blob that I could then use to download the file with any usual means of getting a text file from a server(i.e. curl, wget, python, node, etc.) There may be a better(or more official) way but I know this worked for me. If you're after the Last log don't forget that's ShooterGame_Last.log

  • This did not work for me:

    {"status":"error","message":"Internal error. If this error persists for more than 15 minutes, please contact our support and include this error ID: \"121bc58*****************4d\""}


    I used the file path as the parameters: "/games/ni**********1/noftp/arkxb/ShooterGame/Saved/Logs/ShooterGame.log", where the (*) are replaced by my own. The command you used is not API related right? Therefore, the API doesn't work?


    --update--

    Using the above example give me the following response:


    {"status":"error","message":"This service doesn't belong to you!"}

  • I don't find your resolution. There is only one token provided to me for my gameserver in the "Developer Portal". The token I was using has been checked off for all access. In case there was another token that I didn't know about, I went into the "My Services" left nav and clicked on "Game Server". No additional token-related options were provided.


    In case you were mistaken about the above output:

    Code
    1. // Very likely to have the correct file path
    2. {"status":"error","message":"This service doesn't belong to you!"}



    The above output is completely different than the output if I were to put in an invalid token:

    Code
    1. // Invalid token output
    2. {"status":"error","message":"Access token not valid.","data":{"error_code":"access_token_not_valid","error_details":{}}}
    3. // Various file paths used which were probably invalid
    4. {"status":"error","message":"Internal error. If this error persists for more than 15 minutes, please contact our support and include this error ID: \"jfajfdlj************dsafld\""}