DQL Syntax

approved

by Andrew Usher

Syntax highlighting for Dynatrace Query Language (DQL) in code blocks. - This plugin has not been manually reviewed by Obsidian staff.

79 downloadsUpdated 1mo agoMIT

DQL Syntax

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

TokenExample
Commandsfetch, filter, summarize, sort, fields, parse
Functionscount, sum, filter, endsWith, matchesValue, if
Data typesstring, long, double, boolean, timestamp, duration
Keywordsand, or, not, in, as, by, from, on, true, false
Named paramsfrom:, to:, by:, on:
Operators| == != <= >= + - * / @ ~
Strings"double" 'single' `backtick-quoted`
Duration literals1h, 30m, 10s, 7d, 1w, 100ms
Numbers42, 3.14
Comments// and /* */

Query Templates

Ready-to-use DQL queries in templates/:

FileContent
logs-hunting.dqlLog analysis, error tracking, performance breakdowns
bizevents-analysis.dqlBusiness event aggregation and filtering
infrastructure-metrics.dqlHost metrics, timeseries, and Smartscape traversal

Build

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

References


License

MIT

Credits

For plugin developers

Search results and similarity scores are powered by semantic analysis of your plugin's README. If your plugin isn't appearing for searches you'd expect, try updating your README to clearly describe your plugin's purpose, features, and use cases.