RousselTMLEARNING

Observability

Elastic path project: centralising and using logs

The validation project of the "Elastic Stack mastery" path: Elastic Agent and Fleet, Logstash, Elasticsearch (data streams, ILM), Kibana (ES|QL, Lens, alerts); requirements, steps and assessment grid.

1. Requirements #

What is expected.

Context #

An operations team wants to centralise logs from its Linux servers and from a legacy application writing to a text file, keep them 30 days, analyse them and be warned of error bursts.

Fleet-managed Elastic Agent, Logstash for the legacy application, Elasticsearch, Kibana.
RequirementComponentCourse
Collect server system logsElastic Agent + FleetElastic Agent
Structure the legacy application logsLogstash (dissect, translate)Logstash
Keep 30 daysData streams + ILMElasticsearch
Analyse and visualiseES|QL, LensKibana
Alert on error burstsES|QL rule + connectorKibana
Read access for the teamDedicated role and spaceElasticsearch, Kibana

2. Steps #

The guided lab.

Outline #

  1. Set up the Fleet lab (lab 1 of the Elastic Agent course).
  2. Check system log collection.
  3. Create the index template and the 30-day ILM policy.
  4. Add Logstash for the legacy application.
  5. Analyse with ES|QL and build the dashboard.
  6. Create the alert rule and the read-only role.

3. Assessment grid #

What validates the project.

Criteria #

CriterionCheck
Collectionthe agent is Healthy in Fleet and logs-system.*-lab receives data
Structuringthe log.level, http.response.status_code fields and the translated label exist in logs-legacyapp-lab
RetentionGET logs-legacyapp-lab/_ilm/explain shows the 30-day policy
Analysisa dashboard with at least three visualisations across both sources
Alertingthe rule goes Active during a simulated error burst
Securitya "reader" user sees the dashboard but cannot change anything
Good practice: Export the dashboard (saved objects) and version it with your configuration files: that is your deliverable.

Related articles

The observability trilemma: cost, completeness and performance, and how solutions resolve it

Understanding the observability trilemma (cost, data completeness, query performance), its three trade-offs, …

Kibana Maps and Canvas: geographic maps and presentations

Build maps with Kibana Maps (document, aggregation and choropleth layers, ES|QL) and dynamic presentations wi…

Machine learning in Elastic: anomaly detection and AIOps

Automatically detect abnormal behaviour: anomaly detection jobs, datafeeds, detectors, influencers, alerts, f…

Keep learning

Support us

♥ SUPPORT US

Support RousselTM Learning

Courses, articles, labs and certificates stay free with no intrusive ads. A voluntary contribution, of any amount you choose, pays for hosting, lab environments and new content.

Contribute with PayPal Any amount · card or PayPal accountLearn more
QR code PayPal
Or scan this QR code with your phone

Thank you, every contribution counts!