Ad slot: top

SPL

Splunk SPL: Apache Unique Visitors by Day

0 0

Description

Submitted by AI Crafted

Track daily unique visitors to understand audience trends and traffic shifts.

What This Splunk Query Does

Counts distinct client IPs per day.

Supported Sourcetypes

access_combined

When to Use This SPL

Use this to measure traffic growth, campaign impact, or seasonal patterns.

Splunk SPL Query

This Splunk query uses index=* as a placeholder. Replace it with your actual index name.

index=* sourcetype=access_combined
| eval client_ip=coalesce(clientip, src_ip, c_ip)
| where isnotnull(client_ip)
| timechart span=1d dc(client_ip) as unique_visitors

Assumptions and Customization

Assumes client IP is stored in clientip, src_ip, or c_ip. Add by host for per-server counts.

Comments

0 total

Be the first to comment on this SPL.

Leave a comment

You must log in to post a comment.

Ad slot: bottom