Repository navigation
Dashboard Installation
Complete guide for setting up Grafana datasources and importing the pre-built dashboards.
./setup.shdoes most of this for you. Step 5 ofsetup.shcreates the OpenSearch datasources and imports the two Suricata dashboards through the Grafana API. Use this guide whensetup.shcould not reach Grafana, when you want the optional pfSense system / pfBlockerNG dashboard (imported manually because it needs InfluxDB), or when you want to build panels by hand. The full list of shipped dashboards is in dashboards/README.md.
- Grafana 12.x installed and running (
install.shinstalls 12.3.0) - grafana-opensearch-datasource plugin installed
- OpenSearch accessible from Grafana server
- Suricata events flowing into OpenSearch (verify event count > 0)
- Optional: InfluxDB fed by Telegraf on pfSense — only needed for the pfSense system / pfBlockerNG dashboard (see Telegraf pfBlockerNG Setup)
# Open browser to your Grafana instance
http://<SIEM_IP>:3000
# Default credentials
Username: admin
Password: adminChange the password when prompted on first login.
The Suricata dashboards need two OpenSearch datasources. A third, InfluxDB, is only
required for the optional pfSense system / pfBlockerNG dashboard. setup.sh creates the
OpenSearch datasources automatically; the InfluxDB one is always manual.
- Click ☰ menu → Connections → Data sources
- Click Add data source → Search InfluxDB
- Configure:
Name: pfsense
URL: http://localhost:8086
Database: pfsense # not "telegraf" — the Telegraf output on pfSense writes to "pfsense"
User: pfsense
Password: (your InfluxDB password)
- Click Save & test → ✅ Data source is working
- Click Add data source → Search OpenSearch
- Configure:
Name: OpenSearch-Suricata
URL: http://localhost:9200
Access: Server (default)
Index name: suricata-*
Time field name: @timestamp
Version: 2.0+
- Leave auth unchecked (no basic auth needed)
- Click Save & test → ✅ Data source is working
- Click Add data source → Search OpenSearch
- Configure:
Name: OpenSearch-pfBlockerNG
URL: http://localhost:9200
Access: Server (default)
Index name: pfblockerng-*
Time field name: @timestamp
Version: 2.0+
- Leave auth unchecked
- Click Save & test → ✅ Data source is working
Shipped dashboard files and their UIDs:
| File | UID | Datasources | Imported by |
|---|---|---|---|
dashboards/Suricata_IDS_IPS.json |
suricata_ids_ips |
OpenSearch-Suricata |
setup.sh (automatic) |
dashboards/Suricata_Per_Interface.json |
suricata_per_interface |
OpenSearch-Suricata |
setup.sh (automatic) |
dashboards/pfsense_pfblockerng_system.json |
GflT1CsMz_v2 |
InfluxDB + OpenSearch-pfBlockerNG | manual |
Other dashboards in the dashboards/ directory (windows_exporter.json,
prometheus_stats.json, docker_container_monitoring.json, wazuh/*.json) are for
optional integrations and are described in dashboards/README.md.
- Click ☰ menu → Dashboards → New → Import
- Click Upload JSON file
- Select
dashboards/pfsense_pfblockerng_system.json - Grafana will prompt for two datasource variables:
-
InfluxDB: Select your
pfsenseInfluxDB datasource (system metrics) -
OpenSearch: Select your
OpenSearch-pfBlockerNGdatasource (pfBlockerNG panels)
-
InfluxDB: Select your
- Click Import
This dashboard uses both InfluxDB (CPU, RAM, interfaces, gateways) and OpenSearch-pfBlockerNG (IP blocks, DNSBL blocks, block logs). If its WAN/LAN dropdowns are empty or show the wrong NICs, see Adapting the pfSense system dashboard to your NIC names below.
setup.sh imports this automatically. If it did not (Grafana unreachable at the time):
- Click Import → Upload JSON file
- Select
dashboards/Suricata_IDS_IPS.json - Select datasource: OpenSearch-Suricata
- Click Import
setup.sh imports this automatically. If it did not:
- Click Import → Upload JSON file
- Select
dashboards/Suricata_Per_Interface.json - Select datasource: OpenSearch-Suricata
- Click Import
If you want to build your own instead of importing the JSON, create the dashboard
step-by-step. All field names below are the flat root-level fields written by
config/logstash-suricata.conf (nothing is nested under suricata.eve.*):
1. Create New Dashboard
- Click ☰ menu → Dashboards → New → New Dashboard
- Click Add visualization
- Select OpenSearch-Suricata datasource
2. Add Panels (Repeat for Each)
Type: Time series
Query: *
Metrics: Count
Group by: Date Histogram (@timestamp, Auto)
Type: Table
Query: *
Metrics: Count
Group by: Terms (event_type.keyword, 20)
Columns: event_type, Count
Type: Table
Query: *
Metrics: Count
Group by: Terms (proto.keyword, 10)
Type: Table
Query: *
Metrics: Count
Group by: Terms (src_ip.keyword, 20)
Columns: src_ip, Count
Sort: Count (descending)
Type: Table
Query: *
Metrics: Count
Group by: Terms (dest_ip.keyword, 20)
Type: Table
Query: *
Metrics: Count
Group by: Terms (dest_port, 20)
Type: Table
Query: event_type:tls
Metrics: Count
Group by: Terms (tls.sni.keyword, 20)
Type: Table
Query: event_type:dns
Metrics: Count
Group by: Terms (dns.rrname.keyword, 20)
Type: Table
Query: event_type:http
Metrics: Count
Group by: Terms (http.hostname.keyword, 20)
Type: Table
Query: event_type:alert
Metrics: Count
Group by: Terms (alert.signature.keyword, 20)
Columns: Alert Signature, Count, Severity
Type: Time series
Query: *
Metrics: Count
Group by:
- Date Histogram (@timestamp, Auto)
- Terms (event_type.keyword, 10)
Legend: {{event_type.keyword}}
Type: Table
Query: *
Metrics: Count
Group by: Terms (in_iface, 10)
3. Configure Dashboard Settings
- Click Dashboard settings (gear icon)
- General:
- Name:
Suricata IDS/IPS Dashboard - UID: anything unique — the shipped dashboard uses
suricata_ids_ips, so pick a different UID (e.g.suricata-custom) if you import that one too
- Name:
- Time options:
- Timezone: Browser Time
- Auto refresh: 30s
- Default time range: Last 24 hours
- Save dashboard
After importing, you should see:
- Events Over Time - Line graph showing event rate
- Event Type Distribution - Table with counts for DNS, TLS, HTTP, QUIC, etc.
- Top Source/Dest IPs - Tables with internal and external IPs
- Security Alerts - Table with IDS signatures (if any alerts generated)
If panels show "No data":
- Check time range (top right) - try "Last 24 hours"
- Verify events in OpenSearch:
curl http://localhost:9200/suricata-*/_count - Check datasource connection: Dashboard settings → Data sources
dashboards/pfsense_pfblockerng_system.json is not tied to any particular NIC naming
(igb*, ix*, em*, re*, vtnet*, hn*, ovpnc*, wg*, ...). Its interface pickers are Grafana
template variables that query InfluxDB, so they adapt to your hardware without editing JSON:
| Variable | Query (InfluxQL) | Notes |
|---|---|---|
WAN |
SHOW TAG VALUES FROM "gateways" WITH KEY = "interface" WHERE "host" =~ /^$Host$/ |
WAN = any interface that has a gateway in System → Routing → Gateways |
LAN_Interfaces |
SHOW TAG VALUES FROM "net" WITH KEY = "interface" WHERE "host" =~ /^$Host$/ with regex /^(?!enc0$)/
|
Everything Telegraf's net input sees except the enc0 IPsec pseudo-interface |
The InfluxDB database name is pfsense (not telegraf); the InfluxDB datasource must
point at it or every variable comes back empty.
Checks after import
-
WAN dropdown (top-left) lists your real WAN NIC(s), e.g.
ix0origb0. Select them. - LAN dropdown lists bridges, VLANs and internal NICs, and does not list the WAN NICs.
- WAN Statistics, Gateway Status and Network Traffic panels show data for the selected interfaces.
If the WAN dropdown is empty: no gateway is defined on the WAN interface, or Telegraf
is not sending the gateways measurement. Verify on the SIEM server:
influx -database pfsense -execute 'SHOW TAG VALUES FROM gateways WITH KEY = interface'If a physical NIC shows up under LAN: it has no gateway configured. That is correct for an internal interface; for a WAN interface, add its gateway in pfSense.
If nothing has data: confirm Telegraf is running on pfSense (service telegraf status,
telegraf --test --input-filter net) — see
Telegraf pfBlockerNG Setup and
Telegraf on pfSense.
If you run several pfSense boxes, the Host variable switches all of the above per firewall,
so one dashboard serves every deployment.
- Top right corner: Select time range
- Presets: Last 5m, 15m, 1h, 6h, 24h, 7d, 30d
- Custom: Click time range → Custom → Set dates
- Refresh: Auto-refresh every 30 seconds (configurable)
- Click data point: Drill down to specific events
- Hover: See detailed values
- Table sorting: Click column headers
- Table filtering: Use search box above tables
Add dashboard variables for filtering:
-
Click Dashboard settings → Variables → Add variable
-
Create variables:
-
interface- in_iface -
event_type- event_type.keyword -
src_ip- src_ip.keyword
-
-
Use in queries:
in_iface:$interface
- Click panel title → Edit
- Change visualization type from dropdown
- Adjust query or settings
- Click Apply to save
- Click Add → Visualization
- Select OpenSearch-Suricata datasource
- Build query (see examples above)
- Configure visualization
- Click Apply
- Click Dashboard settings (gear icon)
- Enable Edit mode
- Drag panels to reposition
- Resize panels by dragging corners
- Save dashboard
Table Panels:
- ✅ Use for aggregations and top-N lists
- ✅ Reliable with .keyword fields
- ✅ Good for detailed data
Timeseries Panels:
- ✅ Use for trends over time
- ✅ Can overlay multiple series
- ✅ Good for alerts timeline
Stat Panels:
⚠️ May not display correctly with OpenSearch- Use tables instead for single-value metrics
Pie Charts:
⚠️ May not display correctly with OpenSearch- Use tables for distribution data
# 1. Check OpenSearch has data
curl -s http://localhost:9200/suricata-*/_count | jq .count
# Should return number > 0
# 2. Check index pattern
curl -s http://localhost:9200/_cat/indices/suricata-* | head -5
# Should list daily indices like: suricata-YYYY.MM.dd
# 3. Check latest event
curl -s "http://localhost:9200/suricata-*/_search?size=1&sort=@timestamp:desc" | jq '.hits.hits[0]._source | {"@timestamp", "event_type": .event_type}'
# Should return recent event
# 4. Test datasource in Grafana
# Dashboards → Panel → Edit → Query inspector → RefreshCheck field mapping in OpenSearch:
# Top-level (flat) fields in the newest index
curl -s "http://localhost:9200/suricata-*/_mapping" | jq '.[].mappings.properties | keys' | head -40
# geoip_src.location must be geo_point for the map panel
curl -s "http://localhost:9200/suricata-*/_mapping" | jq '.[].mappings.properties.geoip_src.properties.location'Expected fields at the root of the mapping (flat structure, no suricata.eve.* prefix):
-
event_type,src_ip,dest_ip,src_port,dest_port,proto,in_iface,app_proto -
alert(withalert.signature,alert.severity,alert.category) -
http,dns,tls(withhttp.hostname,dns.rrname,tls.sni) -
geoip_src,geoip_dest(with.locationof typegeo_point)
If geoip_src.location is not geo_point, install the index template
(./scripts/install-opensearch-config.sh); it applies to indices created afterwards.
If fields missing, check Logstash is parsing correctly:
sudo journalctl -u logstash -n 50 | grep -i error- Check query filter: Edit panel → Query → Verify lucene query syntax
- Check aggregation: Metrics → Should be "Count" for most panels
-
Check field name: Use
.keywordsuffix for string fields (e.g.,event_type.keyword)
If dashboard is slow:
- Reduce time range: Use shorter periods (6h instead of 7d)
- Limit aggregation size: Change "Size" in Group by from 100 to 20
- Increase auto-refresh interval: Change from 30s to 1m
- Add query filters: Filter to specific event types or IPs
# Get dashboard JSON via API
curl -s -H "Authorization: Bearer YOUR_API_KEY" \
http://localhost:3000/api/dashboards/uid/suricata_ids_ips | \
jq .dashboard > suricata-dashboard-backup.json
# Or export from UI:
# Dashboard settings → JSON Model → Copy to clipboardCommon Lucene query examples for panels:
# All events
*
# Specific event type
event_type:alert
# Multiple event types
event_type:(alert OR dns)
# Specific IP
src_ip:"192.168.1.100"
# Port range
dest_port:[1 TO 1024]
# Protocol
proto:TCP
# Exclude internal IPs
NOT dest_ip:192.168.*
# High severity alerts
event_type:alert AND alert.severity:[1 TO 2]
# TLS with specific SNI
event_type:tls AND tls.sni:*.google.com
- Troubleshooting Guide - Common issues and solutions
- Configuration Reference - Detailed configuration options
- Explore OpenSearch indices:
http://<SIEM_IP>:9200/_cat/indices
- Click Share (arrow icon) at top of dashboard
- Choose sharing method:
- Link: Copy URL (requires Grafana login)
- Snapshot: Create public snapshot
- Export: Download JSON for importing elsewhere
For NOC/SOC displays:
- ☰ menu → Dashboards → Playlists
- New playlist
- Add dashboards and set interval
- Start playlist → Full screen
- Click ★ (star) on dashboard to favorite
- ☰ menu → Profile → Preferences
- Home Dashboard: Select "Suricata IDS/IPS Dashboard"
- Save
Source: docs/install/INSTALL_DASHBOARD.md. This wiki is generated from the repository on every push to main; edit the source file and open a pull request rather than editing the wiki page.
This wiki is generated from the Markdown files in pfsense-siem-stack on every push to main. Edits made here are overwritten; edit the source file named at the bottom of each page and open a pull request. Placeholders used throughout: admin@<PFSENSE_IP> is your pfSense SSH login, <SIEM_IP> your SIEM server, interface names like igc0 are examples. Licensed MPL 2.0.
Getting started
Suricata
pfBlockerNG
Telegraf
pfSense platform
- Upgrading pfSense ⭐
- Filterlog Stops After Rotation
- Traffic Shaping Guide
- Shaping Optimization Notes
- October 2026 Tuning Results
- CrowdSec (exploratory)
SIEM: deploy
- Quick Start
- New User Checklist
- SIEM Server Installation
- Forwarder Installation
- GeoIP Setup
- Dashboard Installation
SIEM: operate
- Management Console
- Forwarder Operations and Watchdog
- Multi-Interface and Retention
- Scripts Reference
SIEM: fix