16 ms·
Grafana Loki – Like Prometheus, but for logs
- webo 8y agoIs this the same technology kausal.co guys had? It’s a shame it was just shut down after the acquisition.
- SuperQue 8y agoAre you talking about the Cortex Prometheus service? They're working on transferring that to Grafana branding.
- netingle 8y agoIts there: https://grafana.com/cloud#features https://grafana.com/cloud#features And Cortex is now a CNCF project: https://github.com/cortexproject/cortex https://github.com/cortexproject/cortex https://www.cncf.io/sandbox-projects/ https://www.cncf.io/sandbox-projects/
- sandGorgon 8y agoIs this logging already available on Grafana Cloud ? Because someone I know is looking for a hosted logging solution and was looking at ELK till now. Do you have integration with Docker ? Especially Logspout ?
- netingle 8y ago> Is this logging already available on Grafana Cloud ? Because someone I know is looking for a hosted logging solution and was looking at ELK till now. There is a free preview right now: http://grafana.com/loki http://grafana.com/loki We'll be introducing a paid tier in the next few months, once things are more stable. > Do you have integration with Docker ? Especially Logspout ? Not yet! That sounds like a great idea though - mind filling an issue in the repo for it so I don't forget?
- sandGorgon 8y agoAdded https://github.com/grafana/loki/issues/82 https://github.com/grafana/loki/issues/82
- netingle 8y agoThis is a continuation of our ideas from Kausal, yes! Really glad we joined Grafana as they have given us the time and resources to pursue this. And not shutdown at all! Everything we did at Kausal is now part of Grafana and Grafana Cloud - David's PromQL-completion UI is in Grafana v6 as the explore view, and Cortex is the backend for Grafana Cloud's hosted Prometheus...
- netingle 8y agoAuthor here! Really excited to release this at KubeCon; happy to answer any questions you might have.
- zellyn 8y agoI'm curious about this, because at Square we maintain our own homegrown log aggregation system, and it's not really a core competency. While a lot of our logging needs seem like they would be fulfilled by this system — because we attach trace IDs to log messages, and because (at least in Payments) you can usually find the appropriate trace ID by searching for a Payment ID, which could be annotated too — there are definitely many times I've copy/pasted the text in quotes from a log-generating line of code in a Java or Go file, to find out if it's being executed, or as a handle into a subsection of code/logging. In the linked design doc, you include a motivating tweet near the top, saying, “just give me log files and grep, I am dying”. But unless I'm misreading things, there's no `grep` here. Right? I'm guessing you could narrow down (using metadata) and then grep, but if the narrowest metadata you have is app name and time range, you're still going to be grepping over a lot of data…
- netingle 8y agoIt’s defiantly something that’s missing from the readme, and perhaps not that obvious in the grafana explore view either - but it is there! You can push a regexp match server side and have that distributed to each Loki node, giving you distributed grep. Will make it more obvious. Davkals has an iteration of the UI that makes it a separate field, which will also help.
- danlimerick 8y agoThere is some documentation about the Loki search syntax in the Grafana docs: http://docs.grafana.org/features/explore/#logs-integration-loki-specific-features http://docs.grafana.org/features/explore/#logs-integration-l...
- samstave 8y agoPlease make it more obvious with exact examples of how to do this.
- matryer 8y agoAwesome, can't wait to dig into this. Nice work.
- gnur 8y agoLooks like a good light-weight alternative for setting up a full elasticsearch cluster for some light log insights. I've been kind of building something similar myself, but this looks much better. The free cloud demo does look it is getting hammered right now ..
- netingle 8y ago>Looks like a good light-weight alternative for setting up a full elasticsearch cluster for some light log insights. Exactly! Elastic is a really powerful system but I think there is growing sentiment that its overkill for container logs. This is exactly where we see Loki really helping - almost complimenting Elastic even. > I've been kind of building something similar myself, but this looks much better. :blush: thanks! We'd love you input on Loki too... > The free cloud demo does look it is getting hammered right now .. Yeah, looks like I'm going to be scaling that all day... Our motivation for over the free service for the next few months is to really battle harden the system - anyone sending us data is really helping us iron out the kinks and improve the open source. Its early days, but expect it to get much better over the next weeks and months..
- skrebbel 8y ago> Elastic is a really powerful system but I think there is growing sentiment that its overkill for container logs I don't know much about kubernetes, but Loki looks super interesting for our application logs too. Could someone maybe ELI5 what the difference is between "container logs" and, well, any other kind of logs? Don't most dockerized application send their stdout to Docker, and aren't those, then, the container logs? What kind of logs _aren't_ "container logs" and therefore a better fit for ElasticSearch than Loki? Thanks :-)
- gouthamve 8y agoI work with Tom on Loki. When we said we wanted to focus on Kubernetes, we meant we wanted to correlate metrics with logs and focusing on Kubernetes lets us do that well. Having said that, this will work for any logs as long as you can tag the logs meaningfully. We'll soon be releasing packages for all major distros and journald.
- davejohnclark 8y agoLooks cool, is the source code for promtail available? I can see there's an image available https://hub.docker.com/r/grafana/promtail https://hub.docker.com/r/grafana/promtail (which is used in the readme) but I can't find the source anywhere. Anyone know where it is?
- netingle 8y agoOf course! Everything is opensource, all apache licensed: https://github.com/grafana/loki/tree/master/pkg/promtail https://github.com/grafana/loki/tree/master/pkg/promtail
- davejohnclark 8y agoCool, thanks. No idea how I failed to find it...
- gouthamve 8y agoHi, the promtail code is also available in the repo. See: https://github.com/grafana/loki/tree/master/cmd/promtail https://github.com/grafana/loki/tree/master/cmd/promtail and https://github.com/grafana/loki/tree/master/pkg/promtail https://github.com/grafana/loki/tree/master/pkg/promtail
- davejohnclark 8y agoThanks! I swear I searched the repo and didn't get any useful results, but yeah it's there plain as day...
- dkarl 8y agoGrafana, are you sure you want to name a piece of software after a guy famous for lying, betrayal, and other forms of unreliability? Besides, I already know two cats, a dog, two children, and a Saturn hatchback named Loki. The Saturn is named appropriately, by the way; let's hope your software isn't.
- kbenson 8y agoWe have way too many technologies in our industry with names borrowed from culture. Before clicking to look at the comments, I totally thought this was about some interesting creation mythos with a character that taught humanity how to harness wood from nature to build the first wood dwellings. I mean, that's totally something that could feasibly get posted to HN and do well.
- netingle 8y agoThere are only two hard problems in computer science: cache invalidation and naming things.
- cjslep 8y ago> There are only two hard problems in computer science: cache invalidation, naming things, and off by one errors. That's how I learned the phrase.
- netingle 8y agoAnd Loki has all three ;-)
- PavlovsCat 8y agoAlternate between vowels and consonants, look for the resulting string in various search engines, the first one that gets no results is the new name. Keep track of all items (like "main page", "search results for $blah") that component items (like "body of post 234", "avatar of user 3540") are used in, and when a component item changes, invalidate its cache and that of all items it was used in.
- kbenson 8y ago> Alternate between vowels and consonants, look for the resulting string in various search engines, the first one that gets no results is the new name. I'm pretty sure the quote was originally talking about function, variable and data structure naming, in which Google may or may not be help. Really, I've always found naming problems in that are more to do with correctly predicting the future, since the most egregious problems I encounter are when something that used to be named at least passably has changed over time to be very confusingly, if not outright misleadingly, named.
- rusbus 8y agoIf you're just tailing logs on the server (or with kubectl) but need a bit more power, angle-grinder [1] is pretty good (and of course doesn't need to be hosted or anything, it's just a CLI app) [1] https://github.com/rcoh/angle-grinder https://github.com/rcoh/angle-grinder
- yamann 8y agocan it just replace ELK with a single golang binary? big if it does
- netingle 8y agoIf all you use ELK for us simple process/container logs then yes! That’s the whole idea. But Loki is not a replacement for Elastic - we don’t have any complex query support, and we don’t do full text search. Elastic is great for analytics or BI, but we think Loki is the way forward for your container/pod logs.
- endian_ogino 8y agoAs inmature I'm my first thought was thst the logo looks like a dick to me. :|
- zeeZ 8y agoMy first impression was "Airbnb has toppled over", but yeah, it kind of does...
- dguaraglia 8y agoHah, that's actually worth pointing out. I personally don't see it, but I'm sure other people would. If anything - and continuing the immature thread - it looks like dickbutt to me.
- rodrigopetter 8y agohttp://i.imgur.com/tTc9cKQ.gif http://i.imgur.com/tTc9cKQ.gif
- jitix 8y agoYou cannot unsee it lol But on a serious note the developers should indeed look into this. I recall this comment from HN [0] which highlights why neutral branding and naming are important. 0: https://news.ycombinator.com/item?id=14702513 https://news.ycombinator.com/item?id=14702513
- Fnoord 8y agoI can't see it. In my world, penises are a little bit bigger than those proportions... might as well see a heart in the logo. I actually like the logo, as it looks like two things overlapping each other which can be moved to be aligned.
- netingle 8y agoThats fair; the logo was a last minute thing, we'll work on a new one...
- davejohnclark 8y agoI could never unsee it in this old easymock logo https://www.javacodegeeks.com/wp-content/uploads/2012/10/easymock-logo.jpg https://www.javacodegeeks.com/wp-content/uploads/2012/10/eas.... They have since changed it to something much more neutral, thankfully!
- burtonator 8y agoWe built a system like this similar to this at Datastreamer to store the logs from our web crawl. We used Grafana + KairosDB and turned the logs into tags essentially. Our entire productions system had easy 'taps' that you could annotate to monitor everything about our crawler. For example, number of HTTP requests, their status codes, the language of the content. We also record intersections of the tags like lang+domain. The downside of a system like this is that you have to know all your metrics apriori... If not and you need them at runtime you're out of luck. The UPSIDE is that you use like 1/100th of the total size you would originally need for raw logs. What we found is that you quickly converge on the tags you need and then you don't end up adding many more. Everyone says 'disk' is cheap but in our situation our logs outpace the amount of data we would collect. We'd have 1000s of petabytes of logs by now.
- ecoqba11 8y agoVery interesting, will check it out!
- hsnewman 8y agoWhat is the purpose of log aggregation without indexing?
- netingle 8y agoThats a really good question. I feel like its pretty well covered in the design doc[0], and you should also read about OKlog[1] which really championed this idea. To be clear: Loki indexes metadata about the streams, and the streams themselves are indexed by time. We don't full-text index the streams though. We think, when combined with metrics, this represents a nice trade off in terms of complexity vs features. This simplification not only makes Loki easier to understand, but also scale and operate. [0] https://docs.google.com/document/d/11tjK_lvp1-SVsFZjgOTr1vV3-q6vBAsZYIQ5ZeYBkyM/view https://docs.google.com/document/d/11tjK_lvp1-SVsFZjgOTr1vV3... [1] https://github.com/oklog/oklog https://github.com/oklog/oklog
- retzkek 8y agoSo this is something like mtail [1], with the ability to also drill down into the raw logs, and integrated into Grafana? Sounds great! We're heavy users of Grafana, Graphite, Prometheus, and Elasticsearch, and while the latter started in a BI role it's expanded to take on pretty much anything we can throw at it. However, there's still tons of system and service logs we're not gathering yet, because the effort to get them to Elasticsearch and store/maintain them is not worth it, especially since the value is not always clear until well after the pipeline is set up. I'm definitely excited to see what loki can do for us, and just upgraded one of our test Grafanas to nightly to start playing with Explore, looks great! [1] https://github.com/google/mtail https://github.com/google/mtail
- netingle 8y agoExactly! In fact, we're moving to use some of mtails libraries and functionality [0]. The main difference is we do centralise, scalable persistence of the logs themselves, wheres IIUC mtail just processes them and exports metrics. Thanks for the feedback, and feel free to reach out with any questions. [0] https://github.com/grafana/loki/pull/51 https://github.com/grafana/loki/pull/51
- davkal 8y agoGrafana Explore author here. It's still in Beta and would love feedback. Simply open an issue at [0]. What we tried to get right is the seamless switch from a Prometheus to Loki where it's retaining the labels of the query to essentially find the logs that come from the same e.g., "job". The assumption is that you need to be consistent with your relabelling rules of Prometheus and Loki. [0] https://github.com/grafana/grafana/issues/new https://github.com/grafana/grafana/issues/new
- monstrado 8y agoIs there a way to send logs to Loki without using the tail agent? For example, a REST API for storing messages?
- gouthamve 8y agoHi, we're currently only exposing an API that we wrote. But we have plans to integrate with other agents such as fluentd for log collection. If the use-case has enough support, we might even be supporting a REST API.
- netingle 8y agoThere is a REST API, yes [0]. Currently you send snappy-compressed protobufs[1] containing yours log to a HTTP endpoint. We initially started using fluentd as the agent, but we found its metadata "enrichment" facilities weren't reliable enough - we'd get log lines without the pod tags, for instance. For something like Loki, which depends really heavily on the metadata for index, this was super important. So we wrote promtail. [0] https://github.com/grafana/loki/blob/master/docs/api.md https://github.com/grafana/loki/blob/master/docs/api.md [1] https://github.com/grafana/loki/blob/master/pkg/logproto/logproto.proto https://github.com/grafana/loki/blob/master/pkg/logproto/log...
- monstrado 8y agoAwesome, thanks!
- baq 8y agoif this is like splunk that doesn't make me cry unicorn blood tears every time an invoice arrives then i'm all in. unfortunately it doesn't look like it and honestly i'm not sure what it is. 'prometheus for logs' doesn't quite explain it.
- gouthamve 8y agoHi please see the design doc for more inspiration as to why we built it: https://docs.google.com/document/d/11tjK_lvp1-SVsFZjgOTr1vV3-q6vBAsZYIQ5ZeYBkyM/edit https://docs.google.com/document/d/11tjK_lvp1-SVsFZjgOTr1vV3... We're soon coming out with a blog post explaining the motivations and architecture in detail. But yes, the pricing is one of the motivations to build this, and as logs will be stored in S3 or an object store, the cost will several orders of magnitudes less.
- davkal 8y agoGrafana Explore author here: just posted my slides from the announcement talk [1] that hopefully clarifies a bit on what it is. Re splunk, depends what features you rely on. Loki is a no-frills log aggregation. Would be great to hear what features are needed for you. Feel free to write to me at david at grafana or open an issue. [1] https://speakerdeck.com/davkal/on-the-path-to-full-observability-with-oss-and-launch-of-loki https://speakerdeck.com/davkal/on-the-path-to-full-observabi...
- nerdbaggy 8y agoInfuxDB has this as well https://www.influxdata.com/blog/writing-logs-directly-to-influxdb/ https://www.influxdata.com/blog/writing-logs-directly-to-inf...
- GordonS 8y agoFrom the design doc: > We will be able to pass on these savings and offer the system at a price a few orders of magnitude lower than competitors. For example, GCS cost $0.026/GB/month, whereas Loggly costs ~$100/GB/month[0] Maybe I'm misunderstanding, but I don't see how Loggly costs anything like $100/GB/month? It seems clear to me that the $99 plan costs $100/GB/day (or $100/30GB/month). Not exactly cheap, but nowhere near as expensive as the design doc reckons. [0] https://www.loggly.com/plans-and-pricing/ https://www.loggly.com/plans-and-pricing/
- gouthamve 8y agoYes, you're correct. We'll correct the mistake in the doc.
- GordonS 8y agoThis premise was very far off, and cost effectiveness is key to the design rationale - do you think this impacts upon the utility and attractiveness of Loki?
- gouthamve 8y agoYes, we have an internal doc where we compared with more providers (including loggly) where we got the pricing right. The line currently mentioned in the doc is a typo. The rationale still holds and one of the primary reasons we built Loki is to have a an easy to manage scalable "open-source" solution. I personally have been told to log less at a previous company because of the associated costs of logs and I don't think I utilised anything beyond grep (with a few exceptions). I personally feel the trade-offs are right and a simple greppable/tailable solution that is cheap is missing from the eco-system.
- GordonS 8y agoA good response, thanks for confirming that you've built this with the correct pricing in mind.
- vdm 8y agohttps://www.youtube.com/watch?v=xJSgf835YRE https://www.youtube.com/watch?v=xJSgf835YRE
- arianvanp 8y agoSerious question. Why not just put logs in postgres? Rich query language. Indexes. Has support for time-series based indexes. Optionally can support full text search if needed.
- reacharavindh 8y agoI have been wondering the same thing. But, I spent the last hour looking for something like Kibana that would work with Postgres. Postgres full text search, and Timescale extension would be ideal for logging kind of application. I could just set data retention to something like 2 months to keep the data volume simple and manageable. But, all "data explorer" like tools for SQL databases obviously focus on having their end users write SQL. I'm hard pressed to find a good search interface that talks to Postgres at the backend..
- cetra3 8y agoWe store our logs in PostgreSQL and use Metabase for visualisations & analysis: https://metabase.com/ https://metabase.com/ It's still focused on SQL but the "Question" flow is quite simple, and doesn't require you to write SQL. You can, of course, write raw SQL if you want to and have those results still visualised.
- reacharavindh 8y agoI am playing with Metabase trying to see if there is any way for me to get a "search" on a column of table. It feels like I'm looking for a different use case. Metabase seems excellent for building a dash board composed of several SQL based questions, and to generally have a searchable list of questions(which are internally SQL queries). But, searching for logs seems to not be one of its use cases...
- stuntkite 8y agoThere are things like TimescaleDB[0] that build on PG to give you columnar support. Time series DBs need to handle a ton of entries and be able to slice on the column which is supported by vanilla PG[1] but most of the security tools are not looking to timeseries PG largely. [0] https://www.timescale.com/ https://www.timescale.com/ [1] https://blog.dbi-services.com/optimized-row-columnar-orc-format-in-postgresql/ https://blog.dbi-services.com/optimized-row-columnar-orc-for...
- rane 8y agoI ran the curl ... | kubectl command on my cluster. What would be the reason that promtail is not tailing log files for all of the running pods?
- victorhooi 8y agoThis looks similar to Graylog (https://www.graylog.org/ https://www.graylog.org/)? From Loki's readme, It still stores the full log (but compressed), and indexes values in each logline.
- gouthamve 8y agoHi, we don't index the values, but rather we index metadata about the logstream, for example, service name, instance ip, and things like that and not the actual contents of the log lines. Inside kubernetes the metatadata would be podname, namespace, deployement name, container name, etc...
- netingle 8y ago> indexes values in each logline. We batch together sets of lines into compressed "chunks", and only add index entries per chunk. In practices, chunks have 1000s of lines in them - so the index tends to be many orders of magnitude smaller than in other systems.
- ryeguy_24 8y agoWhere do people recommend logging infrastructure changes (e.g. database changes, server configuration) for all things potentially not in code?
- ab_io 8y agoChoose a documentation source-of-truth (Confluence, etc) and keep a changelog[1]. I've also seen a dedicated email group (i.e. change-mngt@company.com) used for tracking non-code changes. [1]: https://keepachangelog.com/en/1.0.0/ https://keepachangelog.com/en/1.0.0/
- bmurphy1976 8y agoWe need more context. Server configuration should definitely be in code/source control these days. Database changes, well, what kind of changes are you talking about?
- ryeguy_24 8y agoThese days, as we have multiple departments and services, it’s hard to track down any issues we identify without knowing what kind of changes have happened to potentially cause it. As we don’t have a single development platform (multiple acquisitionss) this is hard for us at least until we have unified systems (will take time). I’m referring to any infrastructure or operational change to the stack. For example, deployments/roll outs, scaling servers up or down, port changes, updates to software on key servers, changes to database table structure, manual changes to database data. Any changes at all to the production stack.
- mattbillenstein 8y agoIt's all in code now... At least how I do it.
- sandstrom 8y agoTerraform checked into version control is pretty common
- sciurus 8y ago
- kureikain 8y agoI still remember when Grafana first come out because of InfluxDB. It's amazing at that time. I try to setup Graphite and eventually found out Grafana+InfluxDB and go w/ it from there. Grafana move really fast. Very practical. It first if I remember use ElasticSearch/InfluxDB to store its config itself. Then move to its own SQLite. Then MySQL/Postgres. Eventually add alerting. Add multiple data source. Nowsday my team even use its with SQL for a cheap version of Periscope/Mode. Then now they figure out this log thing. ElasticSearch is great but try to run it yourself. On a 50 nodes k8s, I bet your first ES config will down after 10mins the first time FluentD come up and send all the log under the sun since the cluster come up Given that Grafan guys know how to deal with visualization, I trust them to deliver a great experience again for log. Look at their history, I'm going to bet hard on this.
- outworlder 8y ago> Then now they figure out this log thing. ElasticSearch is great but try to run it yourself. On a 50 nodes k8s, I bet your first ES config will down after 10mins the first time FluentD come up and send all the log under the sun since the cluster come up Tell me about it. I have not one, but multiple k8s clusters (some over 50 nodes), sending data to a single Elasticsearch cluster. A lot of tuning was done, and it's not yet perfect. Elasticsearch is amazing, but it requires external support, and the tools available to do that are not on par. Curator specifically – it's dumb as a rock and is very limited on what it can do. Even a hot/warm architecture is a challenge to do on curator alone, you should ideally have custom scripts to manage it. Which is a shame as this is one of the "reference" architectures by Elastic. Whatever Curator does should really be part of ES itself. The Kibana + ELK combo won't give you things like log tailing (logtrail is hackish and hard on the servers). The log forwarders are horrible to work with (be it logstash, filebeat – or worse: fluentd). Some days it just works and you are happy. Some other days, you wonder why we moved away from syslog senders and text files...
- kureikain 8y agoI actually have same conclusion as you. ES isn't easy to tune and run well. A thing many overlook are restart it. You cannot just go and `systemctl restart` it, once that occurs, constant rebalance happenning because it puts the load to the rest of system and eventually bring them down, all around :(. That make it harder to operator in K8S when it needs time to detach/attach volume, plus the overhead of overlay network. So I myself didn't know about a perfect tunning. But the log search on Kibana is super helpful though. That's why I kind of sold on this Loki thing. I have a good feeling that software in Go tend to require less config/tunning compare with Java. Eg, InfluxDB. > Some other days, you wonder why we moved away from syslog senders and text files... I wonder the same. I actually like to grep log with tail more than a crappy web ui like Kibana, Sumologic etc. Tailing log in a webui is clunky.
- nwmcsween 8y agoWhy not a unixish simple tool to handle metrics? assuming $prog outputs log info to stdout: $prog | collect | action and 'collect | action' could all be done somewhat simply with awk and 1000x more portable.
- skykooler 8y agobecause some people want prebuilt solutions rather than messing with command-line scripts for everything.
- nwmcsween 8y agoSo people want non unixish tools on unix, seems like a road we keep going down over and over and eventually goes back to the unix way. Also piping isn't 'scripting'
- kryptk 8y agoAnd store it where? And query it how? What will render my NoC dashboards? With graphite protocol the metric stream is already plain-text with just 3 fields per line (path value time), its pumped over a socket to a collector.. but that's where the hard stuff starts.
- nwmcsween 8y agoFirst I'm not trashing the project, I'm just wondering why simple unix like solutions aren't used. Store it where ever you want, this isn't a magical datastore that makes things faster, use clickhouse-client, whatever it doesn't matter. There is a widening disconnect between the unix way and how new projects are created.
- sciurus 8y agoFrom what I can tell you're talking about processing logs to device metrics, but this project is specifically about storing the raw logs themselves. Two different (albeit potentially related) problems. What you are proposing for deriving metrics from logs exists in plenty of forms. Check out https://github.com/google/mtail https://github.com/google/mtail , for example. Of course, you still have to store them somewhere, visualize them somehow, etc. That won't simply be part of your shell pipeline.
- lunulata 8y agoits just nvidia was over-valued and the market is correcting itself now alongside all the other tech stocks getting smashed, but I think investors should double down on nvidia now while the getting is good. The company still has the best gpu engineers on the planet $$$.
- alexk 8y agoFor Grafana folks: I got all the way through sign up and sending logs from k8s cluster + setting up logging data source to Loki hosted instance, but could not find a way to actually explore the logs in the hosted grafana instance :)
- alexk 8y agoI figured that you have to click "Explore" next and then see the Logging tab, although it was not easy for me to find, may be highlight it as a first class link on the left panel?
- xer0x 8y agoBut I just setup Elasticsearch and Kibana yesterday!
- hathawsh 8y agoA few years ago, I set up centralized logging with Elasticsearch and Kibana on a site with very little traffic (less than 100 requests per minute). After a few months, it apparently fell behind on indexing and worked the logging server's hard drives 24x7. After a few more months, the server died. (It refused to power up and I wasn't interested in going deeper.) I freely admit that I don't know how to configure Elasticsearch correctly, but I feel like it should have been able to handle the indexing load in its default configuration. I think I'll try out this new logging solution. I only want basic indexing.
- sandstrom 8y agoI try to stay away from long-lived processes written in Java. Maybe it's just me, but I think they consume insane amounts of memory.
- outworlder 8y agoNo you didn't. You brought an ELK cluster up. Now the fun begins. Unless you have a small load, six months from now you'll say "I've spent the last 6 months setting up and tuning an ELK cluster. It looks like it might be ready for production workloads now, but let's make it a beta for the time being – I don't want to see a crash like we had last time..."
- windowsworkstoo 8y agoYeh, the trick with ELK is to spin it up on fewer, but beefier physical servers. We've had great success with this, compared to our first attempts, after failing by following internet memes about running ELK across lots of small virtuals....
- zahreeley 8y agoLauki
- akavel 8y agoI'd be interested in replacing an in-house logs filtering/aggregation solution with Loki, but there's a lot that is not clear to me from the initial announcement & materials. Could you please help me understand what are the answers to the following questions? - Can I use Loki without Prometheus? I'd like to feed raw logs to it, with custom-generated metadata. I don't want to have to use Prometheus, nor InfluxDB. - Can I edit (modify) metadata for some old log line after it was already inserted? Specifically, I need to be able to rebuild metadata later, if I add some new "filters" to my logs (I want to be able to apply them retroactively). - Can I run aggregate queries on the metadata (sum, avg, min/max)? If not, what can I do with the metadata? Can I graph the metadata on normal Grafana graphs? - Is the text of the logs compressed? If yes, what compression algorithm is used? If not, why? - Where can I find the API docs (or at least the API source code) for Loki?
- gouthamve 8y ago1. Yes, you can. We initially targeted Kubernetes because that's what we use and packaging for it is simple. We'll soon release packages for all distros, support syslog/journald etc. 2. Hmm, please open an issue regarding this with the use-case that prompted this? This is not a use-case we have but if this is important for more people, we'd be happy to support it! 3. You can only select based on the metadata, the metadata is just a set of kv pairs. Like {app=cassandra, namespace=prod, instance=cassandra-minion-0} 4. Yes, we used gzip. Please see the sheet referenced at the end of the design doc [0] to see what we compared with. 5. It's mainly protobufs right now [1] over HTTP, but we'll be adding more docs soon. Mind opening an issue for this so that we don't forget? [0] https://docs.google.com/document/d/11tjK_lvp1-SVsFZjgOTr1vV3-q6vBAsZYIQ5ZeYBkyM/edit https://docs.google.com/document/d/11tjK_lvp1-SVsFZjgOTr1vV3... [1] https://github.com/grafana/loki/tree/master/pkg/logproto https://github.com/grafana/loki/tree/master/pkg/logproto
- akx 8y agoHm, why is zstd marked as "BROKEN"? zstd would've been my first choice for something like this.
- bogomipz 8y agoDoes this integrate with Prometheus's Alertmanager then for sending alerts based on certain logging events?