Search...Search plugins and themes...
⌘K
Sign in
  • Get started
  • Download
  • Pricing
  • Enterprise
  • Account
  • Obsidian
  • Overview
  • Sync
  • Publish
  • Canvas
  • Mobile
  • Web Clipper
  • CLI
  • Learn
  • Help
  • Developers
  • Changelog
  • About
  • Roadmap
  • Blog
  • Resources
  • System status
  • License overview
  • Terms of service
  • Privacy policy
  • Security
  • Community
  • Plugins
  • Themes
  • Discord
  • Forum / 中文论坛
  • Merch store
  • Brand guidelines
Follow us
DiscordTwitterBlueskyThreadsMastodonYouTubeGitHub
© 2026 Obsidian

ESQL Syntax

Caio LopesCaio Lopes16 downloads

Syntax highlighting for Elasticsearch ES|QL in fenced code blocks.

Add to Obsidian
  • Overview
  • Scorecard
  • Updates2

ES|QL syntax highlighting for Obsidian code blocks.

Document Elasticsearch investigations, searches, dashboards, and threat-hunting queries with readable ES|QL highlighting. ESQL Syntax plugs into Obsidian's native code-block pipeline, so esql blocks behave exactly like built-in languages in Reading View, Live Preview, and source mode on desktop and mobile.

ES|QL syntax highlighting in Obsidian

Usage

FROM logs-*
| WHERE host.name == "web-01"
| STATS events = COUNT(*) BY user.name
| SORT events DESC

Use esql as the fenced-code language. Blocks highlight through Obsidian's native code-block pipeline in both editing and reading modes: colorization stays active while you edit, the language flair copies the block ("Copied to your clipboard"), and colors come from your theme's code variables.

Highlighted syntax

Token Examples
Directives and source commands SET, FROM, ROW, SHOW, TS
Processing commands WHERE, EVAL, STATS, SORT, LOOKUP JOIN
Functions COUNT, DATE_EXTRACT, MATCH, CIDR_MATCH, MV_APPEND
Fields and identifiers @timestamp, host.name, `field-with-dash`
Strings and comments "text", """raw text""", //, /* ... */
Literals and parameters -.1e2, 1 day, ?, ?pattern
Operators ==, !=, :, ::, LIKE, RLIKE, IS NOT NULL

Install

Community plugins

After acceptance into the Obsidian Community directory, search for ESQL Syntax under Settings → Community plugins.

Manual installation

  1. Download main.js, manifest.json, and styles.css from the latest matching GitHub release.
  2. Create <vault>/.obsidian/plugins/esql-syntax/.
  3. Copy all three files into that directory.
  4. Enable ESQL Syntax under Settings → Community plugins.

Query templates

File Purpose
templates/getting-started.esql Filtering and aggregation basics
templates/search.esql Full-text search and score ordering
templates/threat-hunting.esql ECS-style process hunting

The plugin only highlights templates; it never executes them.

Privacy and security

ESQL Syntax runs locally. It makes no network requests, requires no account, reads no vault files, executes no queries, and includes no telemetry, analytics, advertisements, or payments. The plugin only registers language definitions with Obsidian's built-in highlighters; it never injects HTML or renders content itself.

Development

From a clean checkout, run the release checks in this order:

npm ci
npm run build
npm test
npm run verify:release

The production build creates ignored main.js. See docs/submission-checklist.md for the release and Community-directory process.

References

  • Obsidian plugin submission
  • ES|QL basic syntax
  • ES|QL source commands
  • ES|QL processing commands
  • ES|QL functions and operators
  • Get started with ES|QL
  • ES|QL search tutorial
  • Threat hunting with ES|QL
  • Getting started with ES|QL blog
  • Kibana color-system discussion

License

MIT

HealthExcellent
ReviewPassed
About
Highlight ES|QL code blocks in Obsidian with native syntax coloring across Reading View, Live Preview, and source mode on desktop and mobile. Recognize directives, commands, functions, fields, strings, literals, and operators, use your theme's code colors, and support esql fenced code blocks and templates without executing them.
SyntaxLanguages
Details
Current version
0.1.1
Last updated
3 days ago
Created
3 days ago
Updates
2 releases
Downloads
16
Compatible with
Obsidian 1.0.0+
Platforms
Desktop, Mobile
License
MIT
Report bugRequest featureReport plugin
Author
Caio LopesCaio Lopesclivoa
GitHubclivoa
  1. Community
  2. Plugins
  3. Syntax
  4. ESQL Syntax

Related plugins

GDScript Syntax Highlighting

Add live GDScript syntax highlighting to code block.

Code Suite

Execute code inside your notes: Shiki syntax highlighting with 65+ themes, live streaming output, inline Matplotlib and Plotly graphs, shared variables, and styled HTML and PDF export with outputs.

Extended Code Highlight

Additional and configurable syntax highlighting for code block languages.

Simplified Chinese Word Splitting

Adds Simplified Chinese word splitting support for the editor and Vim mode.

LanguageTool

Unofficial integration of the LanguageTool spell and grammar checker.

VSCode Editor

Edit Code Files like VSCode.

Fountain Editor

Fountain (screenplay) syntax highlighting in the editor.

Dictionary

A multilingual dictionary that shows word definitions in the sidebar and popover synonyms.

Text to Speech

Hear your notes.

Shiki Highlighter

Highlight code blocks with Shiki.