Splunk Search

How to generate a search for users that have clicked or visited a URL, how many times, and display results in a table?

SplunkHe4d
New Member

How to search for users that have clicked/visited a url, how many times, and display results in a table with two columns.

Column "A" would be the user, Column B the qty of hits to the url.

THANKS!

0 Karma

lguinn2
Legend

My answer assumes that the web server is Apache and that it uses a standard access.log to record information. It also assumes that the access.log is read into Splunk using the predefined sourcetype of access_combined:

index=wherever sourcetype=access_combined url=something
| stats count by clientip
0 Karma

lguinn2
Legend

Well, you aren't telling the community about the type of data that you are collecting from the web server, or what kind of web server it is. So there isn't really much help that the community can offer, without making huge assumptions.

How do you define "user"? In Apache, the user field is generally unimplemented, the best solution often must use clientip instead.

What is the sourcetype? What are the field names? These are the first things that you need to know before you write a search.

0 Karma
Get Updates on the Splunk Community!

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...

What's new in Splunk Cloud Platform 9.1.2312?

Hi Splunky people! We are excited to share the newest updates in Splunk Cloud Platform 9.1.2312! Analysts can ...

What’s New in Splunk Security Essentials 3.8.0?

Splunk Security Essentials (SSE) is an app that can amplify the power of your existing Splunk Cloud Platform, ...