application insights: what is the difference between pageViews and requests?

%3CLINGO-SUB%20id%3D%22lingo-sub-997415%22%20slang%3D%22en-US%22%3Eapplication%20insights%3A%20what%20is%20the%20difference%20between%20pageViews%20and%20requests%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-997415%22%20slang%3D%22en-US%22%3E%3CP%3Eunder%20logs%2C%20what%20is%20the%20difference%20between%20pageViews%20and%20requests%3F%26nbsp%3B%20Neither%20seems%20to%20correspond%20to%20what%20cloudflare%20logs%20tell%20us%20(e.g.%20cloudflare%20shows%2020%2C000%20hits%20for%20a%20particular%20URL%20in%20a%20given%20period%2C%20application%20insights%20shows%2010.%26nbsp%3B%20Also%2C%20the%20client%20IP%20is%20always%20blank%2C%20so%20we%20cant%20correlate%20hack%20attacks%20with%20the%20IPs%20they%20came%20from.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-997415%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EApplication%20Insights%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EAzure%20Log%20Analytics%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1123566%22%20slang%3D%22en-US%22%3ERe%3A%20application%20insights%3A%20what%20is%20the%20difference%20between%20pageViews%20and%20requests%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1123566%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F453032%22%20target%3D%22_blank%22%3E%40acehobbs%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Eby%20default%20app%20insights%20wont%20store%20the%20client%20IP.%20if%20you%20want%20to%20enable%20then%20please%20follow%20the%20below%20doc.%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fazure-monitor%2Fapp%2Fip-collection%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fazure-monitor%2Fapp%2Fip-collection%3C%2FA%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Esince%20you%20have%20a%20CDN%20infront%20of%20your%20app%2C%20the%20number%20of%20requests%20will%20be%20considerably%20less%20compared%20to%20what%20you%20see%20at%20the%20cloudfare.%20user%20requests%20will%20always%20be%20served%20from%20CDN%20as%20long%20as%20its%20been%20cached.%26nbsp%3B%3C%2FP%3E%3CP%3Epage%20view%20%3A%20number%20of%20views%20of%20individual%20pages%20on%20the%20application%3C%2FP%3E%3CP%3Erequests%3A%20number%20of%20incoming%20and%20outgoing%20calls%20made%20by%20your%20application.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E
New Contributor

under logs, what is the difference between pageViews and requests?  Neither seems to correspond to what cloudflare logs tell us (e.g. cloudflare shows 20,000 hits for a particular URL in a given period, application insights shows 10.  Also, the client IP is always blank, so we cant correlate hack attacks with the IPs they came from.

1 Reply

@acehobbs 

 

by default app insights wont store the client IP. if you want to enable then please follow the below doc.

https://docs.microsoft.com/en-us/azure/azure-monitor/app/ip-collection

 

since you have a CDN infront of your app, the number of requests will be considerably less compared to what you see at the cloudfare. user requests will always be served from CDN as long as its been cached. 

page view : number of views of individual pages on the application

requests: number of incoming and outgoing calls made by your application.