
ElasticSearch & Kibana is one of the best combination to log all sorts of events.
For example I’ve set up an simple API to log visits (and other events like “clicks”) on websites.
The GitHub repository is here : https://github.com/lucgerrits/log-api
Your are free to have a look, copy modify report issues and commit modifications.
Note: I have programed much more website then presented here. For example, some where for a lawer, a gardener, a painter etc…