Skip to content

[FEATURE] Dashboards Query Language (DQL) to DSL parser #948

@malayh

Description

@malayh

Is your feature request related to a problem?

I am building a search UI on top of Opensearch and I would want to be able to use DQL. My backend is written in python.

What solution would you like?

I want to be able to put a query like

severity.text: INFO or severity.text: WARN and resource.telemetry.sdk.language: go

which should give me a DSL like

{
    "query": {
        "bool": {
            "should": [
                {"match": {"severity.text": "INFO"}},
                {"bool": {
                    "must": [ 
                        {"match": {"severity.text": "WARN"}},
                        {"match": {"resource.telemetry.sdk.language": "go"}}
                    ]
                }}
            ]
        }
    }
}

What alternatives have you considered?

https://www.npmjs.com/package/@vartoso/kql-to-dsl

This solves the problem, but my backend is in Python. I need it to happen on the backend.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions