Knowledgebase

Portal Home > Knowledgebase > CDN > Fastly > Fastly - Where are my stats?


Fastly - Where are my stats?




As of May 2014, our customers do not have direct access to their traffic stats via the Fastly management console.
Yes, you can open the stats tab and view the graphs, but even if you select to see period totals rather than averages, you will only see rounded numbers.

 There are 2 ways to work around this issue:

1. Use our Stats retrieval tool, embedded and available below
You need your account API key to retrieve your stats. 




2. Use the API directly. Here is a command line example: 

curl -H "Fastly-Key: YOUR-API-KEY" https://api.fastly.com/stats/usage?from=last+month

The response is a JSON string similar to this: 

{"data":{"africa":{"bandwidth":"0","requests":"0"},
"anzac":{"bandwidth":26561910600,"requests":8188715},
"asia":{"bandwidth":154837147933,"requests":41311121},
"europe":{"bandwidth":2932571379946,"requests":1092662341},
"latam":{"bandwidth":"0","requests":"0"},
"usa":{"bandwidth":682091614033,"requests":180709606}},
"status ":"success","msg":null,
"meta":{"from":"2014-03-01 12:00:00 UTC","to":"2014-03-31 12:00:00 UTC","by":"day","region":"all"}}



Was this answer helpful?

Add to Favourites Add to Favourites    Print this Article Print this Article

Also Read
Fastly - ESI support (Views: 1010)
Fastly - Use free SSL (Views: 2523)

Language:

Improve your web performance, reduce costs and boost ROI!

Contact us today