Omni usage logs + event collection (on request + in-app soon)

Chris Merrick · Friday Demos · June 28, 2024 · 5:41

Custom logging pipeline for customers that need full usage details. Also the underpinnings of event collection for in-app usage reporting.

Try it yourselfThe full week on docsadministrationpermissions

Transcript

This transcript is auto-generated. Names and product terms may be wrong.

  1. nobody wants to follow that one I'll I'll do a I'll do a less exciting one just to set lower expectations for everybody else uh hang on one second here uh so I think it was last week or the week before I talked about the audit logs uh being available um and I also talked about query tagging um so I actually put those two things together uh this is for our own data um and so what I did was I have our our audit logs are activated and writing to an S3 bucket um you know which we have several customers doing and we can do for any customer only for our own inter this is you RS3 bucket is only for our own internal instances activity

  2. uh and then we also have query tagging active now so all of our this is available for Snowflake and big query so we're of course using snowflake all of our queries are tagged um and I can join between the query tag there's an ID in the query tag that I can join to the audit logs to understand where did the query come from uh and I can produce analyses like this so I can see you know what is the total number of you know minutes that uh a dashboard is spent running queries in Snowflake uh and so uh yeah I can go and see which this dashboard is uh it's probably not yeah it's the customer user dashboard no surprise there um there's some uh

  3. more advanced stuff you can do here there's a way to infer like how like which queries were cached so we could do some analysis on like percentage of cach hits uh as well I did not have time to build that analysis but it is possible uh and then I also have sort of user level data so I can go in here and you know same exact analysis you who are the users producing the most uh spending the most time querying and if I go here I just tack the ID who is it oh it's Johnny Johnny um so um lots more possibilities and also I suck at building dashboards so you could build a nice pretty dashboard on this um I also the amount amount

  4. of History I have available right now is couple days so you couldn't really build anything interesting over time yet but I think that would be once we have that data acur I think it'd be really interesting to see this you know week by week um and you know I think customer like I've heard a shocking amount of interest from prospects on this question of hey I just want to really understand resource cons consumption in my warehouse uh this data is a very granular look at where queries are coming from um which should give them the ability to answer just about any question they want and is this just on for everyone right now like uh how does this get turned on or like sort of

  5. become available so query tagging is on for anyone using Snowflake and big query the tag are being applied uh the audit logging is uh opt in uh needs to be set up uh by us um so I think we've activated it including us like only only three or four customers so far so it's pretty pretty new I think once we if we get the word out about it I would suspect that people will be interested in it um I think just posting the demo people will ask so I think we just want to know like are we just willing to turn it on for anyone yep it can write to S3 right now so you know we there's probably a feature request uh incoming for

  6. support for like the Google Cloud Storage um but we can do that we've we've already speced that out it's not a big lift um and then there's probably also either a blog post or a documentation post or both talking about how you kind of wire it all together uh because you know I had to ingest the the Json data from S3 and snowflake then I had to just set up the proper joint conditions and on me uh would we ever just ingest all the logs ourselves across all of our customers and do all that for them for the people that like essentially don't actually want their own logs they just want to be able to explore their logs sort of expose it as a connection

  7. exactly uh not even as a connection like exposed it as dashboards in the usage in the usage dashboard or like the topic in the usage dashboard yeah that thought would be like allow them to like as a part of the product have cost performance you know analytics effective yeah we could we could just I mean we can uh think about the best way to collect this data right I mean data is available we just have to collect it and store it somewhere you know so absolutely can do that too yeah I think every single customer wants like a handful of dashboards around this stuff um so I think in that case honestly it would probably like I would skip the store in S3 steps it's

  8. ET I just like write it directly to snowflake you know probably using Rudder stack um so yeah very very possible cool