Skip to content

Latest commit

 

History

History
103 lines (81 loc) · 2.42 KB

28-query_langs.md

File metadata and controls

103 lines (81 loc) · 2.42 KB
SPDX-FileCopyrightText SPDX-License-Identifier title author footer description keywords color class style
© 2023 Menacit AB <[email protected]>
CC-BY-SA-4.0
Logging course: Alternative query languages
Joel Rangsmo <[email protected]>
© Course authors (CC BY-SA 4.0)
Introduction to different query/filtering languages in logging course
logging
siem
course
#ffffff
invert
section.center { text-align: center; } table strong { color: #d63030; } table em { color: #2ce172; }

Query languages

Alternatives for data exploration

bg right:30%


Through plugins, OpenSearch provides several different query languages besides Lucene for querying and aggregating documents.

Let's have a look at these!

bg right:30%


DQL

Dashboard Query Language.

Default option in OpenSearch Dashboards.

Aims to simplify common use-cases for data filtering.

bg right:30%


# Search for documents containing
# specified string in username field
user:mallory

# Combine multiple search terms using
# conditional statments and make use
# of wildcards and nummeric filters
hostname:db-*.int.example.org \
and (log_level >= 5 or type:exception)

bg right:30%


PPL

Piped Processing Language.

Comfortable for UNIX power-users and veterans of Splunk/Logpoint.

Supports easy runtime field creation.

bg right:30%


SQL

Structured Query Language.

Many developers and sysadmins are already proficient in SQL, making it a great option.

bg right:30%


If you wanna learn more, checkout the OpenSearch documentation for DQL and SQL/PPL

bg right:30%