Clarification on managing logging through the API
I can’t see any way to manage logging services (eg. syslog, papertrail etc…) through the API. However in one of the client libraries there are references to this being possible (at one point).
For example, the go-fastly library has references like:
https://github.com/sethvargo/go-fastly/blob/master/syslog.go#L56
If I attempt to curl that endpoint I get a 404:
curl -I -H "Fastly-Key:<removed>" -q -X GET https://api.fastly.com/service/7dZJjG2OzbkZ7o5n5f6Zd8/versions/1/logging/syslog
HTTP/1.1 404 Not Found
Status: 404 Not Found
Is this something that was previously part of the API and since removed? If so would you consider adding it back in at some point?
-
Hi Paul,
We do have ways to manage logging with our API, here's the link to the full docs: https://docs.fastly.com/api/logging
To get the syslog info for your service, you'll want to use:
curl -XGET -H "Fastly-Key:<fastly_api_key>" https://api.fastly.com/service/<service_id>/version/<version_number>/syslog/
Cheers, Kami
Please sign in to leave a comment.
Comments
3 comments