by gravypod · 6y ago · 0 comments
One thing we have at work is something that's like this:
message Event {
enum type {
UserLoginFailed login_failed
SpecificApiRequestMade api_request
....
}
}
Right now we're turning these protos into json and serializing it into a mongodb for easy queries. This way we can do things like "COUNT(*) GROUPED BY login_failed.username" and find accoutns that are being targeted by bots, for example.That example on dashboard: https://demo.squzy.app/transactions/Y_jLC4hlwirv0PYqvSVG5