Skip to content

Dashboard Installation

github-actions[bot] edited this page Oct 3, 2026 · 1 revision

Complete guide for setting up Grafana datasources and importing the pre-built dashboards.

./setup.sh does most of this for you. Step 5 of setup.sh creates the OpenSearch datasources and imports the two Suricata dashboards through the Grafana API. Use this guide when setup.sh could 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.

Prerequisites

  • Grafana 12.x installed and running (install.sh installs 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)

Installation Steps

1. Access Grafana

# Open browser to your Grafana instance
http://<SIEM_IP>:3000

# Default credentials
Username: admin
Password: admin

Change the password when prompted on first login.

2. Add Datasources

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.

2a. InfluxDB Datasource (System Metrics — optional)

  1. Click ☰ menu → Connections → Data sources
  2. Click Add data source → Search InfluxDB
  3. 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)
  1. Click Save & test → ✅ Data source is working

2b. OpenSearch-Suricata Datasource

  1. Click Add data source → Search OpenSearch
  2. Configure:
Name: OpenSearch-Suricata
URL: http://localhost:9200
Access: Server (default)
Index name: suricata-*
Time field name: @timestamp
Version: 2.0+
  1. Leave auth unchecked (no basic auth needed)
  2. Click Save & test → ✅ Data source is working

2c. OpenSearch-pfBlockerNG Datasource

  1. Click Add data source → Search OpenSearch
  2. Configure:
Name: OpenSearch-pfBlockerNG
URL: http://localhost:9200
Access: Server (default)
Index name: pfblockerng-*
Time field name: @timestamp
Version: 2.0+
  1. Leave auth unchecked
  2. Click Save & test → ✅ Data source is working

3. Import Dashboards

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.

Dashboard 1: pfSense System & pfBlockerNG (optional, manual import)

  1. Click ☰ menu → Dashboards → New → Import
  2. Click Upload JSON file
  3. Select dashboards/pfsense_pfblockerng_system.json
  4. Grafana will prompt for two datasource variables:
    • InfluxDB: Select your pfsense InfluxDB datasource (system metrics)
    • OpenSearch: Select your OpenSearch-pfBlockerNG datasource (pfBlockerNG panels)
  5. 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.

Dashboard 2: Suricata IDS/IPS (WAN monitoring)

setup.sh imports this automatically. If it did not (Grafana unreachable at the time):

  1. Click Import → Upload JSON file
  2. Select dashboards/Suricata_IDS_IPS.json
  3. Select datasource: OpenSearch-Suricata
  4. Click Import

Dashboard 3: Suricata Per-Interface (LAN)

setup.sh imports this automatically. If it did not:

  1. Click Import → Upload JSON file
  2. Select dashboards/Suricata_Per_Interface.json
  3. Select datasource: OpenSearch-Suricata
  4. Click Import

Alternative: Create a Dashboard Manually

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)

Panel 1: Events Over Time
Type: Time series
Query: *
Metrics: Count
Group by: Date Histogram (@timestamp, Auto)
Panel 2: Event Type Distribution
Type: Table
Query: *
Metrics: Count
Group by: Terms (event_type.keyword, 20)
Columns: event_type, Count
Panel 3: Protocol Distribution
Type: Table
Query: *
Metrics: Count
Group by: Terms (proto.keyword, 10)
Panel 4: Top Source IPs
Type: Table
Query: *
Metrics: Count
Group by: Terms (src_ip.keyword, 20)
Columns: src_ip, Count
Sort: Count (descending)
Panel 5: Top Destination IPs
Type: Table
Query: *
Metrics: Count
Group by: Terms (dest_ip.keyword, 20)
Panel 6: Top Destination Ports
Type: Table
Query: *
Metrics: Count
Group by: Terms (dest_port, 20)
Panel 7: TLS Server Names (SNI)
Type: Table
Query: event_type:tls
Metrics: Count
Group by: Terms (tls.sni.keyword, 20)
Panel 8: DNS Queries
Type: Table
Query: event_type:dns
Metrics: Count
Group by: Terms (dns.rrname.keyword, 20)
Panel 9: HTTP Hosts
Type: Table
Query: event_type:http
Metrics: Count
Group by: Terms (http.hostname.keyword, 20)
Panel 10: Security Alerts
Type: Table
Query: event_type:alert
Metrics: Count
Group by: Terms (alert.signature.keyword, 20)
Columns: Alert Signature, Count, Severity
Panel 11: Events by Type (Timeseries)
Type: Time series
Query: *
Metrics: Count
Group by: 
  - Date Histogram (@timestamp, Auto)
  - Terms (event_type.keyword, 10)
Legend: {{event_type.keyword}}
Panel 12: Interface Distribution
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
  • Time options:
    • Timezone: Browser Time
    • Auto refresh: 30s
    • Default time range: Last 24 hours
  • Save dashboard

4. Verify Dashboard Data

After importing, you should see:

  1. Events Over Time - Line graph showing event rate
  2. Event Type Distribution - Table with counts for DNS, TLS, HTTP, QUIC, etc.
  3. Top Source/Dest IPs - Tables with internal and external IPs
  4. 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

Adapting the pfSense System Dashboard to Your NIC Names

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

  1. WAN dropdown (top-left) lists your real WAN NIC(s), e.g. ix0 or igb0. Select them.
  2. LAN dropdown lists bridges, VLANs and internal NICs, and does not list the WAN NICs.
  3. 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.

Dashboard Features

Time Range Controls

  • 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)

Panel Interactions

  • Click data point: Drill down to specific events
  • Hover: See detailed values
  • Table sorting: Click column headers
  • Table filtering: Use search box above tables

Variables (Optional)

Add dashboard variables for filtering:

  1. Click Dashboard settings → Variables → Add variable

  2. Create variables:

    • interface - in_iface
    • event_type - event_type.keyword
    • src_ip - src_ip.keyword
  3. Use in queries: in_iface:$interface

Customization

Change Panel Visualization

  1. Click panel title → Edit
  2. Change visualization type from dropdown
  3. Adjust query or settings
  4. Click Apply to save

Add New Panel

  1. Click Add → Visualization
  2. Select OpenSearch-Suricata datasource
  3. Build query (see examples above)
  4. Configure visualization
  5. Click Apply

Organize Panels

  1. Click Dashboard settings (gear icon)
  2. Enable Edit mode
  3. Drag panels to reposition
  4. Resize panels by dragging corners
  5. Save dashboard

Panel-Specific Tips

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

Troubleshooting

No Data in Panels

# 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 → Refresh

Panels Show "Field Not Found"

Check 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 (with alert.signature, alert.severity, alert.category)
  • http, dns, tls (with http.hostname, dns.rrname, tls.sni)
  • geoip_src, geoip_dest (with .location of type geo_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

Panels Show Wrong Data

  1. Check query filter: Edit panel → Query → Verify lucene query syntax
  2. Check aggregation: Metrics → Should be "Count" for most panels
  3. Check field name: Use .keyword suffix for string fields (e.g., event_type.keyword)

Dashboard Performance Issues

If dashboard is slow:

  1. Reduce time range: Use shorter periods (6h instead of 7d)
  2. Limit aggregation size: Change "Size" in Group by from 100 to 20
  3. Increase auto-refresh interval: Change from 30s to 1m
  4. Add query filters: Filter to specific event types or IPs

Export/Backup Dashboard

# 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 clipboard

Useful Queries

Common 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

Next Steps

Dashboard Sharing

Share with Team

  1. Click Share (arrow icon) at top of dashboard
  2. Choose sharing method:
    • Link: Copy URL (requires Grafana login)
    • Snapshot: Create public snapshot
    • Export: Download JSON for importing elsewhere

Create Playlists

For NOC/SOC displays:

  1. ☰ menu → Dashboards → Playlists
  2. New playlist
  3. Add dashboards and set interval
  4. Start playlist → Full screen

Set as Home Dashboard

  1. Click ★ (star) on dashboard to favorite
  2. ☰ menu → Profile → Preferences
  3. Home Dashboard: Select "Suricata IDS/IPS Dashboard"
  4. Save

Additional Resources


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.

Clone this wiki locally