Given Apache logs in ES, how do I get Visitor Stay Length for each URL

Given Apache logs in ES, how do I get Visitor Stay Length for each URL

Apache logs:

222.105.82.235 - - [16/Nov/2021:10:04:37 +0530] "GET /admin/ HTTP/1.1" 301 529 "http://facebook.com/admin/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.198 Safari/DB4D4D"

You want to know how long someone spends on a particular page?
Where in this log does it give you that value?

Ys it is not there. Is there any way we can derive from above log?
Or is there way to add this fields from Apache config side?

You won't get that information from access logs, you need another tool to get this information, maybe a script on the server side of your application or a analytcs tool like Google Analytics, Plausible, Fathom e many others.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.