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

DQL Syntax

Andrew UsherAndrew Usher81 downloads

Syntax highlighting for Dynatrace Query Language (DQL) in code blocks.

Add to Obsidian
  • Overview
  • Scorecard
  • Updates6

Obsidian plugin — syntax highlighting for Dynatrace Query Language (DQL)

Engineers and SREs who document their Dynatrace workflows in Obsidian can get proper syntax highlighting for embedded DQL queries.

DQL Syntax highlighting


Usage

```dql
fetch logs, from:now()-1h
| filter matchesValue(log.source, "pgi.log")
| summarize count(), by:{status, host.name}
| sort count desc
| limit 100
```

Works in reading mode with full token highlighting and a copy button.


Install

Manual

  1. Download main.js, manifest.json, styles.css from the latest release
  2. Create .obsidian/plugins/dql-syntax/ in your vault
  3. Copy the three files there
  4. Enable in Settings → Community Plugins

What gets highlighted

Token Example
Commands fetch, filter, summarize, sort, fields, parse
Functions count, sum, filter, endsWith, matchesValue, if
Data types string, long, double, boolean, timestamp, duration
Keywords and, or, not, in, as, by, from, on, true, false
Named params from:, to:, by:, on:
Operators | == != <= >= + - * / @ ~
Strings "double" 'single' `backtick-quoted`
Duration literals 1h, 30m, 10s, 7d, 1w, 100ms
Numbers 42, 3.14
Comments // and /* */

Query Templates

Ready-to-use DQL queries in templates/:

File Content
logs-hunting.dql Log analysis, error tracking, performance breakdowns
bizevents-analysis.dql Business event aggregation and filtering
infrastructure-metrics.dql Host metrics, timeseries, and Smartscape traversal

Build

npm install
npm run build   # production → generates main.js
npm run dev     # watch mode for development

References

  • DQL Language Reference
  • DQL Commands
  • DQL Functions
  • DQL Operators

License

MIT

Credits

  • Inspired by and forked from https://community.obsidian.md/plugins/talon-cql
HealthExcellent
ReviewSatisfactory
About
Highlight DQL code blocks in Obsidian with full token coloring and a copy button in reading mode. Recognize commands, functions, data types, operators, durations, numbers, strings, comments and include ready-to-use query templates.
SyntaxLanguages
Details
Current version
1.1.0
Last updated
2 months ago
Created
2 months ago
Updates
6 releases
Downloads
81
Compatible with
Obsidian 1.0.0+
Platforms
Desktop, Mobile
License
MIT
Report bugRequest featureReport plugin
Author
Andrew UsherAndrew Usherandrewusher
GitHubandrewusher
  1. Community
  2. Plugins
  3. Syntax
  4. DQL 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.