wiggin77 / audit Goto Github PK
View Code? Open in Web Editor NEWAudit proposal
Audit proposal
In order to not reinvent the wheel, I think we should consider Logstash and something like: https://godoc.org/github.com/cheshir/logrus-logstash-hook
General Observations:
Audit event types:
API:
Operations on the audit entries:
Schema
Id- is that a UUID/GUID?
ObjectId - capturing the object on which the event mightObject.id (team/channel, etc) or is that captured by the Meta map?
Cloud:
Auditing will be done with a dedicated API but utilize the logging engine for storage.
That means that is not going to be affected by the Logging engine level's configuration right?
For example, when logging a struct asynchronously care must be taken to ensure the contents of the data being logged does not change while the log record is being created and formatted
Could you please provide an example of this case so I can understand better?
what to do when the queue is full.
I'd be also good, if is not on the list, to know how to react when we are not able to send to the audit/logging API because discard the messages doesn't seem like an option. I don't if we're using message queues that let us persist the messages but could be a good idea.
Queue(s) will be monitored for percent full and periodically reported.
I don't know if you have it in mind but could be a good idea to add metrics for this as well
Data Model
I've seen that the Meta
field is map[string]string
. Why not map[string]interface{}
? Is it related to the data transformation pre-queue?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.