Always bugged me that highly repetitive logs take up so much space! I'm curious, are there any managed services / simple to use setups to take advantage of something like this for massive log storage and search? (Most hosted log aggregators I've looked at charge by the raw text GB processed)
Reducing logging cost by two orders of magnitude using CLP
11–20 of 107 posts
Re: Reducing logging cost by two orders of magnitude using CLP
#12Apparently the Uber site noticed I'm not in the USA and automatically redirects to a localized version, which doesn't exist. If their web-development capabilities are any indication I'll skip their development tips.
Re: Reducing logging cost by two orders of magnitude using CLP
#13Github project for CLP: https://github.com/y-scope/clp
The interesting part about the article isn't that structured data is easier to compress and store, its that there's a relatively new way to efficiently transform unstructured logs to structured data. For those shipping unstructured logs to an observability backend this could be a way to save significant money
Re: Reducing logging cost by two orders of magnitude using CLP
#14Original CLP Paper: https://www.usenix.org/system/files/osdi21-rodrigues.pdf Github project for CLP: https://github.com/y-scope/clp The interesting part about the article isn't that structured data is easier to compress and store, its that there's a relatively new way to efficiently transform unstructured logs to structured data. For those shipping unstructured logs to an observability backend this could be a way to…
Re: Reducing logging cost by two orders of magnitude using CLP
#15Earlier quoted context omitted.
Look, we'll just get it in this way for now, once it's live we'll have all the time we need to change the schema in the background
We don’t have a use case yet, but let’s just collect all the data and figure out what to do with it later! It’s funny how these cliches repeat everywhere in the industry, and it’s almost impossible for people to figure this out beforehand. It seems like everyone needs to deal with data lakes (at scale) at least once in their life before they truly appreciate the costs of the flexibility they offer.
Re: Reducing logging cost by two orders of magnitude using CLP
#16This just in, Uber rediscovers what all us database people already knew, structured data is usually way easier to compress and store and index and query than unstructured blobs of text, which is why we kept telling you to stop storing json in your databases.
Word! Storing JSON is so often the most direct and explicit way of accruing technical debt: "We don't really know what structure the data we'll get should have, just specify that it's going to be JSON"...
Re: Reducing logging cost by two orders of magnitude using CLP
#17Always bugged me that highly repetitive logs take up so much space! I'm curious, are there any managed services / simple to use setups to take advantage of something like this for massive log storage and search? (Most hosted log aggregators I've looked at charge by the raw text GB processed)
ZFS as an underlying filesystem offers several compression algos and suits raw logs storage well.
Re: Reducing logging cost by two orders of magnitude using CLP
#18This just in, Uber rediscovers what all us database people already knew, structured data is usually way easier to compress and store and index and query than unstructured blobs of text, which is why we kept telling you to stop storing json in your databases.
Re: Reducing logging cost by two orders of magnitude using CLP
#19Sounds interesting, now I want to read up on CLP. Not that we have much log texts to worry about.
Re: Reducing logging cost by two orders of magnitude using CLP
#20Man, I was expecting constraint linear programming.