Technology pageSEARCH · OBSERVABILITYTier 2

Elasticsearch / ELK

The reference search engine and observability stack: to index what SQL doesn't cover and centralize what your servers emit.

The topicWhat we're talking about

Elasticsearch alone is an indexing and full-text search engine. Its real operational value reveals itself in the complete ELK stack: Elasticsearch (indexing and querying) + Logstash or Filebeat (collection and transformation) + Kibana (visualization, dashboards, alerting). For an SMB, two main use cases where Elasticsearch plays a different role: in application search, it serves as a fast read index alongside your transactional SQL database; in observability (logs, metrics, security events), it becomes the primary store fed by collection agents, with Kibana as the single interface for querying and visualization.

My opinionMy owned point of view

My take on the ELK stack: it's a serious investment I deploy when your needs justify a real indexing and observability stack.

For application search, Elasticsearch complements your PostgreSQL: SQL stays the source of truth with its transactional guarantees and relations, Elasticsearch serves as an index optimized for complex queries (facets, suggestions, real-time aggregations).

For observability, the complete Filebeat, Logstash, Elasticsearch, Kibana stack centralizes logs from all your servers and applications, with unified dashboards and alerting. Without Kibana and without an ingestion pipeline, Elasticsearch alone loses most of its value: it's the stack you deploy, never the engine in isolation.

Special mention for SIEM: the ELK stack is one of the most deployed open source foundations for security event correlation and compliance.

Relevant when
  • Large catalog needing complex searches alongside PostgreSQL: facets, suggestions, autocompletion, fine scoring
  • Multi-server log centralization with unified Kibana dashboards and alerting
  • Application observability: correlation between logs, metrics and traces in a single interface
  • SIEM (Security Information and Event Management) with long retention and audit
  • Geographic data or complex time series beyond PostgreSQL capabilities
Skip it when
  • ×Simple search on a moderate catalog: PostgreSQL full-text suffices, no separate cluster to maintain
  • ×Logs from a single server: journald or Loki are simpler and more economical
  • ×Team without observability or DevOps culture: the ELK stack demands real configuration and maintenance work
  • ×Tight budget: Elasticsearch consumes a lot of RAM and requires several dedicated servers in production
+ Alternatives to considerOther paths depending on your profile
My approachHow I tackle it concretely
  1. 01

    For application search: PostgreSQL as source of truth, Elasticsearch as read index fed by change-data-capture (Debezium) or application-level ingestion

  2. 02

    For observability: Filebeat (collection), Logstash (transformation), Elasticsearch (primary store), Kibana (dashboards and alerting)

  3. 03

    Minimal 3-node cluster in production: no single-node, high availability non-negotiable

  4. 04

    Choice between Elasticsearch (SSPL) or OpenSearch (Apache 2.0) depending on your license sensitivity

  5. 05

    Sized indices and mapping templates defined before massive ingestion: avoid mapping explosion

  6. 06

    Automated index retention (ILM) to control storage, otherwise the bill skyrockets

Frequently asked questionsAbout this technology specifically
  • For application search: Elasticsearch or PostgreSQL full-text?
    Complementary in the vast majority of cases, not opposed. PostgreSQL stays source of truth with its transactional guarantees, constraints and relations. Elasticsearch comes as a read index, fed from Postgres, optimized for complex queries: advanced full-text search, facets, real-time aggregations. For simple search, keyword matching on a moderate catalog, PostgreSQL full-text largely suffices and avoids the overhead of a separate cluster. Moving to Elasticsearch is justified when your search needs exceed what SQL can do efficiently. Note that for observability (logs, SIEM, events), the question doesn't apply: Elasticsearch is itself the primary source.
  • Why talk about the ELK stack and not just Elasticsearch?
    Because Elasticsearch alone is an engine without an interface or ingestion pipeline. It's useless in isolation. Operational value comes from the complete stack: Filebeat or Logstash to collect and transform data (logs, events, business data), Elasticsearch to index and query, Kibana to visualize, build dashboards and configure alerts. Deploying Elasticsearch without a pipeline or visualization is missing the essential.
  • How much does a self-hosted ELK stack cost?
    For an SMB with a few servers to monitor or a medium catalog, expect an Elasticsearch cluster on 3 VPS with 8-16 GB RAM each, that is €80-200/month hosting. Initial setup (cluster + Filebeat/Logstash pipeline + Kibana + alerting) takes 4 to 10 days depending on complexity. Elastic Cloud (managed offering) starts around €100/month but climbs quickly with volume.
  • Elasticsearch or OpenSearch?
    Since the Elasticsearch license change in 2021 (move to SSPL, non-OSI-open-source), OpenSearch is the fork maintained by Amazon with a pure Apache 2.0 license. Very wide compatibility but growing divergence. For new projects without strong dependency on recent Elastic features, OpenSearch is the defensible choice. For existing projects in production on Elasticsearch, migration isn't urgent.
  • And ELK stack security?
    Critical. Many high-profile incidents involve Elasticsearch clusters exposed without authentication on the internet. Essential best practices: authentication enabled (free since 2020), TLS on all nodes, Kibana and admin access restricted to internal network or VPN, regular snapshot backups, index rotation. Properly deployed, the ELK stack is secure; poorly deployed, it's direct exposure of all your data and all your logs.
SEARCH · OBSERVABILITY

A project involving Elasticsearch / ELK?

Describe your context: I'll suggest the right level of investment.

First call
05 /Contact

Let's talk aboutyour project.

Describe your need in a few lines. Reply within 24h to plan next steps, detailed quote within 48h.

  • 24h response
  • NDA on request

By sending this form, you agree that your information will be used to respond to your request. Stored for 3 years, never shared with third-party advertisers. Learn more

Bordeaux & Nouvelle-Aquitaine