{"_id":"57e30e2debc7d90e0040056c","user":"55139533d028bb210040fac9","project":"55d22cd53c74062300aee584","githubsync":"","version":{"_id":"55d383ac0168850d0073f1da","project":"55d22cd53c74062300aee584","__v":9,"createdAt":"2015-08-18T19:12:44.826Z","releaseDate":"2015-08-18T19:12:44.826Z","categories":["55d383ad0168850d0073f1db","55d383ad0168850d0073f1dc","55d38d25f77e6d0d00b1b179","55f0af8b7dccfc0d00986a08","56047d370c78b00d0039b1c3","560481e1d5c3900d0003e79e","5604849b60d2c40d00deb4ba","56390754aaddb90d00c76018","58867f5fbd44ca1b005d29fd","58ab437f9048311b0089b732"],"is_deprecated":false,"is_hidden":false,"is_beta":false,"is_stable":true,"codename":"","version_clean":"2.0.0","version":"2"},"parentDoc":null,"__v":2,"category":{"_id":"56047d370c78b00d0039b1c3","__v":14,"pages":["56047d5af6b86e0d00284a0d","56047d6d60d2c40d00deb4b0","56047d76f6b86e0d00284a0f","56047d7e60d2c40d00deb4b3","56047d8a60d2c40d00deb4b5","5604e2fad895120d00a40a16","5609a5668aedf50d0004d18c","561ee5efcec1a50d0097949d","5639069b68b11f0d0048c94d","563907362fc5520d001a4d2e","5639087d049e420d00476ae8","56390eb72fc5520d001a4d48","56390ffbaaddb90d00c7603b","563c63a6ac77910d0027a019"],"version":"55d383ac0168850d0073f1da","project":"55d22cd53c74062300aee584","sync":{"url":"","isSync":false},"reference":true,"createdAt":"2015-09-24T22:46:15.487Z","from_sync":false,"order":2,"slug":"cdn-developer-api","title":"CDN Developer API"},"updates":["581245dabb6a680f00f3c2a7"],"next":{"pages":[],"description":""},"createdAt":"2016-09-21T22:48:13.592Z","link_external":false,"link_url":"","sync_unique":"","hidden":true,"api":{"settings":"","results":{"codes":[]},"auth":"required","params":[],"url":""},"isReference":true,"order":34,"body":"BelugaCDN log export allows near real time consumption of events as they happen on our global network.\n\n## Pricing\n10 million requests/month are free, $0.50/million events exported overage.\n\n## Use Cases\n- Import raw logs in near realtime to Elastic Search or Redis\n- Create near real-time dashboards using ElasticSearch Kibana\n- Archive logs as files to FTP/S3 for batch processing\n\n## Supported Endpoints\n[block:parameters]\n{\n  \"data\": {\n    \"0-0\": \"[https://www.elastic.co/products/elasticsearch](https://www.elastic.co/products/elasticsearch) \",\n    \"1-0\": \"[http://redis.io/](http://redis.io/) \",\n    \"0-1\": \"TCP/9200\",\n    \"1-1\": \"TCP/6379\",\n    \"h-0\": \"Service\",\n    \"h-1\": \"Default Endpoint\",\n    \"2-0\": \"FTP (File Transfer Protocol)\",\n    \"2-1\": \"TCP/21\"\n  },\n  \"cols\": 2,\n  \"rows\": 3\n}\n[/block]\n## Log Format\n\nThe following log fields are currently exported as JSON encoded records:\n[block:parameters]\n{\n  \"data\": {\n    \"0-0\": \"trace\",\n    \"0-1\": \"unique ID for request\",\n    \"1-1\": \"unix timestamp\",\n    \"3-1\": \"CDN site name\",\n    \"4-1\": \"CDN location name\",\n    \"5-1\": \"HTTP request method\",\n    \"6-1\": \"HTTP protocol\",\n    \"7-1\": \"user IP address\",\n    \"8-1\": \"user geographical location - continent\",\n    \"10-1\": \"user geographical location - country\",\n    \"12-1\": \"HTTP status code\",\n    \"13-1\": \"response size - bytes\",\n    \"14-1\": \"header size - bytes\",\n    \"15-1\": \"request URI\",\n    \"16-1\": \"user agent\",\n    \"17-1\": \"HTTP referer information\",\n    \"18-1\": \"content type\",\n    \"1-0\": \"time\",\n    \"3-0\": \"property_name\",\n    \"4-0\": \"zone\",\n    \"5-0\": \"request_method\",\n    \"6-0\": \"protocol\",\n    \"7-0\": \"remote_addr\",\n    \"8-0\": \"geo_continent\",\n    \"10-0\": \"geo_country\",\n    \"12-0\": \"status\",\n    \"13-0\": \"response_size\",\n    \"14-0\": \"header_size\",\n    \"15-0\": \"uri\",\n    \"16-0\": \"user_agent\",\n    \"17-0\": \"referer\",\n    \"18-0\": \"content_type\",\n    \"h-0\": \"JSON Document Key\",\n    \"h-1\": \"Description\",\n    \"2-0\": \"duration\",\n    \"2-1\": \"time duration of request\",\n    \"19-0\": \"cache_status\",\n    \"19-1\": \"cache status of the requested resource\",\n    \"9-0\": \"geo_continent_code\",\n    \"11-0\": \"geo_country_code\",\n    \"11-1\": \"user geographical location - country ISO code\",\n    \"9-1\": \"user geographical location - content ISO code\"\n  },\n  \"cols\": 2,\n  \"rows\": 20\n}\n[/block]\n\n[block:callout]\n{\n  \"type\": \"info\",\n  \"body\": \"Ready to get started or questions about Real-Time Logs? [Open a ticket](https://my.belugacdn.com/#support/new) or [tweet us](https://twitter.com/intent/tweet?text=%40BelugaCDN%20I%20need%20help%20setting%20up%20my%20log%20export) to get going!\"\n}\n[/block]\nFields Last Updated: **August 22, 2016**","excerpt":"Near real time log export to ElasticSearch, Redis, FTP and more.","slug":"real-time","type":"basic","title":"Real-Time Log Export"}

Real-Time Log Export

Near real time log export to ElasticSearch, Redis, FTP and more.

BelugaCDN log export allows near real time consumption of events as they happen on our global network. ## Pricing 10 million requests/month are free, $0.50/million events exported overage. ## Use Cases - Import raw logs in near realtime to Elastic Search or Redis - Create near real-time dashboards using ElasticSearch Kibana - Archive logs as files to FTP/S3 for batch processing ## Supported Endpoints [block:parameters] { "data": { "0-0": "[https://www.elastic.co/products/elasticsearch](https://www.elastic.co/products/elasticsearch) ", "1-0": "[http://redis.io/](http://redis.io/) ", "0-1": "TCP/9200", "1-1": "TCP/6379", "h-0": "Service", "h-1": "Default Endpoint", "2-0": "FTP (File Transfer Protocol)", "2-1": "TCP/21" }, "cols": 2, "rows": 3 } [/block] ## Log Format The following log fields are currently exported as JSON encoded records: [block:parameters] { "data": { "0-0": "trace", "0-1": "unique ID for request", "1-1": "unix timestamp", "3-1": "CDN site name", "4-1": "CDN location name", "5-1": "HTTP request method", "6-1": "HTTP protocol", "7-1": "user IP address", "8-1": "user geographical location - continent", "10-1": "user geographical location - country", "12-1": "HTTP status code", "13-1": "response size - bytes", "14-1": "header size - bytes", "15-1": "request URI", "16-1": "user agent", "17-1": "HTTP referer information", "18-1": "content type", "1-0": "time", "3-0": "property_name", "4-0": "zone", "5-0": "request_method", "6-0": "protocol", "7-0": "remote_addr", "8-0": "geo_continent", "10-0": "geo_country", "12-0": "status", "13-0": "response_size", "14-0": "header_size", "15-0": "uri", "16-0": "user_agent", "17-0": "referer", "18-0": "content_type", "h-0": "JSON Document Key", "h-1": "Description", "2-0": "duration", "2-1": "time duration of request", "19-0": "cache_status", "19-1": "cache status of the requested resource", "9-0": "geo_continent_code", "11-0": "geo_country_code", "11-1": "user geographical location - country ISO code", "9-1": "user geographical location - content ISO code" }, "cols": 2, "rows": 20 } [/block] [block:callout] { "type": "info", "body": "Ready to get started or questions about Real-Time Logs? [Open a ticket](https://my.belugacdn.com/#support/new) or [tweet us](https://twitter.com/intent/tweet?text=%40BelugaCDN%20I%20need%20help%20setting%20up%20my%20log%20export) to get going!" } [/block] Fields Last Updated: **August 22, 2016**