Splunk Search

need to calculate number of request in iis for each month.

nambir
New Member

I need to calculate number of request in iis for each month. I already stored the iis log in splunk.
i need to get the count for last 5 months need to compare.

Tags (1)
0 Karma

MousumiChowdhur
Contributor

Hi @nambir ,

Please use the below query and run the search for last 5 months.

index=<yourindex> | timechart span=1mon count by clientip

Thank You!

0 Karma

nambir
New Member

Hi,
Thanks for the response.
when i tried above query unfortunately it doesnt bring any result.

Query which i used till now:
host="PRODAPP1" sourcetype="iis"

Can you add on/append the query properly so it works for me.?
Whats the Index?

0 Karma

MousumiChowdhur
Contributor

Hi @nambir ,

Please use the below query:

host="PRODAPP1" sourcetype="iis" | timechart span=1mon count by c-ip

where c-ip is the client ip address from where you are getting hits to the web server.

Run the above query for last 5 months.

Thank you.

0 Karma
Get Updates on the Splunk Community!

Stay Connected: Your Guide to May Tech Talks, Office Hours, and Webinars!

Take a look below to explore our upcoming Community Office Hours, Tech Talks, and Webinars this month. This ...

They're back! Join the SplunkTrust and MVP at .conf24

With our highly anticipated annual conference, .conf, comes the fez-wearers you can trust! The SplunkTrust, as ...

Enterprise Security Content Update (ESCU) | New Releases

Last month, the Splunk Threat Research Team had two releases of new security content via the Enterprise ...