Forum Discussion

acehobbs's avatar
acehobbs
Copper Contributor
Nov 09, 2019

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

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

  • chilberto's avatar
    chilberto
    Iron Contributor

    Hello acehobbs

    pageViews and requests are similar

      Request - Send information about a request handled by the application.

      PageViews - Send information about the page viewed in the application.

     

    In practice though the challenge is identifying what is sending the information and what settings have been applied. Assuming this is a asp.net web app, have a look at the application insights configuration file.

     

    Take a look to see if any sampling has been applied. A common way to do this is to add a TelemetryProcessor like the following:

     

    <Add Type="Microsoft.ApplicationInsights.WindowsServer.TelemetryChannel.AdaptiveSamplingTelemetryProcessor, Microsoft.AI.ServerTelemetryChannel">
    <MaxTelemetryItemsPerSecond>5</MaxTelemetryItemsPerSecond>
    <ExcludedTypes>Event;Exception</ExcludedTypes>
    </Add>

     

     

     

Resources