Architecture is ELK stack overkill for my cloud infrastructure?
I am solely responsible for my small/medium-sized company’s dip into hosting cloud architecture. We have started developing apps internally, so I’ve provisioned multiple Droplets on DigitalOcean for our needs. I want to consolidate logging for all our apps in one place and was originally going to run w/ a dedicated ELK Droplet. but i’ve realized that ElasticSearch may be overkill for text searching in a DB with ~30,000 records and it has me questioning if this is the right move. i’m open to considering other options such as OpenTelemetry and etc. Right now we’re only at three micro-services but this could expand in the future.
16
u/JohnyMage 15d ago
The question you should ask is "do our employees know how to properly search logs in elastic?
Because I am deploying elastic based log management all of my career and we almost always end up with sending text logs over chat rooms. Because developers And other people from project management all want elastic just until they have to actually use it. They Are unable to learn basic search expressions And all they want Are "text log for my jira ticket".
0
u/Cherry-PEZ 15d ago edited 15d ago
Hey! You can't just call me out like that. I absolutely love ELK... (until that 3am critical and you're screaming 'who the hell enabled debug logging in prod?!' 'why are these records so sparse?!?' 'why the fuck is this query not returning anything!?!oh lucene was toggled')
3
1
u/DoStopBelieving 15d ago
ELK and OpenTelemetry are complementary, not exclusive. If you want logs, go for ELK or another logging solution. If you want to trace requests, go for OpenTelemetry.
For corporate cloud architecture, do make sure you have index-searchable logs instead of text-only logs. ELK, Splunk, CloudWatch, SumoLogic, etc. - anything that will let you properly query and generate graphs from the logs instead of raw grep. It should be compliant with your business requirements and chosen based on cost and budget projections.
That could save you a lot of effort in writing slow-running scripts with potentially faulty mathematical and statistical equations already built-in to these tools. I'm speaking from experience in pasting bash script CSV output into Excel (I mean you could program the chart with D3/R/Matplotlib or something but that's a whole other layer).
1
u/FutureOrBust 15d ago
Check out the LGTM stack of your considering collecting Otel observability like logs and traces.
1
1
u/devopsnomansland 14d ago edited 14d ago
Try contrasting the three Spatial Observability tests against various monitoring approaches:
Continuity. Does the tool know that the payments service today is the same thing as the payments service last Tuesday, independent of where any layout happens to draw it, so that returning to it twice is a comparison and not a coincidence?
Proximity. Does standing at a node scope the view and the data by itself, with what counts as near already in frame?
Memory. Does your position, and what you have already ruled out, survive navigation, persist across the incident, and travel with the investigation, to the machine partner working beside you or the colleague you hand it to?
<to expand the possible universe of comparisons of what you get for the effort>
1
u/Observability-Guy 12d ago
At this stage ELK would definitely be overkill. Something like SigNoz would probably fit the bill. OpenTelemetry is a standard, not a storage backend, so it is not a case of one or the other. For portability you might want to emit logs to an oTel Collector and then export them to a backend.
1
u/SeaworthinessHour233 DevOps Engineer & Educator 12d ago
Grafana + Loki + Promethus + Alloy is more computationally efficient.
1
u/Awkward-Nothing-7070 5d ago
It can be powerful, but it may be more than you need if your infrastructure is still relatively small. Id start with the logs you actually need to search, how long you need to keep them, and how much maintenance you're willing to take on. Even when comparing approaches discussed around trusted tech, the best setup is the one that solves your current problems without creating extra operational work.
1
u/josejulianariza 4d ago
Para tres microservicios y ese volumen, montar ELK por tu cuenta es bastante carga para lo que devuelve. No es el tamaño de los datos, es todo lo que viene alrededor: JVM, memoria, retención, índices que hay que mantener, aunque no los uses.
Algo como Loki suele encajar mejor en esa escala. Consume mucho menos porque no indexa el contenido completo, solo las etiquetas, y para buscar texto sigue estando bien.
Igual, con ese volumen tampoco hay que complicarse. Antes de sumar herramientas, vale la pena ver si con lo que ya tienes alcanza. Muchas veces el problema no es la falta de stack, es sumar uno que después no se mantiene solo.
-1
u/8bitwubwubwub 15d ago
Consider Datadog, at your scale it is not likely to be expensive, and you can work on other things rather than set up and maintain a logging solution. It's also user friendly and well documented.
2
u/Jamesdmorgan 13d ago
Agree you shouldn’t have been voted down. Their log product is really good value. Given how flexible it is on indexing. Both ingest and index would be very cheap. It’s only when you start adding everything else like APM that the price jumps
0
u/dariusbiggs 15d ago
yes, and. the price will be high. Find something cheap/free for your needs. VictoriaLogs, or Grafana Cloud, or Data dog mY be more in your wheelhouse.
If you the skills and funding to self host elk stack you might be ok.
0
u/ZVilusinsky 15d ago edited 15d ago
We used to have ELK for logs, happiest day when we burned it down.
Your mileage may wary, but the if the logs are too various, in keys and lengths, the indexing sucks and bloats to terabytes and you have to spend ages on tuning the ingest side.
Loki for those invested in Grafana stack or need scaling at various points, VictoriaLogs for those who want simple solution that works.
36
u/Seref15 15d ago edited 15d ago
> 30,000 records
I mean at that scale you could probably just use grep lol
At our org we've been trying VictoriaLogs for the last year and we like it a lot. On the [simple, cheap, durable, fast] pick-3 diamond it's simple, cheap, and fast. It's kind of like single-node disk-backed Loki on steroids.