I can't recommend serious use of an all-in-one local Grafana Loki setup
It really is amazing at just how bad the various log shipping systems are for the simple use case of &quot;I have logs on some servers and I want them to be over here.&quot; We somehow peaked at rsyslog and have been struggling ever since.<p>If you don&#x27;t follow the one-true-architecture you will get bitten in a million ways.<p>* Log ingestion on the host pulls logs from the application&#x2F;system&#x2F;whatever, timestamps the logs itself (bc when you&#x27;re interested in failure states do you really trust the log emitted by a broken app? Also because devs are famously bad a timezones), adds it&#x27;s own metadata, and stores them in a local outbox queue.<p>* Local log ingestion determines where to send logs based on service discovery and periodically updates.<p>* Log ingestor ships the logs to a durable queue and flushes only after getting an ACK from the queue.<p>* Log processor reads from the queue and ships the logs off to persistent storage or a dead letter queue where you get an alert if it ever has something in it. Log processor only ACKs back to the queue only once it gets an ACK from the db. Logstash used to sin in this regard.<p>* Persistent storage treats logs as opaque blobs from the perspective of how they&#x27;re physically stored. Indexes are time-window based depending on your volume, usually daily, and shipped off to different tiers &#x2F; deleted on that basis.<p>This stack can horizontally scale indefinitely up to (and past since the queue backups allow you to temporarily fake more throughput than you really have) the throughput of your backing database.<p>I loathe how complicated and brittle the ELK stack is but they get this exactly right and if you implement it it becomes nigh-impossible to lose data. The market for &quot;ELK style architecture but not the size of a 400 lb gorilla&quot; has got to be huge but is seemingly untapped last I checked.