
Security News
New Website “Is It Really FOSS?” Tracks Transparency in Open Source Distribution Models
A new site reviews software projects to reveal if they’re truly FOSS, making complex licensing and distribution models easy to understand.
@vartoso/kql-to-dsl
Advanced tools
Standalone KQL to Elasticsearch DSL converter extracted from Kibana.
A standalone KQL (Kibana Query Language) to Elasticsearch DSL converter extracted from Kibana.
npm install @vartoso/kql-to-dsl
import { buildEsQuery } from '@vartoso/kql-to-dsl';
// Define your data view (index pattern)
const dataView = {
title: 'my-index',
fields: [
{ name: 'status', type: 'string' },
{ name: 'timestamp', type: 'date' },
{ name: 'count', type: 'number' }
]
};
// Convert KQL to Elasticsearch DSL
const result = buildEsQuery(
dataView,
{ query: 'status:"active" AND count > 100', language: 'kuery' },
[], // filters
{ allowLeadingWildcards: true }
);
console.log(JSON.stringify(result, null, 2));
buildEsQuery(dataView, query, filters, config)
Converts a KQL query to Elasticsearch DSL.
Parameters:
dataView
- Object with title
and fields
arrayquery
- Object with query
string and language
('kuery' or 'lucene')filters
- Array of filter objects (optional)config
- Configuration object (optional)Returns: Elasticsearch bool query object
multi_match
, bool
, and other valid query typesMIT
FAQs
Standalone KQL to Elasticsearch DSL converter extracted from Kibana.
The npm package @vartoso/kql-to-dsl receives a total of 11 weekly downloads. As such, @vartoso/kql-to-dsl popularity was classified as not popular.
We found that @vartoso/kql-to-dsl demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
A new site reviews software projects to reveal if they’re truly FOSS, making complex licensing and distribution models easy to understand.
Security News
Astral unveils pyx, a Python-native package registry in beta, designed to speed installs, enhance security, and integrate deeply with uv.
Security News
The Latio podcast explores how static and runtime reachability help teams prioritize exploitable vulnerabilities and streamline AppSec workflows.