2
I have a small monitoring system that aims to show if the data of some servers are equal to backups.
As the system interacts directly with the database, the need arose to know who accessed and when they accessed the system, as I am new in the programming area, my first alternative was to set up a function that kept the name, the IP, the user action along with the date/time the user executed the action in a Mysql database.
I saw that there are other options, recording in txt
for example, however, by recording accesses in Mysql, it is much easier to manipulate them for statistical use and related.
Am I doing it the right way? Is there another way to do it that’s just as effective? What’s wrong with doing it that way? It depends on the number of accesses?
I see that the use of Triggers is the safest way to maintain a log of changes in a bank. A natural problem is that depending on the number of changes a bank undergoes, the Logs table will grow exponentially. Also depends on what information Trigger s will save.. (all fields? in all operations? in all tables?)
– Andrey