I faced a problem with my app using Firebase Realtime Database. At some point of time one of the user data records was like a wiped out of my database and I have no idea how it could happen.
So my question is: is there any way to get some kind of firebase server logs to find out what happened, what requests of my app caused data loss. Right now I couldn't find any history in Firebase console.
If there are no history then what should I do to investigate such cases in future? Some suggestions/practices? Thanks.
The Firebase Realtime Database is a cloud-hosted database. Data is stored as JSON and synchronized in realtime to every connected client.
After creating a new project, navigate to the Tools option on the top bar. Inside that click on Firebase. After clicking on Firebase, you can get to see the right column mentioned below in the screenshot. Inside that column Navigate to Firebase Realtime Database.
Querying DataWith Firebase database queries, you can selectively retrieve data based on various factors. To construct a query in your database, you start by specifying how you want your data to be ordered using one of the ordering functions: orderByChild() , orderByKey() , or orderByValue() .
Firebase Security Rules provide robust, completely customizable protection for your data in Cloud Firestore, Realtime Database, and Cloud Storage. You can easily get started with Rules following the steps in this guide, securing your data and protecting your app from malicious users.
There's no server side logging, history, or auditing available to developers in Realtime Database. There's really nothing you can do to investigate using tools provided by Firebase. You need to have your own auditing or backups in place.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With