Skip to content
This repository has been archived by the owner on Nov 21, 2019. It is now read-only.

Provide examples for logfile parsing #6

Open
sneumann opened this issue Feb 24, 2017 · 2 comments
Open

Provide examples for logfile parsing #6

sneumann opened this issue Feb 24, 2017 · 2 comments

Comments

@sneumann
Copy link

Hi, this is so cool it should be possible to use this elsewhere.
That would require a bit more test in the readme, but especially
an example data provider like the ones in:
https://github.com/ebiwd/EMBL-EBI-Live-data-map/blob/master/parseLogMap.php#L34
Yours, Steffen

@khawkins98
Copy link
Contributor

Right now it's just been designed for the EBI Portals, services and Uniprot (a bit of info on displaying just those is in the source of https://github.com/ebiwd/EMBL-EBI-Live-data-map/blob/master/live-data-map.html)

We put this up on github in the hopes that someone would come along and say "that looks interesting".

We can add more data sources, just need a log file with a lat/long per request, that is:

target-layer,longitude,latitude,point-type 
markerClustersEBI,-5.6620,40.9681,0
markerClustersEBI,-5.6620,40.9681,0
markerClustersEBI,-71.0993,42.3451,0
markerClustersEBI,77.0000,20.0000,0
markerClustersEBI,-5.6620,40.9681,0
markerClustersEBI,-5.6620,40.9681,0
markerClustersEBI,113.5325,34.6836,0
markerClustersEBI,-5.6620,40.9681,0

It's a fairly primitive approach to doing this, but it works well enough. Ideally we would have request timestamps and a socket approach, but we didn't want to over engineer a first version...

If you can supply a log file with lat/long pairs, happy to work with you to implement that and potentially improve the rendering logic of the map.

And thanks for the kind word!

@sneumann
Copy link
Author

Ah, good. so one opportunity would be
https://developers.google.com/analytics/devguides/reporting/realtime/dimsmets/geonetwork
and alternative use something like http://2mohitarora.blogspot.de/2013/07/log-user-lat-and-long-in-apache-log.html and small script to extract just the format you mention above. I'll keep in mind, but no immediate implementation plans.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants