This project demonstrates the creation of an interactive Splunk dashboard to analyze Apache Web Traffic Logs in JSON format.
The dashboard provides real-time insights into web activity, error trends, top resources, user IPs, and geographic traffic distribution.
It is designed for web monitoring, security analysis, and performance troubleshooting.
- Analyze overall web traffic volume
- Monitor successful and failed HTTP responses
- Identify top requested URIs
- Track top users by IP address
- Visualize web traffic geographically using a Choropleth Map
- Splunk Enterprise
- Apache Web Access Logs (JSON format)
- SPL (Search Processing Language)
- Source:
apache_mixed_access_full (1).json - Host:
webserver - Sourcetype:
_json - Key Fields:
ipmethoduristatus_time
- Login to Splunk as Administrator
- Navigate to:
Settings β Add Data β Upload
- Upload
apache_logs.json
- Set:
- Source Type:
_json - Host:
webserver
- Review and submit
Verify ingestion:
source="apache_logs.json"
- Dashboard Name: Web Traffic Logs Dashboard
- Dashboard Type: Classic Dashboard
- Permissions: Private
A shared time picker is used to ensure consistency across all panels.
- Label: Time Range
- Token:
time_range
All panels use the shared time picker token
time_range.
Visualization: Single Value
source="apache_logs.json" host="webserver" sourcetype="_json"
| stats count AS "Total Web Requests"
Visualization: Single Value
source="apache_mixed_logs.json" host="webserver" sourcetype="_json" method=GET status=200
| stats count AS "Successful Responses"
Visualization: Single Value
source="apache_mixed_access_full (1).json" host="webserver" sourcetype="_json"
| where status>=400 AND status<500
| stats count AS "Client Errors"
Visualization: Single Value
source="apache_logs.json" host="webserver" sourcetype="_json"
| where status>=500 AND status<600
| stats count AS "Server Errors"
Visualization: Bar Chart
source="apache_logs.json" host="webserver" sourcetype="_json"
| stats count AS Hits by uri
| sort - Hits
Visualization: Bar Chart
source="apache_logs.json" host="webserver" sourcetype="_json"
| stats count AS Requests by ip
| sort - Requests
Visualization: Choropleth Map
source="apache_mixed_access_full (1).json" host="webserver" sourcetype="_json" method=GET
| table ip
| iplocation ip
| stats count by Country
| geom geo_countries featureIdField="Country"
- π Real-time traffic monitoring
- π¨ Error detection (4xx & 5xx)
- π Geographic traffic visualization
- π Insight into popular resources and users
- π Useful for security and anomaly detection
- Web server monitoring
- Security analysis
- Traffic trend analysis
- Performance troubleshooting
- Academic and lab submissions
This project delivers a comprehensive Splunk dashboard for analyzing web traffic logs using SPL queries and visual analytics. It enables administrators and security analysts to quickly understand traffic behavior, detect anomalies, and make informed decisions.
- Add alerts for high error rates
- Time-series trend analysis
- Brute-force or suspicious IP detection
- Integration with SIEM use cases
