Data Flow in ELK Stack: Logstash (Collect & Transform) → Elasticsearch (Store & Search) → Kibana (Visualize)
Explore Elasticsearch Query DSL
Elastic (formerly Elasticsearch) is a suite of open-source tools for search, analytics, and data visualization, built around the core Elasticsearch engine. It’s widely used for:
Elasticsearch enables you to build powerful search experiences for websites, applications, and enterprise data using Elastic’s unified platform.
GET /_search
{
"query": {
"bool": {
"must": [
{ "match": { "title": "Search" }},
{ "match": { "content": "Elasticsearch" }}
],
"filter": [
{ "term": { "status": "published" }},
{ "range": { "publish_date": { "gte": "2015-01-01" }}}
]
}
}
}
Try the Logstash Quick Start
Logstash is an open-source data processing pipeline tool developed by Elastic. It ingests, transforms, and ships data from various sources (logs, databases, APIs) to destinations like Elasticsearch, databases, or cloud storage.
A Logstashs pipeline has 3 stages: Input → Filter → Output.
Example config file (logstash.conf):
input {
file {
path => "/var/log/nginx/access.log" # Read Nginx logs
start_position => "beginning"
}
}
filter {
grok {
match => { "message" => "%{COMBINEDAPACHELOG}" } # Parse log format
}
date {
match => [ "timestamp", "dd/MMM/yyyy:HH:mm:ss Z" ] # Fix timestamp
}
}
output {
elasticsearch {
hosts => ["http://localhost:9200"] # Send to Elasticsearch
index => "nginx-logs-%{+YYYY.MM.dd}"
}
}
Kibana is the visualization and management UI for the Elastic Stack.
Explore Grafana Labs Tutorials
Grafana is an open-source dashboard and visualization tool designed for monitor and analyzing time-series data. It connect to multiple data sources (like Elasticsearsh, MySQL, stc.) and lets you to create interactive dashboards with charts, graphs, and alerts.
Logs → Logstash/Beats → Elasticsearch → Kibana (logs)
Metrics → Prometheus → Grafana (metrics)
Try the Grafana Playground (pre-built demos).