0

I have an EC2 instance running a XAMPP server. I have a file inside htdocs that I want analytics for

The directory structure is simple htdocs\a\b.txt

I just need basic analytics like how many times it's been accessed per week and from which countries

I'm not sure if AWS CloudWatch would give me analytics for this file but I don't want to use it since it's not free. what's an easy/quick way to get analytics for this file?

124697
  • 22,097
  • 68
  • 188
  • 315
  • Analytics is a very broad term. What information do you actually want? – Quentin May 05 '17 at 10:21
  • So there will be multiple files to parse? What exactly You want to get from this file(s)? Search each line for a string ocurence? – Janusz May 05 '17 at 12:18

1 Answers1

0

If you do not want to pay for any such analytics service, then you could write your own code.

Assuming you just want the number & country of visitors, you could use the this code for country data & something like this for visitor count.

You could modify the codes in the link & save the relevant data (country, timestamp etc.) to a file or database.

Community
  • 1
  • 1
agent420
  • 3,291
  • 20
  • 27