ElasticLens: Elasticsearch Chrome Extension for Monitor & Query Tool

An Elasticsearch incident rarely starts with a blank terminal and a clear diagnosis. A QA engineer reports that product search misses a common typo. A backend developer wants to compare staging and production. An SRE needs to know whether a slow query coincides with an overloaded node. An Elasticsearch Chrome extension can put those checks in one workspace when the cluster is reachable from the browser.

Quick answer. ElasticLens is an independent Elasticsearch Chrome extension for developers and operations teams. It connects directly to a user-configured cluster for monitoring, Query DSL, index management, alerts, and snapshots. It stores workspace settings in Chrome extension storage, requires no ElasticLens-hosted backend, and sends selected context to a configured AI provider only when a user starts an AI action.

What is ElasticLens, and who is this Elasticsearch Chrome extension for?

ElasticLens – Elasticsearch Monitor & Query Tool is a browser-based monitoring and query workbench. It gives developers, DevOps and SRE teams, search engineers, QA staff, and support teams a way to inspect the same cluster through a consistent interface. It is particularly useful when someone needs to compare an index, run a small search, or reproduce an API request during a handoff.

A technical founder might use the cluster summary before investigating a slow search. A support engineer with a read-only profile can check whether the expected document is present. A search engineer can inspect analyzers and compare query results before proposing a mapping change. In each case, the cluster and credentials remain under the user’s control.

How it works

  1. Install ElasticLens from the Chrome Web Store listing.
  2. Add the address of a cluster your browser can reach. Choose Basic authentication or an API key, or use the no-auth option for an isolated development cluster configured that way.
  3. Test the connection, give it a recognizable name, and switch to the profile for the environment you intend to inspect.
  4. Open the cluster summary, pick an index, and run a bounded search. Move to the REST Console when you need an exact Elasticsearch API request.
  5. If your team allows AI assistance, configure a provider and choose the context you want to send when starting an AI action.

Profiles can be backed up and restored. Treat a profile backup as sensitive until you know exactly what it contains. Use distinct names for development, staging, and production, and start with the least-privileged credentials that support the task.

What can you monitor and manage?

The cluster summary brings together node, index, and shard counts with CPU, heap, and disk indicators. Node diagnostics and metric history can help narrow down an investigation. For example, if search latency rose around the time a new index received heavy writes, indexing and search rates can help identify where to look next. A correlation in a dashboard is a lead to investigate.

At the index level, ElasticLens surfaces health, document count, storage, indexing rate, search rate, and latency. It also exposes mappings, settings, analyzers, and shard information. Index comparison and mapping conflict detection help when the same field behaves differently across indices. An Elasticsearch mapping conflict occurs when a field has incompatible definitions across indices, such as a date in one and a keyword in another. Queries across both may fail or produce confusing results.

The workbench includes an alias manager, atomic alias switching, and a reindex assistant. An alias is a name that points to one or more indices or data streams. Reindexing copies documents from a source to a destination. Prepare the destination’s mappings and settings first, verify results, then move the alias using a single alias update. Plan separately for writes that occur during the migration. Elastic alias documentation · Reindex API documentation

ElasticLens also exposes refresh, flush, force merge, close, and delete. Those actions have different operational costs and permissions. Force merging an active write index can be expensive. Closing or deleting the wrong index can interrupt users. Keep destructive access in a separate administrative profile and use your normal change and recovery procedures. Elasticsearch privileges

How do you query Elasticsearch from a browser?

ElasticLens includes an Elasticsearch Query DSL editor, a visual query builder, and examples. Query DSL is Elasticsearch’s JSON language for expressing searches, filters, and aggregations. Start with the visual builder for a simple search and use the editor when you need to control the exact request. A catalog investigation might combine fuzzy matching, availability filters, sorting, facets, and pagination. A facet is a result breakdown, such as counts by brand or category.

The query workbench supports JSON, table, and CSV result views, along with JSON, CSV, and Excel-compatible exports. Use those views to inspect a sample or share an approved result set. Set a small page size and select only the fields you need before exporting. Document workflows include create, read, update, duplicate, and delete, plus Bulk API operations. Review item-level responses in bulk work because a single request can report a mixture of successes and failures.

The REST Console is useful when you know the API path or want to reproduce a specific request. It accepts relative API paths and JSON request bodies, includes a REST guide and recipes, and keeps local request history. Check the selected profile before sending a request. A relative path is resolved against that profile’s cluster. Elasticsearch Query DSL documentation · Bulk API documentation

What does an investigation look like?

Suppose a merchandising team says that a search for “wireless headphones” returns old products first, and search became slower after a catalog release.

  1. Confirm the environment. Select a read-only staging profile, test it, and identify the exact index or alias the application uses.
  2. Look at the index. Compare the document count and storage against the expected load. Check that the affected fields have the mappings and analyzers you expect.
  3. Reproduce the report. Run the original search in Query DSL. Use a small page and include only product ID, name, status, and the fields needed to explain ranking.
  4. Change one thing. Compare the original query with a variant that filters inactive products or changes the sort. Keep the index, filters, result size, and test conditions consistent when comparing performance.
  5. Record the evidence. Review timing and result differences in the query performance history. Use historical comparison to flag a possible regression, then corroborate it with repeat requests and service metrics. Share a sanitized export or the relative REST request with the owning team.

If mappings are incompatible, reproduce against a new staging index first. A successful staging query does not establish that an alias cutover is safe. Verify indexing, permissions, application behavior, and the plan for new writes before changing a production alias.

How do alerts, shards, and snapshots fit into daily work?

ElasticLens supports per-index document and storage thresholds, active and resolved alert history, filters by index and severity, and browser notification testing. A threshold can flag that an index is growing faster than expected. Confirm that Chrome can deliver notifications on the workstation. Keep server-side alerting for incidents that must page someone when the browser is unavailable.

Shards are partitions of an Elasticsearch index. The shard view helps you investigate allocation and unassigned shards. Check disk watermarks, allocation rules, and node availability before using allocation retry. A retry asks Elasticsearch to reconsider placement after the underlying condition changes.

Snapshot tools cover repositories, snapshots, lifecycle policies, restore, and verification. Repository verification checks repository access. A restore drill in a safe environment tests whether your team can recover the data it needs. Review the target, index naming, privileges, and compatibility before a restore. Optional AI analysis can help summarize selected snapshot metadata if policy allows it. Elastic snapshot and restore documentation

How does optional AI assistance work?

ElasticLens supports OpenAI, Claude, Gemini, OpenRouter, Mistral, Ollama, and custom OpenAI-compatible endpoints. Provider availability and behavior depend on the endpoint, model, credentials, and network you configure. The core monitoring and query workflows are available without setting up a provider.

Natural-language query generation produces validated, read-only Elasticsearch Query DSL. For example, ask for active products under a price threshold and inspect the generated fields, filters, sort, and result size before running it. Validation can reject an unsuitable query shape, but a valid query can still be expensive or logically wrong. Keep queries scoped to an approved index and run them under Elasticsearch permissions appropriate to the task.

Ask AI can work with selected index data. Supported chat workflows stream responses as they arrive and offer Stop and Regenerate controls. Named conversations can be created, renamed, switched, exported, or deleted. Consider exported conversations sensitive when they include query details or document context.

Semantic search uses vector representations, or embeddings, to retrieve content by similarity in meaning. ElasticLens supports vectorization with progress, retry, cancellation, and resume after reload. Review the destination and expected permissions before starting. A workflow that writes vectors has different data and permission implications from read-only query generation.

For document-assisted AI, ElasticLens uses bounded context, document trimming, and prompt-injection safeguards. Treat these as controls that reduce exposure. An index document can contain text designed to influence a model. Review the selected data and generated query, and keep secrets and sensitive fields out of provider requests.

Where do credentials and data go?

The product’s published privacy model describes connections, credentials, history, and preferences as stored in Chrome extension storage. Cluster requests go directly from the extension to the configured Elasticsearch endpoint. There is no ElasticLens-operated backend or separate database required for this workflow.

AI is a separate data path. When you explicitly run an AI action, the extension can send the selected context to the provider endpoint you configured. Review that provider’s retention and processing policies, plus your organization’s rules for customer, employee, or operational data. Even a prompt with no full documents can reveal index names, field names, or internal infrastructure.

Use HTTPS for remote clusters, narrowly scoped API keys, and approved network paths. A browser extension cannot make a private endpoint reachable by itself. Inspect Chrome’s requested permissions and keep profile backups, result exports, and browser access under your organization’s normal controls. [Privacy policy]

How does ElasticLens compare with Kibana?

Consideration ElasticLens Kibana
Where it runs Chrome extension connecting to your configured Elasticsearch endpoint Web interface for the Elastic Stack, deployed or provided as part of an Elastic environment
Day-to-day focus Profile switching, focused cluster inspection, queries, and administrative tasks Broader Elastic workflows, including dashboards, data exploration, and solution experiences
Shared operations Browser-local workspace settings and history Shared assets and collaboration options, subject to deployment and permissions
AI usage Optional user-initiated actions with a configured provider Capabilities depend on Elastic’s deployment, configuration, and available features

Use ElasticLens when a lightweight Elasticsearch GUI would shorten a focused diagnostic or development task. Another tool may be better for centrally managed dashboards, shared incident workflows, unattended monitoring, or environments that prohibit browser extensions. Kibana can remain the main operational interface while ElasticLens serves as a focused workbench for approved users. Elastic Kibana documentation

Quick glossary

  • Query DSL is the JSON format Elasticsearch uses to describe searches and aggregations.
  • Mapping conflict means a field has incompatible definitions across indices.
  • Alias is a name applications can use to refer to one or more indices or data streams.
  • Reindexing copies documents into a destination whose settings and mappings you prepare.
  • Semantic search retrieves results by similarity in meaning, commonly using embeddings.

Frequently asked questions

Does ElasticLens need a hosted backend?

No. Core Elasticsearch requests go directly to the cluster endpoint you configure. Optional AI actions use the separate provider endpoint you choose.

Can I use ElasticLens with a private cluster?

Yes, if your Chrome browser can reach the endpoint through an approved network path and you have compatible authentication and permissions. A browser extension does not bypass a firewall or VPN.

Does ElasticLens send Elasticsearch documents to AI automatically?

The product describes AI data transfer as user-initiated. When you run an AI action involving selected index data, review the context and the configured provider’s policies.

Can ElasticLens run write operations?

Yes. It includes document writes, bulk operations, and index administration, subject to the privileges of the active profile. The AI-generated Query DSL workflow is read-only.

Can ElasticLens replace Kibana?

ElasticLens covers focused browser-based inspection and administration. Teams relying on shared dashboards or broader Elastic Stack workflows can keep using Kibana for those tasks.

Try it on a cluster you know

Install the Elasticsearch Chrome extension, start with a read-only staging profile, and reproduce one query or index check you already perform. You’ll know whether it fits when you can get from the original report to evidence you can share with the next person on the incident.

View ElasticLens in the Chrome Web Store

Product resources: [ElasticLens website] · [Documentation or knowledge base] · [GitHub repository]

ElasticLens is an independent product. It is not affiliated with, endorsed by, or sponsored by Elasticsearch BV or Elastic.

Comments