⛏️GetSplunky!
Lv.1Intern
0 XP
0
Home Map Stats Drill Board Log In
CoursesArticlesSPL Cheat SheetCertification PathAboutPrivacyTerms

Splunky is an independent, free study resource. It is not affiliated with, endorsed by, or sponsored by Splunk or Cisco. Splunk, SPL and related marks are trademarks of Splunk, a Cisco company, and are used here only to identify the certifications this site helps you study for.

© 2026 Splunky

Back to Floor
SignalFlow Forge • Room 2

Spatial (by) vs. Temporal (over) Aggregations

Understanding the distinction between "by" aggregations and "over" transformations is one of the highest-yield concepts on the SPLK-4001 exam.

Using the "by" parameter (spatial aggregation) combines multiple Metric Time Series together at each individual timestamp, grouped by one or more dimensions—for example, .sum(by=['region', 'service']) sums across all hosts in each region and service at every 10s interval. Omitting "by" aggregates all matching MTS into a single combined series.

Using the "over" parameter (temporal transformation) evaluates each MTS independently across a sliding time window—for example, .mean(over='5m') smooths noisy 10s spikes for every single host over a rolling 5-minute window. You can chain both operations (such as .mean(over='5m').sum(by='service')) to smooth per-host data before summing across a service.

Chaining Temporal (over) & Spatial (by) Functions
# Step 1: Smooth each host over a 5m rolling window
# Step 2: Sum the smoothed values across hosts per service
data('http.requests').sum(over='5m').sum(by='service.name').publish(label='5m Req/Service')
Remember the rule of thumb: "by" = across MTS (space/dimensions at one timestamp); "over" = across time (rolling window per MTS).

Knowledge Check

Prove your understanding to clear the room (Rewards XP)
Drag items to their correct zone (or tap item then tap zone on mobile)
.mean(by=['env', 'region']) — combines multiple MTS at each timestamp
.percentile(95, over='15m') — evaluates each MTS across a rolling time window
filter('cloud.provider', 'aws') — selects matching MTS before calculation
.publish(label='p95_latency') — renders the computed stream on the chart
Spatial Aggregation (by)
Temporal Transformation (over)
Stream Filter (filter)
Output Stream (publish)