Dashboards & Visualizations

How do you chart unique IP addresses that come through our web servers over time?

dienel
New Member

I need to chart the number of unique IP addresses through our web servers in 15 minute buckets over time.

using this query:

index="web_access" host="mywebhost1" OR  host="mywebhost2" |timechart span=15m count by dc(clientip)

The resulting chart has counts that are way too high — in the thousands.

And this query...

index="web_access" host="mywebhost1" OR  host="mywebhost2" |stats dc(clientip) as clientip

...gives me a count of ~200 for the same time for the last hour.

Tags (1)
0 Karma

mstjohn_splunk
Splunk Employee
Splunk Employee

Hi @dienel,

Did the answer below solve your problem? If so, please resolve this post by approving it! If your problem is still not solved, keep us updated so that someone else can help ya. Thanks for posting!

0 Karma

KailA
Contributor

Hello,

I think it's just a little mistake you made in the first search.
Should be like this i guess

index="web_access" host="mywebhost1" OR host="mywebhost2" 
| timechart span=15m dc(clientip) 

That should give you the number of unique IP adress in 15min buckets.

Kail

dienel
New Member

using the phrase "| timechart span=15m dc(clientip)" results in "No results found"

0 Karma
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.
Get Updates on the Splunk Community!

Community Content Calendar, September edition

Welcome to another insightful post from our Community Content Calendar! We're thrilled to continue bringing ...

Splunkbase Unveils New App Listing Management Public Preview

Splunkbase Unveils New App Listing Management Public PreviewWe're thrilled to announce the public preview of ...

Leveraging Automated Threat Analysis Across the Splunk Ecosystem

Are you leveraging automation to its fullest potential in your threat detection strategy?Our upcoming Security ...