Getting Started with Kibana
Accessing Kibana
Open your browser and navigate to your Kibana instance:
Local installation: http://localhost:5601
Cloud deployment: https://your-deployment.kb.elastic.cloud
First Login
If security is enabled, you'll see a login screen:
Default credentials (local dev):
- Username:
elastic - Password: Generated during Elasticsearch setup (check console output)
Cloud deployment: Use credentials provided when you created your deployment.
The Kibana Interface
Main Navigation
Kibana's interface consists of several key areas:
┌────────────────────────────────────────────────────┐
│ [☰] Kibana Logo Search... [👤] [⚙️] │ ← Header
├──────┬─────────────────────────────────────────────┤
│ │ │
│ 📊 │ │
│ 🔍 │ Main Content Area │
│ 📈 │ │
│ 🛠️ │ │
│ │ │
│ │ │
└──────┴─────────────────────────────────────────────┘
↑
Navigation
Menu
1. Header Bar
Located at the top:
- Hamburger menu (☰): Toggle navigation sidebar
- Search bar: Quick search across Kibana objects
- User icon (👤): Account settings, logout
- Settings icon (⚙️): Global settings, theme switcher
2. Navigation Menu (Left Sidebar)
The main navigation is organized into sections:
Analytics
- Discover: Explore and search data
- Dashboard: View and create dashboards
- Visualize Library: Manage visualizations
- Canvas: Create pixel-perfect presentations
- Maps: Geographic data visualization
- Graph: Explore relationships in data
- Machine Learning: Anomaly detection and forecasting
Observability
- Overview: Observability summary
- Alerts: Manage alerts and rules
- APM: Application Performance Monitoring
- Uptime: Website and service monitoring
- Logs: Log aggregation and analysis
- Metrics: Infrastructure metrics
- Service Maps: Visualize service dependencies
Security
- Overview: Security posture
- Alerts: Security alerts and detections
- Timelines: Investigation workspace
- Cases: Incident management
Management
- Stack Management: Configure Elasticsearch and Kibana
- Index Patterns/Data Views
- Saved Objects
- Index Management
- Alerting and Actions
- Advanced Settings
3. Main Content Area
The central area where you work with data, create visualizations, or configure settings.
Understanding Kibana Spaces
Kibana Spaces allow you to organize your dashboards, visualizations, and other saved objects into separate areas.
What are Spaces?
Think of Spaces as isolated environments within Kibana:
┌─────────────────────────────────────────────┐
│ Kibana Instance │
├─────────────────────────────────────────────┤
│ 📁 Default Space │
│ - Marketing Dashboards │
│ - Sales Visualizations │
│ │
│ 📁 Development Space │
│ - Test Dashboards │
│ - Debug Visualizations │
│ │
│ 📁 Production Space │
│ - Live Monitoring │
│ - Production Alerts │
└─────────────────────────────────────────────┘
Creating a Space
- Go to Stack Management → Kibana → Spaces
- Click "Create a space"
- Fill in details:
- Name: "Development"
- Identifier: "dev" (used in URLs)
- Description: "Development and testing"
- Color: Choose an identifier color
- Click "Create space"
Switching Spaces
- Click the space selector in the header (left of search bar)
- Choose the space you want to switch to
Adding Sample Data
Sample data is the fastest way to start learning Kibana.
Steps to Add Sample Data
From the home page, click "Try sample data"
You'll see three options:
Sample eCommerce Orders
- E-commerce transactions
- Customer behavior analysis
- Sales metrics
Sample Flight Data
- Flight routes and delays
- Geographic visualization
- Time-based analysis
Sample Web Logs
- Web server access logs
- Traffic analysis
- HTTP status codes
For each dataset, click "Add data"
Click "View data" to see the pre-built dashboard
What Gets Installed
Each sample dataset includes:
- Index with sample documents (~4,000-5,000 records)
- Index pattern (data view) for the index
- Pre-built dashboard showing key insights
- Visualizations used in the dashboard
- Canvas workpad (for eCommerce data)
Example: Sample eCommerce Orders creates:
kibana_sample_data_ecommerce (index)
├── Dashboard: [eCommerce] Revenue Dashboard
├── Visualizations:
│ ├── [eCommerce] Sales by Category
│ ├── [eCommerce] Revenue Over Time
│ ├── [eCommerce] Top Products
│ └── ... (8 more)
└── Canvas: [eCommerce] Order Details
Exploring the Sample Dashboard
Let's explore the eCommerce dashboard:
1. Open the Dashboard
- Go to Dashboard in the navigation menu
- Click "[eCommerce] Revenue Dashboard"
2. Dashboard Components
You'll see several panels:
Metric Panels (top)
- Total Revenue
- Average Order Value
- Total Sold Quantity
- Total Orders
Visualizations (below)
- Sales by category (pie chart)
- Sales over time (line graph)
- Top selling products (bar chart)
- Revenue by region (map)
- Orders by day of week (heat map)
3. Interactive Features
Time Picker (top right)
Last 15 minutes | Last 30 minutes | Last 1 hour | ...
Try changing the time range:
- Click the time picker
- Select "Last 7 days"
- Watch the dashboard update
Filters (top)
Add a filter:
- Click "+ Add filter"
- Field:
category - Operator:
is - Value:
Men's Clothing - Click "Save"
The dashboard now shows only men's clothing data!
Drill-Down (click on visualizations)
- Click on a pie slice in the category chart
- Notice a filter is automatically added
- All panels update to show filtered data
- Remove filter by clicking the X on the filter badge
4. Saving a Filtered View
Create your own view:
- Apply some filters
- Change the time range
- Click "Save" in the top menu
- Choose "Save as new dashboard"
- Give it a name: "My Custom View"
- Click "Save"
Understanding Index Patterns (Data Views)
Before exploring data, understand how Kibana connects to Elasticsearch.
What is an Index Pattern?
An index pattern (now called Data View in Kibana 8.x) tells Kibana which Elasticsearch indices to query.
Elasticsearch Indices:
- logs-2024-01-01
- logs-2024-01-02
- logs-2024-01-03
Index Pattern: logs-*
(Matches all three indices)
Viewing Existing Data Views
- Go to Stack Management → Kibana → Data Views
- You'll see data views for sample data:
kibana_sample_data_ecommercekibana_sample_data_flightskibana_sample_data_logs
Anatomy of a Data View
Click on a data view to see its configuration:
- Name: Display name in Kibana
- Index pattern: Pattern matching indices (e.g.,
logs-*) - Time field: Field used for time-based queries
- Fields list: All fields available in the matched indices
- Field name
- Field type (string, number, date, etc.)
- Searchable/Aggregatable status
Basic Navigation Patterns
Opening Multiple Tabs
Kibana supports browser tabs. Open multiple views:
- Right-click a dashboard → "Open in new tab"
- Work on a visualization while referencing a dashboard
- Compare different time ranges side-by-side
Using Breadcrumbs
Track your location:
Dashboards > [eCommerce] Revenue Dashboard > Edit
Click breadcrumbs to navigate back to previous levels.
Keyboard Shortcuts
Speed up your workflow:
| Shortcut | Action |
|---|---|
/ | Focus search bar |
Ctrl/Cmd + K | Open command palette |
Ctrl/Cmd + / | Toggle navigation menu |
Esc | Close modal/dialog |
Search Bar (Global)
The search bar in the header lets you quickly find saved objects:
Type: "revenue"
Results:
- [eCommerce] Revenue Dashboard
- [eCommerce] Revenue Over Time (visualization)
Click a result to open it immediately.
Customizing Your Experience
Changing Theme
- Click user icon (👤) in header
- Select "Dark mode" or "Light mode"
- Kibana immediately applies the change
Setting Default Index Pattern
- Go to Stack Management → Kibana → Advanced Settings
- Search for
defaultIndex - Select your preferred default data view
- Click "Save"
Language and Region
- Go to Stack Management → Kibana → Advanced Settings
- Search for
dateFormat - Customize date format:
MMM D, YYYY @ HH:mm:ss.SSS - Adjust timezone settings if needed
Common UI Patterns
Save/Cancel Buttons
Most screens have action buttons in the top-right:
- Save: Persist changes
- Save and return: Save and go back
- Cancel: Discard changes
Filter Pills
Filters appear as colored pills:
[🔍 category: "Men's Clothing"] [✕]
[🔍 geoip.country_iso_code: "US"] [✕]
- Click the X to remove
- Click the pill to edit or disable temporarily
- Drag to reorder (affects query performance)
Action Buttons (...)
Three-dot menus provide contextual actions:
On dashboards:
- Edit
- Clone
- Delete
- Export
- Share
On visualizations:
- Inspect
- Copy as cURL
- Download as CSV
Tips for New Users
Start with Sample Data
Don't jump into your own data immediately. Use sample data to:
- Learn the interface
- Understand capabilities
- Test queries safely
- Build confidence
Explore, Don't Fear
Kibana is non-destructive to your data:
- Visualizations don't modify source data
- Dashboards are just saved views
- You can't break Elasticsearch from Kibana UI
- Deleted objects can be recovered (if backed up)
Use the Documentation
Kibana has excellent in-app help:
- Look for
?icons for contextual help - Click "Help" links in any section
- Most fields have tooltip explanations
Save Your Work Frequently
Until you're comfortable:
- Save dashboard changes often
- Clone before making major edits
- Export important dashboards as backup
Common Beginner Questions
Q: Why can't I see any data in Discover? A: Check your time range. Default is "Last 15 minutes" - your data might be older.
Q: What's the difference between a visualization and a dashboard? A: A visualization is a single chart/graph. A dashboard is a collection of multiple visualizations.
Q: Can I delete sample data? A: Yes! Go to home → Sample data → "Remove" for each dataset.
Q: How do I know what data I have? A: Go to Stack Management → Index Management to see all indices and their document counts.
Q: Why do some fields say "not aggregatable"? A: Text fields analyzed for full-text search can't be aggregated. Use the .keyword version instead.
Next Steps
Now that you're comfortable with the interface:
- Chapter 3 (Discover): Learn to explore and search data
- Chapter 4 (Visualizations): Create your first charts
- Chapter 5 (Dashboards): Build full dashboards
Summary
In this chapter, you learned:
- ✅ How to navigate the Kibana interface
- ✅ Understanding Spaces for organization
- ✅ Adding and exploring sample data
- ✅ What index patterns/data views are
- ✅ Basic navigation and customization
- ✅ Common UI patterns and shortcuts
You're now ready to start exploring data in depth!