question

bernardd avatar image
bernardd asked

Is there a way to send changes to the audit Logs using the Admin API?

Hi everyone,

When we use the Admin API, changes don't appear in the Audit Logs of the Game Center. This is a problem since bad operations can be done without possibility to know about.
I would like to know if it is possible to manually send data to the Audit Logs so we know when change are done.

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

·
Citrus Yan avatar image
Citrus Yan answered

Hi, I believe this Audit Log is for logging operations performed by someone in the Game Manager. You cannot manually send data to the Audit logs. It’s better for you to track bad operations by checking the event history.

4 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.

bernardd avatar image bernardd commented ·

Does Admin API calls appear in the event history ?

0 Likes 0 ·
Citrus Yan avatar image Citrus Yan bernardd commented ·

Hi, some of the Admin APIs will generate events, for instance, “Admin/AddUserVirtualCurrency” will generate event "player_virtual_currency_balance_changed". However, some of them won’t generate events, for these, you may need to write custom events to help you track operations. Here is the Event Model reference in which are built-in PlayStream events automatically generated by PlayFab, for those operations you want to track but not listed in here, you may need to create your own custom events using WriteEvents API.

1 Like 1 ·
bernardd avatar image bernardd Citrus Yan commented ·

Thank you for your help!

0 Likes 0 ·
Show more comments

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.